Skip to content

Commit

Permalink
MAJOR v3.0.0 (UI Changes and New Features)
Browse files Browse the repository at this point in the history
commit 6403c9d
Author: Dixie J <87055977+weedeej@users.noreply.github.com>
Date:   Wed Feb 23 16:42:39 2022 +0800

    Update README.md 2 hehe

commit 52d2155
Author: Dixie J <87055977+weedeej@users.noreply.github.com>
Date:   Wed Feb 23 16:39:11 2022 +0800

    Update README.md

commit 7223c24
Author: weedeej <devildjoseph666@gmail.com>
Date:   Wed Feb 23 16:27:37 2022 +0800

    Changed Version number

commit 71c4bab
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Tue Feb 22 21:58:39 2022 -0600

    HD images

commit 6e34513
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Mon Feb 21 14:51:25 2022 -0600

    Sniper legit color fix

commit 29e89d7
Author: weedeej <devildjoseph666@gmail.com>
Date:   Tue Feb 22 04:18:28 2022 +0800

    fix fix

commit dcfe6c7
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Sun Feb 20 19:07:21 2022 -0600

    random custom color to legit white fix

commit 0cbf823
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sat Feb 19 22:17:08 2022 +0800

    Try Fix Crosshair zoom+added opacity

commit 1e6874c
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sat Feb 19 10:45:10 2022 +0800

    Try Vercel API migration

commit 85df620
Author: weedeej <devildjoseph666@gmail.com>
Date:   Tue Feb 15 15:08:29 2022 +0800

    MainWindow themes changed.

commit d6bb70e
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sun Feb 13 18:19:13 2022 +0800

    Fixes for recent bugs

commit 3ff4ad8
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sat Feb 12 20:54:21 2022 +0800

    Fixes and stuff.

