Skip to content

Commit

Permalink
GIF issues fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruki1707 committed Feb 9, 2022
1 parent a941af9 commit ac154d0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
Binary file added ValorantCC/Resources/vtspinner optimized.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ValorantCC/SubWindow/ProfilesWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<TextBox Style="{StaticResource LineTextBox}" Name="SearchCode" MinWidth="128" MaxWidth="128" Background="#FF393B44" Margin="65,25,5,0" Foreground="White" Height="22"/>
<Button Style="{DynamicResource SearchCodeButtonStyle}" Name="btnSearchCode" Content="Search Code" MinWidth="85" Background="#FF393B44" Margin="0,25,5,0" Foreground="White" Cursor="Hand" Click="btnSearchCode_Click" BorderBrush="#FF393B44"/>
</StackPanel>
<Image gif:ImageBehavior.AnimatedSource="../Resources/vtspinner.gif" Width="50" Height="52" Margin="0,155,0,0" x:Name="LoadingPlaceHolder"/>
<Image gif:ImageBehavior.AnimatedSource="../Resources/vtspinner optimized.gif" Width="50" Height="52" Margin="0,155,0,0" x:Name="LoadingPlaceHolder"/>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Margin="0,5,0,0" Height="388" Width="338">

<StackPanel Name="ShareablesContainer" HorizontalAlignment="Center">
Expand Down
1 change: 1 addition & 0 deletions ValorantCC/SubWindow/ProfilesWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private async void Border_Loaded(object sender, RoutedEventArgs e)
LoadingPlaceHolder.Visibility = Visibility.Visible;
await InitialFetch();
LoadingPlaceHolder.Visibility = Visibility.Collapsed;
WpfAnimatedGif.ImageBehavior.GetAnimationController(LoadingPlaceHolder).Pause();
await RenderProfiles();
}

Expand Down
10 changes: 8 additions & 2 deletions ValorantCC/ValorantCC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<None Remove="Resources\CrosshairBG5.png" />
<None Remove="Resources\folder.png" />
<None Remove="Resources\vtools-colored.ico" />
<None Remove="Resources\vtspinner.gif" />
<None Remove="Resources\vtspinner optimized.gif" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -69,7 +69,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Resources\vtools-colored.ico" />
<Resource Include="Resources\vtspinner.gif">
<Resource Include="Resources\vtspinner optimized.gif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
</ItemGroup>
Expand Down Expand Up @@ -102,6 +102,12 @@
<_DeploymentManifestIconFile Remove="Resources\vtools-colored.ico" />
</ItemGroup>

<ItemGroup>
<None Update="Resources\vtspinner.gif">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Page Update="Resources\BGdictionary.xaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
1 change: 1 addition & 0 deletions ValorantCC/src/BackgroundAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public async void LoopCheck()
main.buttons_group.Visibility = Visibility.Visible;
main.controls_group.Visibility = Visibility.Visible;
main.spinner.Visibility = Visibility.Collapsed;
main.spinner.Spin = false;
main.Top = main.Top - (main.Height - OriginalHeight);

return;
Expand Down

0 comments on commit ac154d0

Please # to comment.