mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-20 21:49:07 +00:00
When attempting to run the app and close, it wouldn't actually close... Set default states when starcitizen isn't running to unknown. Start reading file when starcitizen is detected. Stop when starcitizen isn't running. Issue, Need to fix reading file when game is already running.
176 lines
11 KiB
XML
176 lines
11 KiB
XML
<UserControl x:Class="AutoTrackR2.HomePage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Height="396"
|
|
Width="626">
|
|
<Grid Background="{DynamicResource BackgroundLightBrush}">
|
|
<!-- Main Layout Grid -->
|
|
<Grid Margin="0,0,5,7">
|
|
<Grid.RowDefinitions>
|
|
<!-- One row for the content, the other for buttons -->
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<!-- Left column for the main content area -->
|
|
<ColumnDefinition/>
|
|
<!-- Right column for the buttons -->
|
|
<ColumnDefinition Width="Auto"
|
|
MinWidth="173"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Border for the kill feed section -->
|
|
<!--TextBox Name="OutputTextBox" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Height="NaN" Margin="0,0,20,0" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" IsReadOnly="True" Style="{StaticResource RoundedTextBox}"/-->
|
|
<Border Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.RowSpan="2"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
BorderThickness="2"
|
|
CornerRadius="5"
|
|
Padding="10,0,0,0"
|
|
Background="{DynamicResource BackgroundDarkBrush}"
|
|
Margin="0,0,20,0">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto"
|
|
Width="419"
|
|
Margin="0,0,-5,0">
|
|
<StackPanel Name="KillFeedStackPanel"
|
|
Orientation="Vertical"
|
|
Margin="0,0,0,0"
|
|
Width="402"
|
|
HorizontalAlignment="Left"/>
|
|
</ScrollViewer>
|
|
</Border>
|
|
|
|
<!-- StackPanel for Start and Stop buttons -->
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
BorderThickness="2"
|
|
CornerRadius="5"
|
|
Margin="0,0,0,82"/>
|
|
<StackPanel Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Height="269"
|
|
Width="152">
|
|
<TextBlock Name="PilotNameTitle"
|
|
Text="Pilot"
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,5,0,0"
|
|
Foreground="{DynamicResource AltTextBrush}"
|
|
FontSize="14"/>
|
|
<TextBlock Name="PilotNameTextBox"
|
|
Text=""
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,0,0,0"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontSize="10"
|
|
TextAlignment="Center"/>
|
|
<TextBlock Name="PlayerShipTitle"
|
|
Text="Ship"
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,5,0,0"
|
|
Foreground="{DynamicResource AltTextBrush}"
|
|
FontSize="14"/>
|
|
<TextBlock Name="PlayerShipTextBox"
|
|
Text=""
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,0,0,0"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontSize="10"
|
|
TextAlignment="Center"/>
|
|
<TextBlock Name="GameModeTitle"
|
|
Text="Game Mode"
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,5,0,0"
|
|
Foreground="{DynamicResource AltTextBrush}"
|
|
FontSize="14"/>
|
|
<TextBlock Name="GameModeTextBox"
|
|
Text=""
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,0,0,0"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontSize="10"
|
|
TextAlignment="Center"/>
|
|
<TextBlock Name="KillTallyTitle"
|
|
Text="Kill Tally"
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,5,0,0"
|
|
Foreground="{DynamicResource AltTextBrush}"
|
|
FontSize="14"/>
|
|
<TextBlock Name="KillTallyTextBox"
|
|
Text=""
|
|
Width="152"
|
|
Height="20"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Margin="0,0,0,0"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontSize="10"
|
|
TextAlignment="Center"/>
|
|
<TextBox x:Name="DebugPanel"
|
|
Text=""
|
|
Width="152"
|
|
Height="98"
|
|
Background="Transparent"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontSize="8"
|
|
BorderThickness="0"
|
|
Margin="0,9,0,0"/>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Height="120"
|
|
Width="172">
|
|
<Border Background="{DynamicResource BackgroundDarkBrush}"
|
|
BorderBrush="{DynamicResource AccentBrush}"
|
|
BorderThickness="2"
|
|
CornerRadius="5"
|
|
Height="80"
|
|
Margin="0,10,0,0">
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
<Ellipse x:Name="StatusLight"
|
|
Width="15"
|
|
Height="15"
|
|
Margin="0,0,10,0"
|
|
Fill="Red"/>
|
|
<TextBlock x:Name="StatusText"
|
|
Text="TrackR
Standby"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
FontFamily="{StaticResource Orbitron}"
|
|
FontSize="14"
|
|
VerticalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|