commit 362a00d
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Thu Feb 10 12:46:00 2022 -0600

    Merge of Master Patches

    PATCH v2.6.7 (Added more logging specifically for app crashes.)

    PATCH v2.6.8 (Updated NuGet EZ_Updater; Crashing problem fixed)

    PATCH v2.6.9 (Unauthorized Access error handled; 2.6.8's Crash fix.)

commit c8f1df7
Author: Diego Gómez <diego.fernandogc@gmail.com>
Date:   Wed Feb 9 05:20:13 2022 -0600

    FIX to gif fix xd

commit ac154d0
Author: Diego Gómez <diego.fernandogc@gmail.com>
Date:   Wed Feb 9 04:54:07 2022 -0600

    GIF issues fix

commit a941af9
Author: weedeej <devildjoseph666@gmail.com>
Date:   Wed Feb 9 17:23:36 2022 +0800

    idk :V

commit 48c2003
Author: Diego Gómez <diego.fernandogc@gmail.com>
Date:   Tue Feb 8 12:16:10 2022 -0600

    MainWindow position fix, Log path changed, MessageWIndow implemented, Migrated to .NET 6

commit ceac5de
Author: weedeej <devildjoseph666@gmail.com>
Date:   Mon Feb 7 16:57:52 2022 +0800

    async & profiles window search bug fix.

commit 5d3023c
Author: Diego Gómez <diego.fernandogc@gmail.com>
Date:   Fri Feb 4 15:38:17 2022 -0600

    Render code improvement

commit b95e751
Author: weedeej <devildjoseph666@gmail.com>
Date:   Mon Jan 31 16:55:03 2022 +0800

    Merged my stash with this.

commit e21b2d8
Author: d1ret <67980548+d1ret@users.noreply.github.com>
Date:   Mon Jan 31 13:29:41 2022 +0500

    ProfileWindow UI Improvement

commit 55142f9
Author: weedeej <devildjoseph666@gmail.com>
Date:   Wed Jan 19 13:30:32 2022 +0800

    aaaaaaasync

commit 9197b5b
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Mon Jan 17 17:51:48 2022 -0600

    Crosshair generator fix & center child window to parent

commit b4a8200
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sun Jan 16 17:55:14 2022 +0800

    dev phase 4.100 :D

commit c9d7b4c
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sun Jan 16 17:04:03 2022 +0800

    dev phase 4.99

commit 26a6df4
Author: weedeej <devildjoseph666@gmail.com>
Date:   Sun Jan 16 16:34:25 2022 +0800

    dev phase 4.69

commit 9fd52fe
Merge: c7c753f a6b94e1
Author: weedeej <87055977+weedeej@users.noreply.github.com>
Date:   Tue Jan 11 12:46:42 2022 +0800

    Merge pull request weedeej#11 from Haruki1707/dev

    dev Phase 4.5

commit a6b94e1
Author: Diego Gómez <72423267+Haruki1707@users.noreply.github.com>
Date:   Mon Jan 10 21:56:38 2022 -0600

    dev Phase 4.5

commit c7c753f
Author: weedeej <devildjoseph666@gmail.com>
Date:   Thu Jan 6 21:35:23 2022 +0800

    Dev phase 4

commit e4b5492
Author: weedeej <devildjoseph666@gmail.com>
Date:   Wed Jan 5 18:06:20 2022 +0800

    Dev phase 3

commit 4265b86
Author: weedeej <devildjoseph666@gmail.com>
Date:   Wed Jan 5 04:52:21 2022 +0800

    Dev phase 2
  • Loading branch information
weedeej committed Feb 23, 2022
1 parent a7865ef commit a4dd9c9
Show file tree
Hide file tree
Showing 34 changed files with 1,493 additions and 674 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,28 @@

# ValorantCC (Valorant Crosshair Changer) [Download Here](https://github.com/weedeej/ValorantCC/releases/latest/download/ValorantCC.exe)
Change your Crosshair's color to **ANY** color you want for style and/or visiblity.
<img src="https://i.imgur.com/0Yi49J0.png">
![image](https://user-images.githubusercontent.com/87055977/155284250-d01577c2-5661-43b1-8759-a6a8525e7709.png)

Share your crosshair across the ValorantCC comunity!<br/>
![image](https://user-images.githubusercontent.com/87055977/155284365-c802a73e-5062-4d36-b089-4116c2d85e9a.png)

## Requirement
- .NET6.0 (This comes with windows updates. If you have the latest version of windows, This should be installed automatically. if not, download .NET6.0 **DESKTOP RUNTIME**.

## Usage
- Either Open this first or Riot client or Valorant it doesn't matter.
- Click Login on this app.
- Select the profile you want to change color.
- Change to color.
- Wait for the app to login itself.
- Select the profile you want to change color via the dropdown on top-right.
- Change the colors.
- Save.
- Restart Valorant \*(**IMPORTANT**)\*.
- Restart Valorant if Valorant is running \*(**IMPORTANT**)\*.

Also don't forget to enjoy.
##
- If you experience any Issues such as not working, Join us on [Discord](https://discord.gg/ME5EdK8U9v) and we'll try to fix it.
- You don't need to keep this app running in the background. Once you saved it, It will stay there.
- This does not change the game files nor touch Valorant's memory related stuff. The app only uses the Client API and send it directly to Valorant's Server.
- Yes. Other players can see it too as it is saved server side.
- THIS IS **NOT** AN OVERLAY/HACK/CHEAT/AIMBOT.

## Disclaimer
The images, endpoints and other material used in this project are owned by Riot Games.
Expand Down
223 changes: 9 additions & 214 deletions ValorantCC/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,220 +4,15 @@
xmlns:local="clr-namespace:ValorantCC"
StartupUri="MainWindow.xaml">
<Application.Resources>
<!--SliderStart-->
<Style x:Key="SliderRepeatButton" TargetType="{x:Type RepeatButton}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="IsTabStop" Value="false" />
<Setter Property="Focusable" Value="false" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Border BorderThickness="1" BorderBrush="Snow" Background="Snow" Height="2"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="SliderRepeatButton1" TargetType="{x:Type RepeatButton}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Border SnapsToDevicePixels="True" Background="#295FFE" BorderThickness="1" BorderBrush="#295FFE" Height="2"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="SliderThumb" TargetType="{x:Type Thumb}">
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Ellipse Height="10" Width="10" Fill="#295FFE"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<ControlTemplate x:Key="Slider" TargetType="{x:Type Slider}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Track Grid.Row="1" x:Name="PART_Track" >
<Track.DecreaseRepeatButton>
<RepeatButton Style="{StaticResource SliderRepeatButton1}" Command="Slider.DecreaseLarge" />
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource SliderThumb}" />
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource SliderRepeatButton}" Command="Slider.IncreaseLarge" />
</Track.IncreaseRepeatButton>
</Track>
</Grid>
</ControlTemplate>

<Style x:Key="Horizontal_Slider" TargetType="{x:Type Slider}">
<Setter Property="Focusable" Value="False"/>
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="OverridesDefaultStyle" Value="true" />
<Style.Triggers>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="MinHeight" Value="21" />
<Setter Property="MinWidth" Value="104" />
<Setter Property="Template" Value="{StaticResource Slider}" />
</Trigger>
</Style.Triggers>
</Style>
<!--RoundedButtonStart-->
<Style x:Key="RoundButton" TargetType="{x:Type Button}">
<Setter Property="Background" Value="DodgerBlue"/>
<Setter Property="Foreground" Value="#FFFAFA"/>

<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">


<Border CornerRadius="5" Background="{TemplateBinding Background}" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#191B1D" />
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<Border x:Name="Border" Grid.ColumnSpan="2" CornerRadius="3"
Background="#454449"
BorderThickness="0" />
<Border
Grid.Column="0"
CornerRadius="3"
Margin="1,1,1,1"
Background="#232429"
BorderThickness="0.9" Grid.ColumnSpan="2"/>
<Path
x:Name="Arrow"
Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M 0 0 L 4 4 L 8 0 Z" Height="6" Stretch="Fill" Fill="#FF3C3C40" Width="10" RenderTransformOrigin="0.5,0.5">
<Path.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleX="0.597"/>
<RotateTransform/>
<TranslateTransform X="0.031"/>
</TransformGroup>
</Path.RenderTransform>
</Path>
<Path
x:Name="Arrow2"
Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Data="M 0 0 L 4 4 L 8 0 Z" Height="7" Stretch="Fill" Fill="#232429" Width="11.9" Margin="0.1,6,0,0"/>

</Grid>
</ControlTemplate>

<ControlTemplate x:Key="ComboBoxTextBox" TargetType="{x:Type TextBox}">
<Border x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}" />
</ControlTemplate>


<Style x:Key="{x:Type ComboBox}" TargetType="{x:Type ComboBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
<Grid>
<ToggleButton
x:Name="ToggleButton"
Template="{StaticResource ComboBoxToggleButton}"
Grid.Column="2"
Focusable="false"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
ClickMode="Press"/>
<ContentPresenter
x:Name="ContentSite"
IsHitTestVisible="False"
Margin="3,3,23,3"
VerticalAlignment="Center"
HorizontalAlignment="Left" />
<TextBox x:Name="PART_EditableTextBox"
Style="{x:Null}"
Template="{StaticResource ComboBoxTextBox}"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Margin="3,3,23,3"
Focusable="True"
Foreground="Snow"
FontFamily="Quicksland"
Background="Transparent"
Visibility="Visible"
IsReadOnly="{TemplateBinding IsReadOnly}" TextDecorations="{x:Null}" FontStyle="Normal" FontWeight="Normal" FontSize="11"/>
<Popup
x:Name="Popup"
Placement="Bottom"
IsOpen="{TemplateBinding IsDropDownOpen}"
AllowsTransparency="True"
Focusable="False"
PopupAnimation="Slide">
<Grid
x:Name="DropDown"
SnapsToDevicePixels="True"
MinWidth="{TemplateBinding ActualWidth}"
MaxHeight="{TemplateBinding MaxDropDownHeight}">
<Border
x:Name="DropDownBorder"
Background="{StaticResource WindowBackgroundBrush}"
BorderThickness="1"
CornerRadius="0,0,5,5"/>
<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
</ScrollViewer>
</Grid>
</Popup>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="RightButtonStyle" TargetType="Button">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="BlueViolet"></Setter>
</Trigger>
<Trigger Property="IsMouseOver" Value="False">
<Setter Property="Background" Value="Yellow" />
</Trigger>
</Style.Triggers>
</Style>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<!-- Theme setting -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Dark.Blue.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
16 changes: 7 additions & 9 deletions ValorantCC/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Threading;
using System.Threading;
using Utilities;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;

namespace ValorantCC
{
Expand All @@ -19,7 +17,7 @@ protected override void OnStartup(StartupEventArgs e)
{
//Copy pasta for logging :V
Startup += new StartupEventHandler(AppEventHandler);

DispatcherUnhandledException += LogDispatcherUnhandled;

TaskScheduler.UnobservedTaskException += LogUnobservedTaskException;
Expand All @@ -34,12 +32,12 @@ private void AppEventHandler(object sender, StartupEventArgs e)

private void LogFirstChanceException(object sender, FirstChanceExceptionEventArgs e)
{
Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
Utilities.Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
}

private void LogDispatcherUnhandled(object sender, DispatcherUnhandledExceptionEventArgs e)
{
Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
Utilities.Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
e.Handled = false;
}

Expand All @@ -48,13 +46,13 @@ private void LogUnhandled(object sender, UnhandledExceptionEventArgs e)
var ex = e.ExceptionObject as Exception;
if (e.IsTerminating)
{
Utils.Log($"{ex.Message}: {ex.StackTrace}");
Utilities.Utils.Log($"{ex.Message}: {ex.StackTrace}");
}
}

private void LogUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
{
Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
Utilities.Utils.Log($"{e.Exception.Message}: {e.Exception.StackTrace}");
e.SetObserved();
}
}
Expand Down
Loading

0 comments on commit a4dd9c9

Please # to comment.