MainPage.xaml 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <Page
  2. x:Class="SDLPal.MainPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:SDLPal"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d" Loaded="Page_Loaded">
  9. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  10. <ScrollViewer HorizontalScrollMode="Disabled">
  11. <StackPanel VerticalAlignment="Top" Margin="10,0,20,10">
  12. <TextBlock Text="SDLPAL" FontSize="48" />
  13. <TextBlock x:Uid="Title" Text="设置模式" FontSize="28" VerticalAlignment="Center" />
  14. <TextBox x:Name="tbGamePath" x:Uid="GamePath" TextWrapping="Wrap" VerticalAlignment="Top" Header="游戏资源文件夹" IsReadOnly="True" PlaceholderText="未选择游戏资源文件夹"/>
  15. <Button x:Name="btnBrowseGame" x:Uid="ButtonBrowse" Content="浏览文件夹" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnBrowse_Click" />
  16. <ToggleSwitch x:Name="tsUseEmbedFont" x:Uid="EmbeddedFont" Header="使用游戏资源内置字体" OffContent="否" OnContent="是" />
  17. <ToggleSwitch x:Name="tsLanguage" x:Uid="Language" Header="游戏资源语言" OffContent="繁体中文" OnContent="简体中文" />
  18. <TextBox x:Name="tbMsgFile" x:Uid="MessageFile" Header="自定义语言文件" TextWrapping="Wrap" VerticalAlignment="Top" PlaceholderText="无自定义语言文件" IsReadOnly="True"/>
  19. <StackPanel Orientation="Horizontal">
  20. <Button x:Name="btnBrowseMsgFile" x:Uid="ButtonBrowseFile" Content="选择语言文件" Click="btnBrowseFile_Click" />
  21. <Button x:Name="btnClearMsgFile" x:Uid="ButtonClearFile" Content="禁用语言文件" Margin="20,0,0,0" Click="btnClearFile_Click" />
  22. </StackPanel>
  23. <ToggleSwitch x:Name="tsTouchOverlay" x:Uid="TouchOverlay" Header="启用触屏辅助" OffContent="否" OnContent="是" />
  24. <ToggleSwitch x:Name="tsKeepAspect" x:Uid="AspectRatio" Header="保持纵横比" OffContent="否" OnContent="是" />
  25. <ToggleSwitch x:Name="tsStereo" x:Uid="Stereo" Header="立体声" OffContent="否" OnContent="是" />
  26. <Slider x:Name="slMusicVolume" x:Uid="MusicVolume" Header="音乐音量" TickPlacement="Inline" TickFrequency="10" />
  27. <Slider x:Name="slSoundVolume" x:Uid="SoundVolume" Header="音效音量" TickPlacement="Inline" TickFrequency="10" />
  28. <Slider x:Name="slQuality" x:Uid="Quality" Header="音频质量" Maximum="4" LargeChange="1" TickFrequency="1" />
  29. <ComboBox x:Name="cbSampleRate" x:Uid="Samplerate" HorizontalAlignment="Stretch" Header="音频输出采样率" PlaceholderText="音频输出采样率">
  30. <ComboBoxItem Content="11025"/>
  31. <ComboBoxItem Content="22050"/>
  32. <ComboBoxItem Content="44100"/>
  33. </ComboBox>
  34. <ComboBox x:Name="cbAudioBuffer" x:Uid="AudioBuffer" HorizontalAlignment="Stretch" Header="音频缓冲区大小" PlaceholderText="音频缓冲区大小">
  35. <ComboBoxItem Content="512"/>
  36. <ComboBoxItem Content="1024"/>
  37. <ComboBoxItem Content="2048"/>
  38. <ComboBoxItem Content="4096"/>
  39. <ComboBoxItem Content="8192"/>
  40. </ComboBox>
  41. <ComboBox x:Name="cbCD" x:Uid="CD" HorizontalAlignment="Stretch" Header="CD 音轨格式" PlaceholderText="CD 音轨格式">
  42. <ComboBoxItem Content="MP3"/>
  43. <ComboBoxItem Content="OGG"/>
  44. </ComboBox>
  45. <ComboBox x:Name="cbBGM" x:Uid="BGM" HorizontalAlignment="Stretch" Header="背景音乐格式" PlaceholderText="背景音乐格式" SelectionChanged="cbBGM_SelectionChanged">
  46. <ComboBoxItem Content="MIDI"/>
  47. <ComboBoxItem Content="RIX"/>
  48. <ComboBoxItem Content="MP3"/>
  49. <ComboBoxItem Content="OGG"/>
  50. </ComboBox>
  51. <ComboBox x:Name="cbOPL" x:Uid="OPL" HorizontalAlignment="Stretch" Header="OPL 模拟器" PlaceholderText="OPL 模拟器">
  52. <ComboBoxItem Content="DOSBOX"/>
  53. <ComboBoxItem Content="MAME"/>
  54. <ComboBoxItem Content="DOSBOXNEW"/>
  55. </ComboBox>
  56. <ComboBox x:Name="cbOPLSR" x:Uid="OPLSR" HorizontalAlignment="Stretch" Header="OPL 模拟器采样率" PlaceholderText="OPL 模拟器采样率">
  57. <ComboBoxItem Content="12429"/>
  58. <ComboBoxItem Content="24858"/>
  59. <ComboBoxItem Content="49716"/>
  60. </ComboBox>
  61. <ToggleSwitch x:Name="tsSurroundOPL" x:Uid="SurroundOPL" Header="环绕声 OPL" OffContent="否" OnContent="是" />
  62. <Grid VerticalAlignment="Top">
  63. <Button x:Name="btnReset" x:Uid="ButtonDefault" Content="默认设置" HorizontalAlignment="Left" Click="btnReset_Click" />
  64. <Button x:Name="btnFinish" x:Uid="ButtonFinish" Content="完成设置" HorizontalAlignment="Right" Click="btnFinish_Click" />
  65. </Grid>
  66. </StackPanel>
  67. </ScrollViewer>
  68. </Grid>
  69. </Page>