Skip to content

Commit

Permalink
Add Cold, Fire and Lightning icon
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Jan 31, 2020
1 parent 82ce44e commit 27af278
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/Lurker.UI/Lurker.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
<Resource Include="Assets\InInstance.png" />
</ItemGroup>
<ItemGroup>
<Content Include="SVG\Lightning.svg" />
<Resource Include="Assets\Regal.png" />
<Resource Include="Assets\Divine.png" />
<Resource Include="Assets\TrayIconUpdate.ico" />
Expand All @@ -277,6 +278,8 @@
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Svg.cs</LastGenOutput>
</Content>
<Content Include="SVG\Cold.svg" />
<Content Include="SVG\Fire.svg" />
<Content Include="SVG\InInstance.svg" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Lurker.UI/SVG/Cold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Lurker.UI/SVG/Fire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/Lurker.UI/SVG/Lightning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/Lurker.UI/Svg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,26 @@ public static class IconPackData
{
#region Properties

/// <summary>
/// Gets the icon pack data for the icon Cold.
/// </summary>
public static string Cold => "m464.688 318.456c-1.03-3.843-3.544-7.119-6.989-9.108-3.447-1.99-7.541-2.528-11.383-1.499l-48.159 12.904-26.303-15.186 28.797-10.627c7.771-2.868 11.747-11.494 8.879-19.265-2.868-7.772-11.491-11.749-19.266-8.879l-52.199 19.263-22.439-12.955v-34.209l22.439-12.955 52.199 19.263c1.713.632 3.467.932 5.191.932 6.103 0 11.839-3.752 14.074-9.811 2.868-7.771-1.107-16.397-8.879-19.265l-28.797-10.627 26.303-15.186 48.159 12.904c1.277.342 2.583.511 3.883.511 2.61 0 5.2-.682 7.5-2.01 3.445-1.989 5.959-5.265 6.989-9.108l14.513-54.162c2.144-8.002-2.604-16.227-10.606-18.371l-54.161-14.513c-3.843-1.03-7.938-.49-11.383 1.499s-5.959 5.265-6.989 9.108l-12.905 48.161-26.302 15.186 5.195-30.252c1.402-8.165-4.08-15.92-12.244-17.323-8.173-1.404-15.921 4.081-17.322 12.245l-9.418 54.838-22.439 12.955-29.626-17.107v-25.907l42.782-35.575c6.369-5.297 7.239-14.754 1.942-21.124-5.298-6.371-14.753-7.24-21.124-1.943l-23.6 19.625v-30.371l35.256-35.255c2.813-2.813 4.394-6.628 4.394-10.606s-1.58-7.793-4.394-10.606l-39.65-39.651c-5.857-5.858-15.355-5.858-21.213 0l-39.649 39.649c-5.858 5.858-5.858 15.355 0 21.213l35.256 35.255v30.372l-23.602-19.625c-6.37-5.297-15.827-4.426-21.124 1.943-5.296 6.37-4.427 15.827 1.943 21.124l42.783 35.574v25.906l-29.627 17.109-22.438-12.954-9.418-54.839c-1.403-8.164-9.153-13.649-17.323-12.245-8.165 1.402-13.646 9.158-12.245 17.323l5.196 30.252-26.303-15.186-12.905-48.161c-1.029-3.843-3.543-7.119-6.989-9.108-3.445-1.989-7.539-2.528-11.382-1.499l-54.161 14.513c-8.002 2.144-12.75 10.369-10.606 18.371l14.512 54.162c1.029 3.843 3.543 7.119 6.989 9.108 2.3 1.328 4.89 2.01 7.5 2.01 1.299 0 2.605-.169 3.882-.511l48.16-12.904 26.303 15.186-28.796 10.627c-7.772 2.868-11.748 11.494-8.879 19.265 2.236 6.06 7.972 9.812 14.074 9.811 1.725 0 3.479-.3 5.191-.932l52.2-19.263 22.439 12.955v34.209l-22.439 12.955-52.2-19.263c-7.771-2.869-16.397 1.107-19.265 8.879-2.868 7.771 1.107 16.397 8.879 19.265l28.796 10.627-26.303 15.186-48.16-12.904c-3.844-1.031-7.937-.491-11.382 1.499-3.445 1.989-5.959 5.265-6.989 9.108l-14.512 54.162c-2.144 8.002 2.604 16.227 10.606 18.371l54.161 14.513c1.277.342 2.582.511 3.882.511 2.611 0 5.2-.682 7.5-2.01 3.445-1.989 5.959-5.265 6.989-9.108l12.905-48.161 26.303-15.186-5.196 30.252c-1.402 8.165 4.08 15.92 12.245 17.323.859.147 1.714.219 2.557.219 7.17 0 13.511-5.158 14.766-12.463l9.418-54.839 22.438-12.954 29.627 17.11v25.906l-42.782 35.574c-6.37 5.297-7.24 14.754-1.943 21.124s14.754 7.24 21.124 1.943l23.601-19.625v30.372l-35.255 35.255c-5.858 5.858-5.858 15.355 0 21.213l39.649 39.649c2.929 2.929 6.767 4.393 10.606 4.393 3.838 0 7.678-1.465 10.606-4.394l39.649-39.649c2.813-2.813 4.394-6.628 4.394-10.606s-1.58-7.793-4.394-10.606l-35.255-35.256v-30.371l23.601 19.625c2.803 2.33 6.202 3.467 9.583 3.467 4.303 0 8.575-1.842 11.541-5.41 5.297-6.37 4.427-15.827-1.942-21.124l-42.783-35.575v-25.908l29.627-17.107 22.439 12.955 9.418 54.838c1.254 7.306 7.595 12.463 14.766 12.463.843 0 1.698-.071 2.557-.219 8.164-1.402 13.646-9.158 12.244-17.323l-5.195-30.252 26.302 15.186 12.905 48.161c1.03 3.843 3.544 7.119 6.989 9.108 2.301 1.328 4.89 2.01 7.5 2.01 1.3 0 2.605-.169 3.883-.511l54.161-14.513c8.002-2.144 12.75-10.369 10.606-18.371z";

/// <summary>
/// Gets the icon pack data for the icon Fire.
/// </summary>
public static string Fire => "M 23.347656 134.058594 C 8.445312 84.953125 39.933594 67.023438 39.933594 67.023438 C 37.730469 93.226562 52.621094 113.640625 52.621094 113.640625 C 58.097656 111.988281 68.550781 104.265625 68.550781 104.265625 C 68.550781 113.640625 63.035156 134.046875 63.035156 134.046875 C 63.035156 134.046875 82.34375 119.117188 88.421875 94.320312 C 94.492188 69.523438 76.859375 44.628906 76.859375 44.628906 C 77.921875 62.179688 71.984375 79.441406 60.351562 92.628906 C 60.933594 91.957031 61.421875 91.210938 61.796875 90.402344 C 63.886719 86.222656 67.242188 75.359375 65.277344 50.203125 C 62.511719 14.890625 30.515625 0 30.515625 0 C 33.273438 21.515625 25.003906 26.472656 5.632812 67.3125 C -13.738281 108.144531 23.347656 134.058594 23.347656 134.058594 Z M 23.347656 134.058594 ";

/// <summary>
/// Gets the icon pack data for the icon InInstance.
/// </summary>
public static string InInstance => "M149.996,0C67.157,0,0.001,67.158,0.001,149.997c0,82.837,67.156,150,149.995,150s150-67.163,150-150 C299.996,67.156,232.835,0,149.996,0z M150.453,220.763v-0.002h-0.916H85.465c0-46.856,41.152-46.845,50.284-59.097l1.045-5.587 c-12.83-6.502-21.887-22.178-21.887-40.512c0-24.154,15.712-43.738,35.089-43.738c19.377,0,35.089,19.584,35.089,43.738 c0,18.178-8.896,33.756-21.555,40.361l1.19,6.349c10.019,11.658,49.802,12.418,49.802,58.488H150.453z";

/// <summary>
/// Gets the icon pack data for the icon Lightning.
/// </summary>
public static string Lightning => "M75.102,220l12.689-101.666H57.334L70.023,0h74.875L119.52,81.668h43.146L75.102,220z";

#endregion
}

