2025-02-21 13:13:35 +03:00
|
|
|
<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/icon.png"
|
|
|
|
Title="PlombirLauncher"
|
|
|
|
RequestedThemeVariant="Dark"
|
|
|
|
Width="750" Height="500"
|
|
|
|
MinWidth="750" MinHeight="500"
|
|
|
|
MaxWidth="750" MaxHeight="500">
|
|
|
|
|
|
|
|
<Window.Background>
|
|
|
|
<ImageBrush Source="/Assets/background.jpg" Stretch="UniformToFill"/>
|
|
|
|
</Window.Background>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="50"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Grid.Row="0" Grid.ColumnSpan="3" >
|
|
|
|
<Border
|
|
|
|
Width="500"
|
|
|
|
Background="#353535"
|
|
|
|
Padding="10" Margin="3"
|
|
|
|
CornerRadius="10">
|
|
|
|
|
|
|
|
<Image Source="/Assets/title.png"
|
|
|
|
Stretch="Uniform"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
<TextBlock FontFamily="{StaticResource QuicksandFont}"
|
2025-02-21 16:09:06 +03:00
|
|
|
HorizontalAlignment="Right" Text="v1.1.0 - nullmax17"/>
|
2025-02-21 13:13:35 +03:00
|
|
|
</StackPanel>
|
2025-02-21 16:09:06 +03:00
|
|
|
<Canvas Grid.Row="0" Grid.Column="1">
|
|
|
|
<Border
|
|
|
|
Background="#353535"
|
|
|
|
CornerRadius="10"
|
|
|
|
Margin="5"
|
|
|
|
Canvas.Left="290">
|
|
|
|
|
|
|
|
<Image
|
|
|
|
Height="60"
|
|
|
|
Source="/Assets/cog.png"
|
|
|
|
Stretch="Uniform"
|
|
|
|
PointerPressed="OnCogPressed" />
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
</Canvas>
|
|
|
|
|
2025-02-21 13:13:35 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Grid.Row="1" Grid.Column="0">
|
|
|
|
<Border
|
|
|
|
Background="#353535"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Width="150"
|
|
|
|
CornerRadius="10"
|
|
|
|
Padding="15">
|
|
|
|
|
|
|
|
<Button FontFamily="{StaticResource QuicksandFont}" Content="Launch MC" Click="OnLaunchMinecraftClick" HorizontalAlignment="Center"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border
|
|
|
|
Background="#353535"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Width="250"
|
|
|
|
CornerRadius="10"
|
|
|
|
Padding="15" Margin="15">
|
|
|
|
<StackPanel>
|
|
|
|
<TextBlock
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Text="Insert username:"
|
|
|
|
FontFamily="{StaticResource QuicksandFont}"/>
|
|
|
|
<TextBox Margin="5" Text="{Binding Usernick, Mode=TwoWay}" Width="200" />
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border
|
|
|
|
Background="#353535"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Width="150"
|
|
|
|
CornerRadius="10"
|
|
|
|
Padding="10">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
FontFamily="{StaticResource QuicksandFont}"
|
|
|
|
Content="Choose version"
|
|
|
|
Click="OnChooseVersionClick"
|
|
|
|
HorizontalAlignment="Center"/>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
2025-02-21 16:09:06 +03:00
|
|
|
<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>
|
2025-02-21 13:13:35 +03:00
|
|
|
|
2025-02-21 16:09:06 +03:00
|
|
|
</Border>
|
|
|
|
<Canvas>
|
|
|
|
<Image
|
|
|
|
Height="60"
|
|
|
|
Source="/Assets/gitlab-logo.png"
|
|
|
|
Stretch="Uniform"
|
|
|
|
PointerPressed="OnGitlabPressed"
|
|
|
|
Canvas.Left="290"
|
|
|
|
Canvas.Top="80"/>
|
|
|
|
</Canvas>
|
|
|
|
|
|
|
|
</StackPanel>
|
2025-02-21 13:13:35 +03:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Window>
|