59 lines
3.0 KiB
XML
59 lines
3.0 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LOLRLCG.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:system="clr-namespace:System;assembly=System.Runtime"
|
|
mc:Ignorable="d" d:DesignWidth="{StaticResource Width}" d:DesignHeight="{StaticResource Height}"
|
|
x:Class="LOLRLCG.Views.MainWindow"
|
|
x:DataType="vm:MainWindowViewModel"
|
|
Icon="/Assets/avalonia-logo.ico"
|
|
Title="LOLRLCG"
|
|
Width="{StaticResource Width}"
|
|
Height="{StaticResource Height}"
|
|
TransparencyLevelHint="Transparent"
|
|
Background="Transparent"
|
|
TransparencyBackgroundFallback="Black"
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
CanResize="False"
|
|
>
|
|
|
|
<Window.Resources>
|
|
<system:Double x:Key="Width">1280</system:Double>
|
|
<system:Double x:Key="Height">720</system:Double>
|
|
</Window.Resources>
|
|
|
|
<Design.DataContext>
|
|
<!-- This only sets the DataContext for the previewer in an IDE,
|
|
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
|
|
<vm:MainWindowViewModel/>
|
|
</Design.DataContext>
|
|
<Panel>
|
|
<Image Source="avares://LOLRLCG/Resources/background.png" Width="{StaticResource Width}" Height="{StaticResource Height}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
|
<Grid Margin="20, 40" Background="#000000ff">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<!-- Champion Visualisation -->
|
|
<StackPanel Grid.Column="0">
|
|
<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 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>
|
|
</Window>
|