feat: add hero stats panel

This commit is contained in:
k0t9i
2023-01-29 23:38:42 +04:00
parent f8b0b4b894
commit a8adf23959
5 changed files with 149 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Client.Application.Converters
{
public class PercentWidthConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (!(values[0] is double))
{
return 0.0;
}
return ((double)values[0] / 100 * (Double)values[1]);
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}