MainPage.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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">
  9. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  10. <ScrollViewer HorizontalScrollMode="Disabled">
  11. <StackPanel VerticalAlignment="Top" Margin="10,0,10,0">
  12. <TextBox x:Name="tbGamePath" x:Uid="GamePath" TextWrapping="Wrap" VerticalAlignment="Top" Header="游戏资源文件夹" IsReadOnly="True" PlaceholderText="游戏资源文件夹"/>
  13. <Grid VerticalAlignment="Top">
  14. <Button x:Name="btnDefaultGame" x:Uid="ButtonRestore" Content="默认文件夹" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnDefault_Click" />
  15. <Button x:Name="btnBrowseGame" x:Uid="ButtonBrowse" Content="浏览文件夹" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnBrowse_Click" />
  16. </Grid>
  17. <ToggleSwitch x:Name="tsIsDOS" x:Uid="DOS" Header="游戏资源版本" OffContent="WIN95" OnContent="DOS" Toggled="tsIsDOS_Toggled" />
  18. <ToggleSwitch x:Name="tsUseEmbedFont" x:Uid="EmbeddedFont" Header="游戏内嵌字体" OffContent="否" OnContent="是" />
  19. <ToggleSwitch x:Name="tsLanguage" x:Uid="Language" Header="游戏资源语言" OffContent="繁体中文" OnContent="简体中文" />
  20. <TextBox x:Name="tbMsgFile" x:Uid="MessageFile" Header="自定义语言文件名" TextWrapping="Wrap" VerticalAlignment="Top" PlaceholderText="自定义语言文件名"/>
  21. <ToggleSwitch x:Name="tsKeepAspect" x:Uid="AspectRatio" Header="保持纵横比" OffContent="否" OnContent="是" />
  22. <ToggleSwitch x:Name="tsStereo" x:Uid="Stereo" Header="立体声" OffContent="否" OnContent="是" />
  23. <Slider x:Name="slVolume" x:Uid="Volume" Header="音量" TickPlacement="Inline" TickFrequency="10" />
  24. <Slider x:Name="slQuality" x:Uid="Quality" Header="音频质量" Maximum="4" LargeChange="1" TickFrequency="1" />
  25. <ComboBox x:Name="cbSampleRate" x:Uid="Samplerate" Header="音频输出采样率" PlaceholderText="音频输出采样率">
  26. <ComboBoxItem Content="11025"/>
  27. <ComboBoxItem Content="22050"/>
  28. <ComboBoxItem Content="44100"/>
  29. </ComboBox>
  30. <ComboBox x:Name="cbAudioBuffer" x:Uid="AudioBuffer" Header="音频缓冲区大小" PlaceholderText="音频缓冲区大小">
  31. <ComboBoxItem Content="512"/>
  32. <ComboBoxItem Content="1024"/>
  33. <ComboBoxItem Content="2048"/>
  34. <ComboBoxItem Content="4096"/>
  35. </ComboBox>
  36. <ComboBox x:Name="cbCD" x:Uid="CD" Header="CD 音轨格式" PlaceholderText="CD 音轨格式">
  37. <ComboBoxItem Content="MP3"/>
  38. <ComboBoxItem Content="OGG"/>
  39. </ComboBox>
  40. <ComboBox x:Name="cbBGM" x:Uid="BGM" Header="背景音乐格式" PlaceholderText="背景音乐格式" SelectionChanged="cbBGM_SelectionChanged">
  41. <ComboBoxItem Content="RIX"/>
  42. <ComboBoxItem Content="MP3"/>
  43. <ComboBoxItem Content="OGG"/>
  44. </ComboBox>
  45. <ComboBox x:Name="cbOPL" x:Uid="OPL" Header="OPL 模拟器" PlaceholderText="OPL 模拟器">
  46. <ComboBoxItem Content="DOSBOX"/>
  47. <ComboBoxItem Content="MAME"/>
  48. </ComboBox>
  49. <ComboBox x:Name="cbOPLSR" x:Uid="OPLSR" Header="OPL 模拟器采样率" PlaceholderText="OPL 模拟器采样率">
  50. <ComboBoxItem Content="12429"/>
  51. <ComboBoxItem Content="24858"/>
  52. <ComboBoxItem Content="49716"/>
  53. </ComboBox>
  54. <ToggleSwitch x:Name="tsSurroundOPL" x:Uid="SurroundOPL" Header="环绕声 OPL" OffContent="否" OnContent="是" />
  55. <Grid VerticalAlignment="Top">
  56. <Button x:Name="btnReset" x:Uid="ButtonDefault" Content="默认设置" HorizontalAlignment="Left" Click="btnReset_Click" />
  57. <Button x:Name="btnFinish" x:Uid="ButtonFinish" Content="完成设置" HorizontalAlignment="Right" Click="btnFinish_Click" />
  58. </Grid>
  59. <Border HorizontalAlignment="Stretch" BorderBrush="LightGray" BorderThickness="2" />
  60. <Grid VerticalAlignment="Top">
  61. <TextBlock x:Uid="SaveSlot1" Text="进度一" HorizontalAlignment="Left" Margin="0,14" FontSize="24" />
  62. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  63. <Button x:Name="btnImport1" x:Uid="ButtonImport" Content="导入" Margin="0,0,10,0" Tag="1.rpg" Click="btnImport_Click" />
  64. <Button x:Name="btnExport1" x:Uid="ButtonExport" Content="导出" Margin="10,0,0,0" Tag="1.rpg" Click="btnExport_Click" />
  65. </StackPanel>
  66. </Grid>
  67. <Grid VerticalAlignment="Top">
  68. <TextBlock x:Uid="SaveSlot2" Text="进度二" HorizontalAlignment="Left" Margin="0,14" FontSize="24" />
  69. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  70. <Button x:Name="btnImport2" x:Uid="ButtonImport" Content="导入" Margin="0,0,10,0" Tag="2.rpg" Click="btnImport_Click" />
  71. <Button x:Name="btnExport2" x:Uid="ButtonExport" Content="导出" Margin="10,0,0,0" Tag="2.rpg" Click="btnExport_Click" />
  72. </StackPanel>
  73. </Grid>
  74. <Grid VerticalAlignment="Top">
  75. <TextBlock x:Uid="SaveSlot3" Text="进度三" HorizontalAlignment="Left" Margin="0,14" FontSize="24" />
  76. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  77. <Button x:Name="btnImport3" x:Uid="ButtonImport" Content="导入" Margin="0,0,10,0" Tag="3.rpg" Click="btnImport_Click" />
  78. <Button x:Name="btnExport3" x:Uid="ButtonExport" Content="导出" Margin="10,0,0,0" Tag="3.rpg" Click="btnExport_Click" />
  79. </StackPanel>
  80. </Grid>
  81. <Grid VerticalAlignment="Top">
  82. <TextBlock x:Uid="SaveSlot4" Text="进度四" HorizontalAlignment="Left" Margin="0,14" FontSize="24" />
  83. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  84. <Button x:Name="btnImport4" x:Uid="ButtonImport" Content="导入" Margin="0,0,10,0" Tag="4.rpg" Click="btnImport_Click" />
  85. <Button x:Name="btnExport4" x:Uid="ButtonExport" Content="导出" Margin="10,0,0,0" Tag="4.rpg" Click="btnExport_Click" />
  86. </StackPanel>
  87. </Grid>
  88. <Grid VerticalAlignment="Top">
  89. <TextBlock x:Uid="SaveSlot5" Text="进度五" HorizontalAlignment="Left" Margin="0,14" FontSize="24" />
  90. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  91. <Button x:Name="btnImport5" x:Uid="ButtonImport" Content="导入" Margin="0,0,10,0" Tag="5.rpg" Click="btnImport_Click" />
  92. <Button x:Name="btnExport5" x:Uid="ButtonExport" Content="导出" Margin="10,0,0,0" Tag="5.rpg" Click="btnExport_Click" />
  93. </StackPanel>
  94. </Grid>
  95. </StackPanel>
  96. </ScrollViewer>
  97. </Grid>
  98. </Page>