mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
The daily GitHub check, the top-bar button, the stable/staging channel and "check now" go, with their settings and texts.
104 lines
6.2 KiB
XML
104 lines
6.2 KiB
XML
<Window
|
|
x:Class="StarterNG.MainWindow"
|
|
x:CompileBindings="True"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:views="clr-namespace:StarterNG.Views"
|
|
xmlns:starterNg="clr-namespace:StarterNG"
|
|
Title="Starter MaSzyna"
|
|
Icon="/Assets/starter.ico"
|
|
Width="1010" Height="768" MinWidth="1010" MinHeight="666"
|
|
WindowStartupLocation="CenterScreen">
|
|
|
|
<DockPanel LastChildFill="True">
|
|
|
|
<Border x:Name="TopBar" DockPanel.Dock="Top"
|
|
Background="{StaticResource CarbonPanelBg}"
|
|
BorderBrush="{StaticResource CarbonBorderLight}"
|
|
BorderThickness="0,0,0,1"
|
|
PointerPressed="TitleBar_OnPointerPressed">
|
|
<Grid RowDefinitions="44">
|
|
|
|
<Grid ColumnDefinitions="Auto,*,Auto" Background="Transparent">
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Stretch">
|
|
<RadioButton x:Name="NavScenarios" GroupName="nav" Theme="{StaticResource NavTab}"
|
|
Tag="scenarios" IsChecked="True"
|
|
IsCheckedChanged="Nav_OnCheckedChanged"
|
|
Content="{Binding [NavScenarios], Source={x:Static starterNg:App.Loc}}" />
|
|
<RadioButton x:Name="NavDepot" GroupName="nav" Theme="{StaticResource NavTab}"
|
|
Tag="depot"
|
|
IsCheckedChanged="Nav_OnCheckedChanged"
|
|
Content="{Binding [NavDepot], Source={x:Static starterNg:App.Loc}}" />
|
|
<RadioButton x:Name="NavSettings" GroupName="nav" Theme="{StaticResource NavTab}"
|
|
Tag="settings"
|
|
IsCheckedChanged="Nav_OnCheckedChanged"
|
|
Content="{Binding [NavSettings], Source={x:Static starterNg:App.Loc}}" />
|
|
<RadioButton x:Name="NavDeveloper" GroupName="nav" Theme="{StaticResource NavTab}"
|
|
Tag="developer" IsVisible="False"
|
|
IsCheckedChanged="Nav_OnCheckedChanged"
|
|
Content="{Binding [NavDeveloper], Source={x:Static starterNg:App.Loc}}" />
|
|
<Button Classes="Basic" Click="openLastLogClick" Width="48" Cursor="Hand"
|
|
HorizontalContentAlignment="Center"
|
|
ToolTip.Tip="{Binding [ShowLatestLogTooltip], Source={x:Static starterNg:App.Loc}}">
|
|
<materialIcons:MaterialIcon Kind="FileDocument" Height="16" Width="16" />
|
|
</Button>
|
|
<Button x:Name="HelpButton" Classes="Basic" Width="48" Cursor="Hand"
|
|
ToolTip.Tip="{Binding [Help], Source={x:Static starterNg:App.Loc}}"
|
|
Click="HelpButton_OnClick"
|
|
Content="?" FontWeight="Bold" FontSize="16"
|
|
HorizontalContentAlignment="Center" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal"
|
|
VerticalAlignment="Center" Margin="0,0,3,0" Spacing="0">
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,0,6,0">
|
|
<Label Content="{Binding [Version], Source={x:Static starterNg:App.Loc}}"
|
|
FontSize="12" Foreground="{StaticResource CarbonFgDim}" Padding="0" />
|
|
<Label Content="{x:Static starterNg:AppInfo.Version}"
|
|
FontSize="12" Foreground="{StaticResource CarbonFg}" Padding="0" />
|
|
</StackPanel>
|
|
|
|
<ComboBox x:Name="LangCombo" Width="88" VerticalAlignment="Center"
|
|
SelectionChanged="LangCombo_OnSelectionChanged" />
|
|
|
|
<Button Classes="Basic" Cursor="Hand" Tag="https://discord.gg/eu07" Click="linkClick">
|
|
<PathIcon Data="{StaticResource DiscordLogo}" Height="12" />
|
|
</Button>
|
|
<Button Classes="Basic" Cursor="Hand" Tag="http://www.facebook.com/MaSzynaeu07pl" Click="linkClick">
|
|
<materialIcons:MaterialIcon Kind="Facebook" />
|
|
</Button>
|
|
<Button Classes="Basic" Cursor="Hand" Tag="http://www.youtube.com/@eu07official" Click="linkClick">
|
|
<materialIcons:MaterialIcon Kind="Youtube" />
|
|
</Button>
|
|
<Button Classes="Basic" Cursor="Hand" Tag="http://github.com/MaSzyna-EU07/" Click="linkClick">
|
|
<materialIcons:MaterialIcon Kind="Github" />
|
|
</Button>
|
|
|
|
<Button Classes="Basic" Cursor="Hand" Tag="http://eu07.pl/" Click="linkClick"
|
|
Padding="6,0" Margin="4,0,0,0"
|
|
ToolTip.Tip="eu07.pl">
|
|
<Image Source="/Assets/Logo/maszyna_white.png" Height="26" />
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Button Name="startButton" DockPanel.Dock="Bottom" Classes="Start" Height="42" Margin="3"
|
|
TabIndex="9"
|
|
Click="StartButton_OnClick"
|
|
Content="{Binding [Start], Source={x:Static starterNg:App.Loc}}" />
|
|
|
|
<Panel Margin="3,3,3,0" TabIndex="1">
|
|
<views:Scenarios x:Name="ScenariosView" />
|
|
<views:Depot x:Name="DepotView" IsVisible="False" />
|
|
<views:Settings x:Name="SettingsView" IsVisible="False" />
|
|
<views:Developer x:Name="DeveloperView" IsVisible="False" />
|
|
</Panel>
|
|
</DockPanel>
|
|
</Window>
|