MainPage.xaml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="Auto"/>
  16. <ColumnDefinition/>
  17. </Grid.ColumnDefinitions>
  18. <TextBlock x:Uid="Title" Text="设置模式" FontSize="28" VerticalAlignment="Center" Grid.Column="0" />
  19. <TextBlock x:Name="tbGitRevision" VerticalAlignment="Bottom" Grid.Column="1" />
  20. </Grid>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition/>
  24. <ColumnDefinition Width="Auto"/>
  25. </Grid.ColumnDefinitions>
  26. <TextBox x:Name="tbGamePath" x:Uid="GamePath" Grid.Column="0" TextWrapping="Wrap" VerticalAlignment="Top" Header="游戏资源文件夹" IsReadOnly="True" PlaceholderText="未选择游戏资源文件夹"/>
  27. <Button x:Name="btnBrowseGame" x:Uid="ButtonBrowse" Grid.Column="1" Content="浏览" HorizontalAlignment="Left" VerticalAlignment="Bottom" Click="btnBrowseFolder_Click" />
  28. </Grid>
  29. <Grid>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition/>
  32. <ColumnDefinition/>
  33. <ColumnDefinition/>
  34. <ColumnDefinition Width="Auto"/>
  35. </Grid.ColumnDefinitions>
  36. <RadioButton x:Name="rbDownloadLink1" x:Uid="DownloadLink1" Grid.Column="0" GroupName="DownloadLink" Content="地址 1" Tag="http://pal5q.baiyou100.com/pal5/download/98xjrq.html" />
  37. <RadioButton x:Name="rbDownloadLink2" x:Uid="DownloadLink2" Grid.Column="1" GroupName="DownloadLink" Content="地址 2" Tag="http://pal5q.baiyou100.com/pal5/download/98xjrq.html" />
  38. <RadioButton x:Name="rbDownloadLink3" x:Uid="DownloadLink3" Grid.Column="2" GroupName="DownloadLink" Content="地址 3" Tag="http://pal5q.baiyou100.com/pal5/download/98xjrq.html" />
  39. <Button x:Name="btnDownloadGame" x:Uid="ButtonDownload" Grid.Column="3" Content="下载游戏" HorizontalAlignment="Center" VerticalAlignment="Center" Click="btnDownloadGame_Click" IsEnabled="False" />
  40. </Grid>
  41. <CheckBox x:Name="cbUseMsgFile" x:Uid="UseMessageFile" Content="自定义语言文件" Checked="cbUseFile_CheckChanged" Unchecked="cbUseFile_CheckChanged" />
  42. <Grid x:Name="gridMsgFile">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition/>
  45. <ColumnDefinition Width="Auto"/>
  46. </Grid.ColumnDefinitions>
  47. <TextBox x:Name="tbMsgFile" x:Uid="MessageFile" Grid.Column="0" TextWrapping="Wrap" VerticalAlignment="Top" PlaceholderText="无自定义语言文件" IsReadOnly="True"/>
  48. <Button x:Name="btnBrowseMsgFile" x:Uid="ButtonBrowse" Grid.Column="1" Content="浏览" HorizontalAlignment="Right" Click="btnBrowseFileOpen_Click" />
  49. </Grid>
  50. <CheckBox x:Name="cbUseFontFile" x:Uid="UseFontFile" Content="自定义字体文件" Checked="cbUseFile_CheckChanged" Unchecked="cbUseFile_CheckChanged" />
  51. <Grid x:Name="gridFontFile">
  52. <Grid.ColumnDefinitions>
  53. <ColumnDefinition/>
  54. <ColumnDefinition Width="Auto"/>
  55. </Grid.ColumnDefinitions>
  56. <TextBox x:Name="tbFontFile" x:Uid="FontFile" Grid.Column="0" TextWrapping="Wrap" VerticalAlignment="Top" PlaceholderText="无自定义字体文件" IsReadOnly="True"/>
  57. <Button x:Name="btnBrowseFontFile" x:Uid="ButtonBrowse" Grid.Column="1" Content="浏览" HorizontalAlignment="Right" Click="btnBrowseFileOpen_Click" />
  58. </Grid>
  59. <ToggleSwitch x:Name="tsTouchOverlay" x:Uid="TouchOverlay" Header="启用触屏辅助" OffContent="否" OnContent="是" />
  60. <ToggleSwitch x:Name="tsKeepAspect" x:Uid="AspectRatio" Header="保持纵横比" OffContent="否" OnContent="是" />
  61. <ToggleSwitch x:Name="tsEnableAVI" x:Uid="EnableAVI" Header="启用 AVI 过场动画" OffContent="否" OnContent="是" />
  62. <ToggleSwitch x:Name="tsStereo" x:Uid="Stereo" Header="立体声" OffContent="否" OnContent="是" />
  63. <Slider x:Name="slMusicVolume" x:Uid="MusicVolume" Header="音乐音量" TickPlacement="Inline" TickFrequency="10" />
  64. <Slider x:Name="slSoundVolume" x:Uid="SoundVolume" Header="音效音量" TickPlacement="Inline" TickFrequency="10" />
  65. <Slider x:Name="slQuality" x:Uid="Quality" Header="音频质量" Maximum="4" LargeChange="1" TickFrequency="1" />
  66. <ComboBox x:Name="cbSampleRate" x:Uid="Samplerate" HorizontalAlignment="Stretch" Header="音频输出采样率" PlaceholderText="选择音频输出采样率">
  67. <ComboBoxItem Content="11025"/>
  68. <ComboBoxItem Content="22050"/>
  69. <ComboBoxItem Content="44100"/>
  70. </ComboBox>
  71. <ComboBox x:Name="cbAudioBuffer" x:Uid="AudioBuffer" HorizontalAlignment="Stretch" Header="音频缓冲区大小" PlaceholderText="选择音频缓冲区大小">
  72. <ComboBoxItem Content="512"/>
  73. <ComboBoxItem Content="1024"/>
  74. <ComboBoxItem Content="2048"/>
  75. <ComboBoxItem Content="4096"/>
  76. <ComboBoxItem Content="8192"/>
  77. </ComboBox>
  78. <ComboBox x:Name="cbCD" x:Uid="CD" HorizontalAlignment="Stretch" Header="CD 音轨格式" PlaceholderText="选择 CD 音轨格式">
  79. <ComboBoxItem Content="MP3"/>
  80. <ComboBoxItem Content="OGG"/>
  81. </ComboBox>
  82. <ComboBox x:Name="cbBGM" x:Uid="BGM" HorizontalAlignment="Stretch" Header="背景音乐格式" PlaceholderText="选择背景音乐格式" SelectionChanged="cbBGM_SelectionChanged">
  83. <ComboBoxItem Content="MIDI"/>
  84. <ComboBoxItem Content="RIX"/>
  85. <ComboBoxItem Content="MP3"/>
  86. <ComboBoxItem Content="OGG"/>
  87. </ComboBox>
  88. <ComboBox x:Name="cbOPL" x:Uid="OPL" HorizontalAlignment="Stretch" Header="OPL 模拟器" PlaceholderText="选择 OPL 模拟器">
  89. <ComboBoxItem Content="DOSBOX"/>
  90. <ComboBoxItem Content="MAME"/>
  91. <ComboBoxItem Content="DOSBOXNEW"/>
  92. </ComboBox>
  93. <ComboBox x:Name="cbOPLSR" x:Uid="OPLSR" HorizontalAlignment="Stretch" Header="OPL 模拟器采样率" PlaceholderText="选择 OPL 模拟器采样率">
  94. <ComboBoxItem Content="12429"/>
  95. <ComboBoxItem Content="24858"/>
  96. <ComboBoxItem Content="49716"/>
  97. </ComboBox>
  98. <ToggleSwitch x:Name="tsSurroundOPL" x:Uid="SurroundOPL" Header="环绕声 OPL" OffContent="否" OnContent="是" />
  99. <ComboBox x:Name="cbLogLevel" x:Uid="LogLevel" HorizontalAlignment="Stretch" Header="日志记录级别" PlaceholderText="选择日志记录级别">
  100. <ComboBoxItem x:Uid="Verbose" Content="详细信息"/>
  101. <ComboBoxItem x:Uid="Debug" Content="调试信息"/>
  102. <ComboBoxItem x:Uid="Information" Content="运行信息"/>
  103. <ComboBoxItem x:Uid="Warning" Content="普通警告"/>
  104. <ComboBoxItem x:Uid="Error" Content="严重错误"/>
  105. <ComboBoxItem x:Uid="Fatal" Content="致命错误"/>
  106. </ComboBox>
  107. <CheckBox x:Name="cbUseLogFile" x:Uid="UseLogFile" Content="记录日志到文件" Checked="cbUseFile_CheckChanged" Unchecked="cbUseFile_CheckChanged" />
  108. <Grid x:Name="gridLogFile">
  109. <Grid.ColumnDefinitions>
  110. <ColumnDefinition/>
  111. <ColumnDefinition Width="Auto"/>
  112. </Grid.ColumnDefinitions>
  113. <TextBox x:Name="tbLogFile" x:Uid="LogFile" Grid.Column="0" TextWrapping="Wrap" VerticalAlignment="Top" PlaceholderText="无日志文件" IsReadOnly="True"/>
  114. <Button x:Name="btnBrowseLogFile" x:Uid="ButtonBrowse" Grid.Column="1" Content="浏览" HorizontalAlignment="Right" Click="btnBrowseFileSave_Click" />
  115. </Grid>
  116. <Grid VerticalAlignment="Top">
  117. <Grid.ColumnDefinitions>
  118. <ColumnDefinition />
  119. <ColumnDefinition />
  120. <ColumnDefinition />
  121. </Grid.ColumnDefinitions>
  122. <Button x:Name="btnDefault" x:Uid="ButtonDefault" Grid.Column="0" Content="默认设置" HorizontalAlignment="Left" Click="btnDefault_Click" />
  123. <Button x:Name="btnReset" x:Uid="ButtonReset" Grid.Column="1" Content="还原设置" HorizontalAlignment="Center" Click="btnReset_Click" />
  124. <Button x:Name="btnFinish" x:Uid="ButtonFinish" Grid.Column="2" Content="完成设置" HorizontalAlignment="Right" Click="btnFinish_Click" />
  125. </Grid>
  126. </StackPanel>
  127. </ScrollViewer>
  128. </Grid>
  129. </Page>