Skip to content

Commit

Permalink
feat: add WpfAnimatedGif library
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Jan 23, 2023
1 parent db8b731 commit 681c499
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MHFZ_Overlay/ConfigWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:uc="clr-namespace:MHFZ_Overlay.controls"
xmlns:gif="http://wpfanimatedgif.codeplex.com"
xmlns:fa="http://schemas.awesome.incremented/wpf/xaml/fontawesome.sharp"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
xmlns:local="clr-namespace:MHFZ_Overlay" xmlns:addresses="clr-namespace:MHFZ_Overlay.addresses" d:DataContext="{d:DesignInstance Type=addresses:AddressModel}"
Expand Down Expand Up @@ -607,7 +608,7 @@
</TabItem.Resources>
<TabItem.Header>
<StackPanel Orientation="Horizontal" Background="Transparent">
<MediaElement x:Name="gifScroll" UnloadedBehavior="Manual" Width="32" Height="32" Source="https://raw.githubusercontent.com/DorielRivalet/mhfz-overlay/main/img/icon/scroll_rainbow.gif" LoadedBehavior="Play"/>
<Image gif:ImageBehavior.AnimatedSource="UI/Icons/gif/scroll_rainbow.gif" x:Name="gifScroll" Width="32" Height="32"/>
<TextBlock Text="Quest Log" Margin="4,0,0,0" VerticalAlignment="Center" Foreground="#94e2d5">
<TextBlock.Triggers>
<EventTrigger RoutedEvent="Loaded">
Expand Down
3 changes: 3 additions & 0 deletions MHFZ_Overlay/MHFZ_Overlay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<None Remove="UI\Icons\dure_defense.png" />
<None Remove="UI\Icons\dure_defense_red.png" />
<None Remove="UI\Icons\fire.png" />
<None Remove="UI\Icons\gif\scroll_rainbow.gif" />
<None Remove="UI\Icons\guild_food.png" />
<None Remove="UI\Icons\helm.png" />
<None Remove="UI\Icons\knife.png" />
Expand Down Expand Up @@ -285,6 +286,7 @@
<Resource Include="UI\Fonts\OpenSans-SemiBoldItalic.ttf" />
<Resource Include="UI\Icons\bar_chart_FILL0_wght400_GRAD0_opsz48.xaml" />
<Resource Include="UI\Icons\database_FILL0_wght400_GRAD0_opsz48.xaml" />
<Resource Include="UI\Icons\gif\scroll_rainbow.gif" />
<Resource Include="UI\Icons\leaderboard_FILL0_wght400_GRAD0_opsz48.xaml" />
<Resource Include="UI\Icons\manage_history_FILL0_wght400_GRAD0_opsz48.xaml" />
</ItemGroup>
Expand All @@ -310,6 +312,7 @@
<PackageReference Include="SQLitePCLRaw.bundle_winsqlite3" Version="2.1.3" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.117" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
<PackageReference Include="WpfAnimatedGif" Version="2.0.2" />
<PackageReference Include="XInput.Wrapper" Version="0.3.1" />
</ItemGroup>

Expand Down
Binary file added MHFZ_Overlay/UI/Icons/gif/scroll_rainbow.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 681c499

Please sign in to comment.