Repository navigation
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
48 lines (46 loc) · 2.38 KB
/
Copy pathMainWindow.axaml
File metadata and controls
48 lines (46 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:uc="clr-namespace:SciLors_Mashed_Trainer.Controls"
x:Class="SciLors_Mashed_Trainer.MainWindow"
Title="SciLor's Mashed Trainer v0.2.1"
Width="1330" Height="700"
MinWidth="1200" MinHeight="620"
WindowStartupLocation="CenterScreen">
<Grid RowDefinitions="Auto,*,Auto">
<!-- Top Menu -->
<Menu Grid.Row="0">
<MenuItem Header="_File">
<MenuItem Name="mniExit" Header="E_xit" Click="mniExit_Click" />
</MenuItem>
<MenuItem Header="_Icons">
<MenuItem Name="mniIconIngame" Header="_In-game (default)" Click="mniIcon_Click" Tag="ingame" />
<MenuItem Name="mniIconClassic" Header="_Classic (legacy)" Click="mniIcon_Click" Tag="classic" />
</MenuItem>
<MenuItem Header="_About">
<MenuItem Name="mniWebsite" Header="_Website" Click="mniWebsite_Click" />
<MenuItem Name="mniDonate" Header="_Donate" Click="mniDonate_Click" />
</MenuItem>
</Menu>
<!-- Main Tabs -->
<TabControl Name="tabMain" Grid.Row="1" Margin="4">
<TabItem Header="Players" Name="taiPlayers">
<Grid Name="grdPlayers" ColumnDefinitions="*,*,*,*">
<!-- Populated dynamically or statically with 4 UcPlayerInfo -->
</Grid>
</TabItem>
<TabItem Header="Game" Name="taiGame">
<uc:UcGameInfo x:Name="ucGameInfo" />
</TabItem>
</TabControl>
<!-- Status Bar -->
<Border Grid.Row="2" Background="#13151B" Padding="10,4" BorderBrush="#252936" BorderThickness="0,1,0,0">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Orientation="Horizontal" Spacing="8" VerticalAlignment="Center">
<Ellipse Name="elpStatusLed" Width="8" Height="8" Fill="#FFA000" VerticalAlignment="Center" />
<TextBlock Name="txtStatus" Text="Waiting for Mashed (MFL.exe)..." FontSize="11" Foreground="#9DA7B8" VerticalAlignment="Center" />
</StackPanel>
<TextBlock Name="txtGameInfo" Grid.Column="1" FontSize="11" Foreground="#9DA7B8" VerticalAlignment="Center" />
</Grid>
</Border>
</Grid>
</Window>