146 lines
8.9 KiB
XML
146 lines
8.9 KiB
XML
<Window x:Class="PUBG2017PSLauncher.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:PUBG2017PSLauncher"
|
|
mc:Ignorable="d"
|
|
Title="OG:BG 启动器" Height="720" Width="1168" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True"
|
|
Background="Transparent" Closing="windowIsClosing" Visibility="Collapsed" ShowInTaskbar="False">
|
|
|
|
<Border x:Name="mainWnd" CornerRadius="10" BorderBrush="#6e7783" BorderThickness="1">
|
|
<!--Main Grid-->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!--Title Bar-->
|
|
<StackPanel Grid.ColumnSpan="2" Orientation="Horizontal">
|
|
<Border x:Name="Border" Background="#212121" CornerRadius="10 17 0 0" Width="1168" MouseDown="Border_MouseDown"/>
|
|
</StackPanel>
|
|
|
|
<Button Grid.Column="2" Style="{StaticResource closeButton}" Click="closeBtnClick">
|
|
<Icon:PackIconMaterial Style="{StaticResource windowBtnIcon}" Kind="Close"/>
|
|
</Button>
|
|
|
|
<Button Grid.Column="2" Style="{StaticResource minimizeButton}" Margin="40 0" Click="minimizeBtnClick">
|
|
<Icon:PackIconMaterial Style="{StaticResource windowBtnIcon}" Kind="Minus"/>
|
|
</Button>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="pack://application:,,,/Images/icon.png" Width="16" Height="16" Margin="10 0" HorizontalAlignment="Left"/>
|
|
<TextBlock Text="OG:BG 启动器" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="-2"/>
|
|
</StackPanel>
|
|
|
|
|
|
<!--Page Selection-->
|
|
<Grid Grid.Row="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="1" Background="#171717" CornerRadius="0 0 0 10">
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Top">
|
|
<Button x:Name="mainBtn" Margin="15" Style="{StaticResource menuButton}" Background="#212121" Foreground="White" Click="playBtnClick">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Icon:PackIconMaterial Kind="Controller" Style="{StaticResource menuButtonIcon}"/>
|
|
<TextBlock FontSize="14" VerticalAlignment="Center" Text="主页"/>
|
|
</StackPanel>
|
|
</Button>
|
|
<Button x:Name="settingsBtn" Margin="15 -5" Style="{StaticResource menuButton}" Background="Transparent" Foreground="#6e7783" Click="settingsBtnClick">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Icon:PackIconMaterial Kind="Cog" Style="{StaticResource menuButtonIcon}"/>
|
|
<TextBlock FontSize="14" VerticalAlignment="Center" Text="设置"/>
|
|
</StackPanel>
|
|
</Button>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Border>
|
|
</Grid>
|
|
<!--Main Page-->
|
|
<Grid x:Name="mainMenu" Grid.Column="2" Grid.Row="2" Visibility="Visible">
|
|
<Border Grid.Column="2" Grid.Row="2" VerticalAlignment="Top" Height="590">
|
|
<Border.Background>
|
|
<ImageBrush Stretch="Fill" ImageSource="pack://application:,,,/Images/back.png"/>
|
|
</Border.Background>
|
|
</Border>
|
|
|
|
<StackPanel Margin="35 25">
|
|
<TextBlock Text="OG:BG" FontFamily="./fonts/#PUBG SANS" Foreground="White" FontSize="72" FontWeight="Bold"/>
|
|
<TextBlock Text="最新内容:" Foreground="White" FontSize="24"/>
|
|
<TextBlock x:Name="whatsNewText" Text="Loading..." Foreground="#FF98A5B7" Margin="0 10" FontSize="16"/>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Column="2" Grid.Row="2" CornerRadius="0 0 10 0" Background="#212121" Height="100" VerticalAlignment="Bottom">
|
|
<DockPanel>
|
|
<Button x:Name="installBtn" Style="{StaticResource installButton}" DockPanel.Dock="Left" Margin="30 0" Click="installBtnClick">
|
|
<TextBlock x:Name="installBtnText" FontFamily="Microsoft Yi Baiti" HorizontalAlignment="Center" Text="安装游戏" Margin="0 5" FontSize="32" FontWeight="Bold"/>
|
|
</Button>
|
|
|
|
<StackPanel x:Name="lastPlayed" Orientation="Vertical" Margin="50 0">
|
|
<TextBlock Text="上次游玩" Foreground="#996E7783" FontSize="22" HorizontalAlignment="Center" FontWeight="Bold" Margin="15 23"/>
|
|
<TextBlock x:Name="lastPlayedText" Text="12/24/2024 3:59 AM" Foreground="#996E7783" FontSize="14" Margin="15 -20" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel x:Name="miscButtons" Margin="37 0" Orientation="Horizontal" DockPanel.Dock="Right">
|
|
<Button x:Name="repairGameBtn" ToolTip="修复游戏" Style="{StaticResource miscButton}" Margin="25" IsEnabled="False" Click="repairGame">
|
|
<Icon:PackIconMaterial Kind="Wrench" Width="20" Height="20"/>
|
|
</Button>
|
|
|
|
<Button x:Name="uninstallGameBtn" ToolTip="卸载游戏" Style="{StaticResource miscButton}" Margin="-10" IsEnabled="False" Click="uninstallGame">
|
|
<Icon:PackIconMaterial Kind="Delete" Width="20" Height="20"/>
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel x:Name="playtime" Orientation="Vertical" DockPanel.Dock="Right" Margin="25 0">
|
|
<TextBlock Text="游玩时间" Foreground="#996E7783" FontSize="22" HorizontalAlignment="Center" FontWeight="Bold" Margin="15 23"/>
|
|
<TextBlock x:Name="playtimeText" Text="0.0 hrs" Foreground="#996E7783" FontSize="14" Margin="15 -20" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel x:Name="downloadBar" Visibility="Collapsed" Orientation="Vertical" VerticalAlignment="Center" Margin="0 5 0 0">
|
|
<ProgressBar x:Name="downloadProgress" Style="{DynamicResource ProgressBarStyle1}" Height="5" Width="630" HorizontalAlignment="Left"/>
|
|
<TextBlock x:Name="downloadText" Text="下载中" Foreground="#6e7783" Margin="0 5 0 0"/>
|
|
</StackPanel>
|
|
|
|
</DockPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<!--Settings Page-->
|
|
<Grid x:Name="settingsMenu" Grid.Column="2" Grid.Row="2" Visibility="Collapsed">
|
|
<Border Background="#1A1A1A" CornerRadius="0 0 10 0"/>
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Top" Margin="25">
|
|
<TextBlock Text="安装目录" Foreground="White"/>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="" Foreground="#6e7783" x:Name="gamePathTextBox" Width="auto" MaxWidth="700" HorizontalAlignment="Left" Margin="0 10"/>
|
|
<Button x:Name="gameInstallPathBtn" Style="{StaticResource selectPathButton}" Margin="10 0" Click="gameInstallBtnClick">
|
|
<Icon:PackIconMaterial Kind="DotsHorizontal"/>
|
|
</Button>
|
|
</StackPanel>
|
|
|
|
<CheckBox x:Name="startOnBootCheck" Style="{StaticResource CheckBoxStyle}" Margin="0 10" Checked="startOnBootChecked" Unchecked="startOnBootUnchecked">
|
|
<TextBlock Text="电脑启动时自动运行启动器"/>
|
|
</CheckBox>
|
|
|
|
<CheckBox x:Name="startMinimizedCheck" Style="{StaticResource CheckBoxStyle}" Margin="0 5">
|
|
<TextBlock Text="启动游戏时最小化启动器"/>
|
|
</CheckBox>
|
|
|
|
</StackPanel>
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|