Added visualization image for random picked champion

This commit is contained in:
Ano-sys
2025-04-17 23:41:04 +02:00
parent 9b3cb65815
commit 1dcbaf4cf8
2 changed files with 46 additions and 29 deletions
+18 -7
View File
@@ -11,6 +11,11 @@
Title="LOLRLCG"
Width="{StaticResource Width}"
Height="{StaticResource Height}"
TransparencyLevelHint="Transparent"
Background="Transparent"
TransparencyBackgroundFallback="Black"
ExtendClientAreaToDecorationsHint="True"
CanResize="False"
>
<Window.Resources>
@@ -25,22 +30,28 @@
</Design.DataContext>
<Panel>
<Image Source="avares://LOLRLCG/Resources/background.png" Width="{StaticResource Width}" Height="{StaticResource Height}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
<Grid>
<Grid Margin="20, 40" Background="#000000ff">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- Champion Visualisation -->
<StackPanel Grid.Column="0">
<TextBlock Text="{Binding SelectedChampion.Name}"></TextBlock>
<Image Source="{Binding SelectedChampion.Image.Full}"></Image>
<TextBlock Text="{Binding Lane}"></TextBlock>
<StackPanel Background="#000000ff">
<TextBlock Foreground="White" Text="Champion: "></TextBlock>
<TextBlock Foreground="White" Text="{Binding SelectedChampion.Name}"></TextBlock>
</StackPanel>
<StackPanel>
<TextBlock Foreground="White" Text="Lane: "></TextBlock>
<TextBlock Foreground="White" Text="{Binding Lane}"></TextBlock>
</StackPanel>
<Image Source="{Binding SelectedChampion.ImageBitmap}" Width="200" Height="400"></Image>
</StackPanel>
<!-- Possibility Settings -->
<StackPanel Grid.Column="1">
<TextBlock Text="League Client Version: "></TextBlock>
<TextBlock Text="{Binding LeagueClientVersion}"></TextBlock>
<Button Content="Get Random Champion" Command="{Binding getRandomChampionLaneComboCommand}"/>
<TextBlock Foreground="White" Text="League Client Version: "></TextBlock>
<TextBlock Foreground="White" Text="{Binding LeagueClientVersion}"></TextBlock>
<Button Foreground="White" Content="Get Random Champion" Command="{Binding getRandomChampionLaneComboCommand}" IsEnabled="{Binding ChampionList.Count}"/>
</StackPanel>
</Grid>
</Panel>