mlaumcherb/Млаумчерб.Клиент/Окне.axaml
2024-08-31 23:55:57 +05:00

52 lines
2.6 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Млаумчерб.Клиент.Окне"
Title="млаумчерб"
FontFamily="{StaticResource PlexMono}" FontSize="24"
Icon="avares://млаумчерб/капитал/icon.ico"
Width="600" Height="500"
Name="window">
<Grid>
<Grid.RowDefinitions>40 *</Grid.RowDefinitions>
<Image Grid.RowSpan="2" Stretch="UniformToFill"
Source="avares://млаумчерб/капитал/background.png"></Image>
<!-- <Border Grid.Row="0" Background="#7000b0"></Border> -->
<Grid Grid.Row="1" Margin="0 60">
<Grid.ColumnDefinitions>* 400 *</Grid.ColumnDefinitions>
<Border Grid.Column="1"
Height="400"
BorderThickness="1" BorderBrush="White"
Background="#b7303040">
<Grid>
<Grid.RowDefinitions>* 60</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" Margin="10" Spacing="10">
<TextBlock>Username:</TextBlock>
<TextBox Text="{Binding #window.Username}"></TextBox>
<TextBlock>
<Run>Memory limit:</Run>
<TextBox Background="Transparent" Padding="0"
BorderThickness="1"
BorderBrush="#777777"
Text="{Binding #window.MemoryLimit}">
</TextBox>
<Run>Mb</Run>
</TextBlock>
<Slider Minimum="2048" Maximum="8192"
Foreground="Blue"
Value="{Binding #window.MemoryLimit}">
</Slider>
<CheckBox IsChecked="{Binding #window.Fullscreen}">Fullscreen</CheckBox>
<CheckBox IsChecked="{Binding #window.UpdateGameFiles}">Update game files</CheckBox>
</StackPanel>
<Button Grid.Row="1" Margin="10"
BorderThickness="1" BorderBrush="Gray"
Background="#BBFF4000"
Click="LaunchButtonHandler">
Launch
</Button>
</Grid>
</Border>
</Grid>
</Grid>
</Window>