Skip to content

Commit

Permalink
Add Regal orb.
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Jan 3, 2020
1 parent 1754ac5 commit 7b6363c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
Binary file added src/Lurker.UI/Assets/Regal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Lurker.UI/Lurker.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
<Resource Include="Assets\InInstance.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Assets\Regal.png" />
<Content Include="Svg.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Svg.cs</LastGenOutput>
Expand Down
7 changes: 7 additions & 0 deletions src/Lurker.UI/Views/TradeOfferView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@
Visibility="{Binding CurrencyType,
Converter={Converters:CurrencyTypeConverter},
ConverterParameter={x:Static Models:CurrencyType.Alchemy}}"/>
<Image Grid.RowSpan="3"
Source="/Assets/Regal.png"
Height="{Binding ActualHeight, ElementName=MainAction}"
Width="{Binding ActualWidth, ElementName=MainAction}"
Visibility="{Binding CurrencyType,
Converter={Converters:CurrencyTypeConverter},
ConverterParameter={x:Static Models:CurrencyType.Regal}}"/>
<TextBlock TextTrimming="CharacterEllipsis"
HorizontalAlignment="Right"
Foreground="White"
Expand Down
1 change: 1 addition & 0 deletions src/Lurker/Helpers/CurrencyTypeParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static class CurrencyTypeParser
{ CurrencyType.Chromatic, new string[]{ "chrome", "chromatic", "chromatic orb" } },
{ CurrencyType.Alchemy, new string[]{ "alch", "alchemy", "orb of alchemy" } },
{ CurrencyType.Vaal, new string[]{ "vaal", "vaal orb" } },
{ CurrencyType.Regal, new string[]{ "regal", "regal orb" } },
};

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions src/Lurker/Models/CurrencyType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ public enum CurrencyType
Vaal,

Chromatic,

Regal,
}
}

0 comments on commit 7b6363c

Please sign in to comment.