mirror of
https://gitlab.com/nullmax17/PlombirLauncher.git
synced 2025-03-14 18:01:12 +03:00
161 lines
5.8 KiB
XML
161 lines
5.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LauncherGUI.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="500"
|
|
x:Class="LauncherGUI.Views.MainWindow"
|
|
x:DataType="vm:MainWindowViewModel"
|
|
Icon="/Assets/Sprites/icon.png"
|
|
Title="PlombirLauncher"
|
|
RequestedThemeVariant="Dark"
|
|
Width="750" Height="500"
|
|
MinWidth="750" MinHeight="500"
|
|
MaxWidth="750" MaxHeight="500">
|
|
|
|
<Window.Background>
|
|
<ImageBrush Source="/Assets/Sprites/background.jpg" Stretch="UniformToFill"/>
|
|
</Window.Background>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Title area -->
|
|
<StackPanel
|
|
HorizontalAlignment="Center"
|
|
Grid.Row="0" Grid.ColumnSpan="3" >
|
|
<Border
|
|
Width="500"
|
|
Background="#353535"
|
|
Padding="10" Margin="3"
|
|
CornerRadius="10">
|
|
|
|
<Image Source="/Assets/Sprites/title.png"
|
|
Stretch="Uniform"/>
|
|
|
|
</Border>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}"
|
|
HorizontalAlignment="Right" Text="v1.2.1 - Plombir Contribuitors"/>
|
|
</StackPanel>
|
|
|
|
<!-- Settings for launcher -->
|
|
<Canvas Grid.Row="0" Grid.Column="1">
|
|
<Border
|
|
Background="#353535"
|
|
CornerRadius="10"
|
|
Margin="5"
|
|
Canvas.Left="290">
|
|
|
|
<Image
|
|
Height="60"
|
|
Source="/Assets/Sprites/cog.png"
|
|
Stretch="Uniform"
|
|
PointerPressed="OnCogPressed" />
|
|
|
|
</Border>
|
|
|
|
</Canvas>
|
|
|
|
<!-- Title area end -->
|
|
|
|
<!-- Center-left stack panel with minecraft stuff -->
|
|
<StackPanel
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Grid.Row="1" Grid.Column="0">
|
|
|
|
<!-- Session managment -->
|
|
<Border
|
|
Background="#353535"
|
|
HorizontalAlignment="Center"
|
|
CornerRadius="10"
|
|
Padding="15">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button
|
|
Grid.ColumnSpan="2"
|
|
FontFamily="{StaticResource QuicksandFont}"
|
|
Content="Launch MC"
|
|
Click="OnLaunchMinecraftClick"
|
|
HorizontalAlignment="Center"/>
|
|
|
|
<!-- Selecting version -->
|
|
<Button
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
FontFamily="{StaticResource QuicksandFont}"
|
|
Content="Choose version"
|
|
Click="OnChooseVersionClick"
|
|
HorizontalAlignment="Center"/>
|
|
|
|
<!-- Account managment -->
|
|
<Image
|
|
Height="60"
|
|
Width="60"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Source="/Assets/Sprites/account-logo.png"
|
|
Stretch="Uniform"
|
|
PointerPressed="OnAccountSettingsPressed" />
|
|
|
|
</Grid>
|
|
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
<!-- Minecraft area end -->
|
|
|
|
<!-- Instruction panel in center-right -->
|
|
<StackPanel Height="300" Grid.Row="1" Grid.Column="2">
|
|
<Border
|
|
Background="#353535"
|
|
HorizontalAlignment="Center"
|
|
Width="305"
|
|
CornerRadius="10"
|
|
Padding="15" Margin="15">
|
|
|
|
<StackPanel>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Text="> Cross-platform minecraft launcher!"/>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Height="50" Text="> Fully open-source and privacy focused!"/>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Text="To use it:"/>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Text="1. Choose desired nickname."/>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Text="2. Choose desired minecraft version."/>
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}" Height="50" Text="3. Launch minecraft!"/>
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
<Canvas>
|
|
<Image
|
|
Height="60"
|
|
Source="/Assets/Sprites/gitlab-logo.png"
|
|
Stretch="Uniform"
|
|
PointerPressed="OnGitlabPressed"
|
|
Canvas.Left="290"
|
|
Canvas.Top="80"/>
|
|
</Canvas>
|
|
|
|
</StackPanel>
|
|
<!-- Instruction panel end -->
|
|
|
|
</Grid>
|
|
|
|
</Window>
|