SettingsWindow.axaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="SlamCross.Views.SettingsWindow"
  4. Title="Settings" Width="480" Height="400"
  5. WindowStartupLocation="CenterOwner">
  6. <ScrollViewer>
  7. <StackPanel Margin="16" Spacing="10">
  8. <TextBlock Text="Settings" FontSize="18" FontWeight="Bold"/>
  9. <CheckBox x:Name="StartEnabled" Content="Start polling on launch"/>
  10. <CheckBox x:Name="StartMinimized" Content="Start minimized"/>
  11. <CheckBox x:Name="HoldToPlay" Content="Hold key to play (instead of toggle)"/>
  12. <CheckBox x:Name="LogError" Content="Log errors to errorlog.txt"/>
  13. <CheckBox x:Name="WriteTags" Content="Show tags in track list"/>
  14. <Separator/>
  15. <TextBlock Text="Relay key (the key CS2 writes the command to):"/>
  16. <TextBox x:Name="RelayKeyBox" MaxLength="20" PlaceholderText="default: ="/>
  17. <Separator/>
  18. <CheckBox x:Name="OverrideFolders" Content="Override Steam folder detection"
  19. IsCheckedChanged="OverrideChanged"/>
  20. <Grid x:Name="OverridePanel" ColumnDefinitions="Auto,*" RowDefinitions="Auto,8,Auto"
  21. IsVisible="False">
  22. <TextBlock Grid.Row="0" Grid.Column="0" Text="steamapps path:" VerticalAlignment="Center" Margin="0,0,8,0"/>
  23. <TextBox Grid.Row="0" Grid.Column="1" x:Name="SteamAppsBox"/>
  24. <TextBlock Grid.Row="2" Grid.Column="0" Text="userdata path:" VerticalAlignment="Center" Margin="0,0,8,0"/>
  25. <TextBox Grid.Row="2" Grid.Column="1" x:Name="UserDataBox"/>
  26. </Grid>
  27. <Separator/>
  28. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
  29. <Button Content="Save" Click="Save_Click"/>
  30. <Button Content="Close" Click="Close_Click"/>
  31. </StackPanel>
  32. </StackPanel>
  33. </ScrollViewer>
  34. </Window>