mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-20 21:49:07 +00:00
Fixed save button on config page going off the page.
This commit is contained in:
parent
c2cdd2a6a1
commit
0593969f77
1 changed files with 217 additions and 217 deletions
|
@ -2,234 +2,234 @@
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Height="410"
|
Height="410"
|
||||||
Width="626">
|
Width="626">
|
||||||
|
|
||||||
<Grid Background="{DynamicResource BackgroundLightBrush}">
|
<Grid Background="{DynamicResource BackgroundLightBrush}">
|
||||||
<!-- Main Layout Grid -->
|
<!-- Main Layout Grid -->
|
||||||
<Grid Margin="0,0,5,7">
|
<Grid Margin="0,0,5,7">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<!-- One row for the content, the other for buttons -->
|
<!-- One row for the content, the other for buttons -->
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<!-- Left column for the main content area -->
|
<!-- Left column for the main content area -->
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
<!-- Right column for the buttons -->
|
<!-- Right column for the buttons -->
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!-- Section for Config Fields -->
|
<!-- Section for Config Fields -->
|
||||||
<StackPanel Grid.Column="0"
|
<StackPanel Grid.Column="0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Height="389">
|
Height="389">
|
||||||
<!-- Log File -->
|
<!-- Log File -->
|
||||||
<StackPanel Margin="0,10,0,15"
|
<StackPanel Margin="0,10,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="Set this to the Game.log file in your StarCitizen\LIVE directory."
|
ToolTip="Set this to the Game.log file in your StarCitizen\LIVE directory."
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,0,3,5"/>
|
Margin="0,0,3,5"/>
|
||||||
<TextBlock Text="Log File:"
|
<TextBlock Text="Log File:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,5,0,5"
|
Margin="0,5,0,5"
|
||||||
FontFamily="{StaticResource Roboto}"/>
|
FontFamily="{StaticResource Roboto}"/>
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Margin="30,0,0,0">
|
Margin="30,0,0,0">
|
||||||
<TextBox Name="LogFilePath"
|
<TextBox Name="LogFilePath"
|
||||||
Width="330"
|
Width="330"
|
||||||
Height="30"
|
Height="30"
|
||||||
Style="{StaticResource RoundedTextBox}"/>
|
Style="{StaticResource RoundedTextBox}"/>
|
||||||
<Button Content="Browse"
|
<Button Content="Browse"
|
||||||
Width="75"
|
Width="75"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontFamily="{StaticResource Orbitron}"
|
FontFamily="{StaticResource Orbitron}"
|
||||||
Margin="5,0"
|
Margin="5,0"
|
||||||
Style="{StaticResource ButtonStyle}"
|
Style="{StaticResource ButtonStyle}"
|
||||||
Click="LogFileBrowseButton_Click"/>
|
Click="LogFileBrowseButton_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- API URL -->
|
<!-- API URL -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="Need a URL? No idea what to do? Contact heavy_bob on Discord!"
|
ToolTip="Need a URL? No idea what to do? Contact heavy_bob on Discord!"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,3,3,5"/>
|
Margin="0,3,3,5"/>
|
||||||
<TextBlock Text="API URL:"
|
<TextBlock Text="API URL:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,5,0,5"/>
|
Margin="0,5,0,5"/>
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Margin="30,0,0,0">
|
Margin="30,0,0,0">
|
||||||
<TextBox Name="ApiUrl"
|
<TextBox Name="ApiUrl"
|
||||||
Width="330"
|
Width="330"
|
||||||
Height="30"
|
Height="30"
|
||||||
Style="{StaticResource RoundedTextBox}"/>
|
Style="{StaticResource RoundedTextBox}"/>
|
||||||
<Button Content="Test"
|
<Button Content="Test"
|
||||||
Width="75"
|
Width="75"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontFamily="{StaticResource Orbitron}"
|
FontFamily="{StaticResource Orbitron}"
|
||||||
Margin="5,0"
|
Margin="5,0"
|
||||||
Style="{StaticResource ButtonStyle}"
|
Style="{StaticResource ButtonStyle}"
|
||||||
Click="TestApiButton_Click"/>
|
Click="TestApiButton_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- API Key -->
|
<!-- API Key -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="Need a key? No idea what to do? Contact heavy_bob on Discord!"
|
ToolTip="Need a key? No idea what to do? Contact heavy_bob on Discord!"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,3,3,5"/>
|
Margin="0,3,3,5"/>
|
||||||
<TextBlock Text="API Key:"
|
<TextBlock Text="API Key:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,5,0,5"/>
|
Margin="0,5,0,5"/>
|
||||||
<PasswordBox Name="ApiKey"
|
<PasswordBox Name="ApiKey"
|
||||||
Width="330"
|
Width="330"
|
||||||
Height="30"
|
Height="30"
|
||||||
Margin="33,0,0,0"
|
Margin="33,0,0,0"
|
||||||
Style="{StaticResource RoundedPasswordBox}"/>
|
Style="{StaticResource RoundedPasswordBox}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Video Path -->
|
<!-- Video Path -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="The directory where your clipping software saves kills. Check the README."
|
ToolTip="The directory where your clipping software saves kills. Check the README."
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,3,3,5"/>
|
Margin="0,3,3,5"/>
|
||||||
<TextBlock Text="Video Path:"
|
<TextBlock Text="Video Path:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,5,0,5"/>
|
Margin="0,5,0,5"/>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBox Name="VideoPath"
|
<TextBox Name="VideoPath"
|
||||||
Width="330"
|
Width="330"
|
||||||
Height="30"
|
Height="30"
|
||||||
Margin="10,0,0,0"
|
Margin="10,0,0,0"
|
||||||
Style="{StaticResource RoundedTextBox}"/>
|
Style="{StaticResource RoundedTextBox}"/>
|
||||||
<Button Content="Browse"
|
<Button Content="Browse"
|
||||||
Width="75"
|
Width="75"
|
||||||
Height="30"
|
Height="30"
|
||||||
FontFamily="{StaticResource Orbitron}"
|
FontFamily="{StaticResource Orbitron}"
|
||||||
Margin="5,0"
|
Margin="5,0"
|
||||||
Style="{StaticResource ButtonStyle}"
|
Style="{StaticResource ButtonStyle}"
|
||||||
Click="VideoPathBrowseButton_Click"/>
|
Click="VideoPathBrowseButton_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Visor Wipe Toggle Slider -->
|
<!-- Visor Wipe Toggle Slider -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="Perform a Visor Wipe animation on player kill. Requires AHKv2."
|
ToolTip="Perform a Visor Wipe animation on player kill. Requires AHKv2."
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,4,3,5"/>
|
Margin="0,4,3,5"/>
|
||||||
<TextBlock Text="Visor Wipe:"
|
<TextBlock Text="Visor Wipe:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,7,0,5"/>
|
Margin="0,7,0,5"/>
|
||||||
<Slider Name="VisorWipeSlider"
|
<Slider Name="VisorWipeSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
Value="0"
|
Value="0"
|
||||||
Style="{StaticResource ToggleSliderStyle}"
|
Style="{StaticResource ToggleSliderStyle}"
|
||||||
Margin="27,-4,0,0"
|
Margin="27,-4,0,0"
|
||||||
ValueChanged="VisorWipeSlider_ValueChanged"/>
|
ValueChanged="VisorWipeSlider_ValueChanged"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Video Record Toggle Slider -->
|
<!-- Video Record Toggle Slider -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="Automatically clip your last kill. Check the README for more info."
|
ToolTip="Automatically clip your last kill. Check the README for more info."
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,4,3,5"/>
|
Margin="0,4,3,5"/>
|
||||||
<TextBlock Text="Video Record:"
|
<TextBlock Text="Video Record:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,7,0,5"/>
|
Margin="0,7,0,5"/>
|
||||||
<Slider Name="VideoRecordSlider"
|
<Slider Name="VideoRecordSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
Value="0"
|
Value="0"
|
||||||
Style="{StaticResource ToggleSliderStyle}"
|
Style="{StaticResource ToggleSliderStyle}"
|
||||||
Margin="10,-4,0,0"
|
Margin="10,-4,0,0"
|
||||||
ValueChanged="VideoRecordSlider_ValueChanged"/>
|
ValueChanged="VideoRecordSlider_ValueChanged"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Offline Mode Toggle Slider -->
|
<!-- Offline Mode Toggle Slider -->
|
||||||
<StackPanel Margin="0,0,0,10"
|
<StackPanel Margin="0,0,0,10"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="ⓘ"
|
<TextBlock Text="ⓘ"
|
||||||
ToolTip="With Offline Mode enabled, kills will not be submitted to the configured API."
|
ToolTip="With Offline Mode enabled, kills will not be submitted to the configured API."
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Margin="0,4,3,5"/>
|
Margin="0,4,3,5"/>
|
||||||
<TextBlock Text="Offline Mode:"
|
<TextBlock Text="Offline Mode:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,7,0,5"/>
|
Margin="0,7,0,5"/>
|
||||||
<Slider Name="OfflineModeSlider"
|
<Slider Name="OfflineModeSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="1"
|
Maximum="1"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
Value="0"
|
Value="0"
|
||||||
Style="{StaticResource ToggleSliderStyle}"
|
Style="{StaticResource ToggleSliderStyle}"
|
||||||
Margin="12,-4,0,0"
|
Margin="12,-4,0,0"
|
||||||
ValueChanged="OfflineModeSlider_ValueChanged"/>
|
ValueChanged="OfflineModeSlider_ValueChanged"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- 3-Position Toggle Slider -->
|
<!-- 3-Position Toggle Slider -->
|
||||||
<StackPanel Margin="0,0,0,15"
|
<StackPanel Margin="0,0,0,15"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="Theme:"
|
<TextBlock Text="Theme:"
|
||||||
Foreground="{DynamicResource TextBrush}"
|
Foreground="{DynamicResource TextBrush}"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Margin="0,7,0,5"/>
|
Margin="0,7,0,5"/>
|
||||||
<Slider x:Name="ThemeSlider"
|
<Slider x:Name="ThemeSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="21"
|
Maximum="21"
|
||||||
Value="0"
|
Value="0"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
ValueChanged="ThemeSlider_ValueChanged"
|
ValueChanged="ThemeSlider_ValueChanged"
|
||||||
Width="447"
|
Width="447"
|
||||||
Style="{StaticResource ThreePositionSlider}"/>
|
Style="{StaticResource ThreePositionSlider}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Save Button -->
|
<!-- Save Button -->
|
||||||
<StackPanel Grid.Column="2"
|
<StackPanel Grid.Column="2"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
Margin="0">
|
Margin="0,0,0,10">
|
||||||
<Button x:Name="SaveButton"
|
<Button x:Name="SaveButton"
|
||||||
Content="Save"
|
Content="Save"
|
||||||
Width="100"
|
Width="100"
|
||||||
Height="40"
|
Height="40"
|
||||||
Style="{StaticResource ButtonStyle}"
|
Style="{StaticResource ButtonStyle}"
|
||||||
FontFamily="{StaticResource Orbitron}"
|
FontFamily="{StaticResource Orbitron}"
|
||||||
Click="SaveButton_Click"/>
|
Click="SaveButton_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue