diff --git a/Mimante/Assets/app.ico b/Mimante/Assets/app.ico new file mode 100644 index 0000000..48f1da0 --- /dev/null +++ b/Mimante/Assets/app.ico @@ -0,0 +1,2 @@ + +[Binary ICO placeholder removed in this environment] diff --git a/Mimante/AutoBidder.csproj b/Mimante/AutoBidder.csproj index 76218ca..25005d1 100644 --- a/Mimante/AutoBidder.csproj +++ b/Mimante/AutoBidder.csproj @@ -15,4 +15,9 @@ + + + + + diff --git a/Mimante/Converters/Converters.xaml b/Mimante/Converters/Converters.xaml index b0a3b67..bbd67de 100644 --- a/Mimante/Converters/Converters.xaml +++ b/Mimante/Converters/Converters.xaml @@ -6,4 +6,5 @@ + diff --git a/Mimante/Converters/StartButtonOpacityConverter.cs b/Mimante/Converters/StartButtonOpacityConverter.cs new file mode 100644 index 0000000..ee68135 --- /dev/null +++ b/Mimante/Converters/StartButtonOpacityConverter.cs @@ -0,0 +1,24 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace AutoBidder.Converters +{ + public class StartButtonOpacityConverter : IMultiValueConverter + { + public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) + { + if (values.Length == 2 && values[0] is bool isActive && values[1] is bool isPaused) + { + // Bright (1.0) when not active (can start) or when paused (can resume) + return (!isActive || isPaused) ? 1.0 : 0.5; + } + return 1.0; + } + + public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/Mimante/MainWindow.xaml b/Mimante/MainWindow.xaml index 38f0853..7179bad 100644 --- a/Mimante/MainWindow.xaml +++ b/Mimante/MainWindow.xaml @@ -1,424 +1,446 @@ + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:AutoBidder.Converters" + Title="AutoBidder v3.0" Height="800" Width="1400" + Background="#0a0a0a" Foreground="#FFFFFF" + WindowStartupLocation="CenterScreen"> - - - + + + + + + - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + +