diff --git a/ValorantCC/MainWindow.xaml b/ValorantCC/MainWindow.xaml
index 4b5a810..d166e0e 100644
--- a/ValorantCC/MainWindow.xaml
+++ b/ValorantCC/MainWindow.xaml
@@ -8,7 +8,7 @@
x:Class="ValorantCC.MainWindow"
xmlns:fa="http://schemas.fontawesome.io/icons/"
mc:Ignorable="d"
- Title="vTools - ValorantCC" Height="500" Width="901" SizeToContent="Height" AllowsTransparency="True" WindowStartupLocation="CenterScreen" WindowState="Normal" ResizeMode="CanMinimize" WindowStyle="None" Icon="Resources/vtools-colored.ico"
+ Title="vTools - ValorantCC" Height="0" Width="901" SizeToContent="Height" AllowsTransparency="True" WindowStartupLocation="CenterScreen" WindowState="Normal" ResizeMode="CanMinimize" WindowStyle="None" Icon="Resources/vtools-colored.ico"
Background="#232429"
WindowTitleBrush="#232429"
GlowBrush="White"
@@ -89,7 +89,7 @@
-
+
diff --git a/ValorantCC/MainWindow.xaml.cs b/ValorantCC/MainWindow.xaml.cs
index af12c90..11a9d95 100644
--- a/ValorantCC/MainWindow.xaml.cs
+++ b/ValorantCC/MainWindow.xaml.cs
@@ -391,5 +391,10 @@ private void btnCopyShareCode_Click(object sender, RoutedEventArgs e)
Clipboard.SetText(_sharecode);
Utilities.Utils.MessageText("Your sharecode has been copied!", Brushes.Lime);
}
+
+ private void _zoom_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)
+ {
+ Trace.WriteLine(_zoom.Value);
+ }
}
}
diff --git a/ValorantCC/src/Crosshair_Parser.cs b/ValorantCC/src/Crosshair_Parser.cs
index c62de79..459d466 100644
--- a/ValorantCC/src/Crosshair_Parser.cs
+++ b/ValorantCC/src/Crosshair_Parser.cs
@@ -56,8 +56,8 @@ public static void Generate(int column, Grid grid, ProfileSettings settings)
recindex++;
rectangle_redraw(rectangles[i], rectangles[i + 1], pos, settings);
- rectangles[i].Fill = new SolidColorBrush(Color.FromRgb(settings.Color.R, settings.Color.G, settings.Color.B));
- rectangles[i + 1].Stroke = new SolidColorBrush(Color.FromRgb(settings.OutlineColor.R, settings.OutlineColor.G, settings.OutlineColor.B));
+ rectangles[i].Fill = new SolidColorBrush(Color.FromArgb(settings.Color.A, settings.Color.R, settings.Color.G, settings.Color.B));
+ rectangles[i + 1].Stroke = new SolidColorBrush(Color.FromArgb(settings.OutlineColor.A, settings.OutlineColor.R, settings.OutlineColor.G, settings.OutlineColor.B));
Grid.SetColumn(rectangles[i], column);
Grid.SetRow(rectangles[i], 0);
Grid.SetColumn(rectangles[i + 1], column);
@@ -77,8 +77,8 @@ public static void Generate(int column, Grid grid, ProfileSettings settings)
};
dot_redraw(dot, dotOT, settings);
- dot.Fill = new SolidColorBrush(Color.FromRgb(settings.Color.R, settings.Color.G, settings.Color.B));
- dotOT.Stroke = new SolidColorBrush(Color.FromRgb(settings.OutlineColor.R, settings.OutlineColor.G, settings.OutlineColor.B));
+ dot.Fill = new SolidColorBrush(Color.FromArgb(settings.Color.A, settings.Color.R, settings.Color.G, settings.Color.B));
+ dotOT.Stroke = new SolidColorBrush(Color.FromArgb(settings.OutlineColor.A, settings.OutlineColor.R, settings.OutlineColor.G, settings.OutlineColor.B));
Grid.SetColumn(dot, column);
Grid.SetRow(dot, 0);
Grid.SetColumn(dotOT, column);
@@ -92,7 +92,7 @@ public static void Generate(int column, Grid grid, SniperSettings settings)
{
Ellipse ellipse = new();
dot_redraw(ellipse, settings);
- ellipse.Fill = new SolidColorBrush(Color.FromRgb(settings.CenterDotColor.R, settings.CenterDotColor.G, settings.CenterDotColor.B));
+ ellipse.Fill = new SolidColorBrush(Color.FromArgb(settings.CenterDotColor.A, settings.CenterDotColor.R, settings.CenterDotColor.G, settings.CenterDotColor.B));
Grid.SetColumn(ellipse, column);
Grid.SetRow(ellipse, 0);