Expand Down
43 changes: 38 additions & 5 deletions src/Lurker.UI/Views/ItemOverlayView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Lurker.UI.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Lurker.UI"
mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="100">
<Button Width="100" x:Name="Close" >
Expand Down Expand Up @@ -42,14 +42,47 @@
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border CornerRadius="0,0,0,4" Background="Blue">
<TextBlock Text="{Binding TotalColdResistance}" HorizontalAlignment="Center"/>
<Grid>
<local:IconPack HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Foreground="White"
Grid.Row="2"
Margin="1,0,0,0"
Visibility="{Binding BuyerInSameInstance, Converter={StaticResource BooleanToVisibilityConverter}}"
Height="15"
Width="15"
Data="{x:Static local:IconPackData.Cold}"/>
<TextBlock Margin="0,0,4,0" Text="{Binding TotalColdResistance}" HorizontalAlignment="Right"/>
</Grid>
</Border>
<Border Background="Red" Grid.Column="1">
<TextBlock Text="{Binding TotalFireResistance}" HorizontalAlignment="Center" />
<Grid>
<local:IconPack HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Foreground="White"
Grid.Row="2"
Margin="1,0,0,0"
Visibility="{Binding BuyerInSameInstance, Converter={StaticResource BooleanToVisibilityConverter}}"
Height="15"
Width="15"
Data="{x:Static local:IconPackData.Fire}"/>
<TextBlock Margin="0,0,4,0" Text="{Binding TotalFireResistance}" HorizontalAlignment="Right" />
</Grid>
</Border>

<Border CornerRadius="0,0,4,0" Background="Yellow" Grid.Column="2">
<TextBlock Text="{Binding TotalLightningResistance}" HorizontalAlignment="Center" Foreground="Black"/>
<Grid>
<local:IconPack HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Foreground="Black"
Grid.Row="2"
Margin="1,0,0,0"
Visibility="{Binding BuyerInSameInstance, Converter={StaticResource BooleanToVisibilityConverter}}"
Height="15"
Width="15"
Data="{x:Static local:IconPackData.Lightning}"/>
<TextBlock Margin="0,0,4,0" Text="{Binding TotalLightningResistance}" HorizontalAlignment="Right" Foreground="Black"/>
</Grid>
</Border>
</Grid>
</Grid>
Expand Down

0 comments on commit 27af278

Please sign in to comment.