PageDownloadResourcePack.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <local:MyPageRight
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:PCL" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" x:Class="PageDownloadResourcePack"
  6. PanScroll="{Binding ElementName=PanBack}">
  7. <local:MyScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" x:Name="PanBack">
  8. <StackPanel Orientation="Vertical" Margin="25">
  9. <local:MyCard Title="搜索资源包" Margin="0,0,0,15" x:Name="PanAlways">
  10. <StackPanel Margin="25,40,25,15">
  11. <Grid Margin="0,0,0,11" HorizontalAlignment="Stretch">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="Auto" />
  14. <ColumnDefinition Width="1.3*" />
  15. <ColumnDefinition Width="1.2*" />
  16. <ColumnDefinition Width="50" />
  17. <ColumnDefinition Width="Auto" />
  18. <ColumnDefinition Width="1*" />
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="28" />
  22. <RowDefinition Height="9" />
  23. <RowDefinition Height="28" />
  24. </Grid.RowDefinitions>
  25. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="名称" Margin="0,0,18,0" />
  26. <local:MyTextBox x:Name="TextSearchName" Grid.Column="1" Grid.ColumnSpan="2" />
  27. <TextBlock VerticalAlignment="Center" Grid.Column="4" HorizontalAlignment="Left" Text="来源" Margin="0,0,18,0" />
  28. <local:MyComboBox x:Name="ComboSearchSource" Grid.Column="5">
  29. <local:MyComboBoxItem Content="全部" Tag="3" IsSelected="True" />
  30. <local:MyComboBoxItem Content="CurseForge" Tag="1" />
  31. <local:MyComboBoxItem Content="Modrinth" Tag="2" />
  32. </local:MyComboBox>
  33. <TextBlock VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Left" Text="版本" Margin="0,0,18,0" />
  34. <local:MyComboBox x:Name="TextSearchVersion" Grid.Row="2" Grid.Column="1" IsEditable="True" MaxDropDownHeight="320">
  35. <local:MyComboBoxItem Content="全部 (也可自行输入)" IsSelected="True" />
  36. <local:MyComboBoxItem Content="1.20.6" />
  37. <local:MyComboBoxItem Content="1.20.4" />
  38. <local:MyComboBoxItem Content="1.20.1" />
  39. <local:MyComboBoxItem Content="1.19.4" />
  40. <local:MyComboBoxItem Content="1.19.2" />
  41. <local:MyComboBoxItem Content="1.18.2" />
  42. <local:MyComboBoxItem Content="1.17.1" />
  43. <local:MyComboBoxItem Content="1.16.5" />
  44. <local:MyComboBoxItem Content="1.15.2" />
  45. <local:MyComboBoxItem Content="1.14.4" />
  46. <local:MyComboBoxItem Content="1.12.2" />
  47. <local:MyComboBoxItem Content="1.11.2" />
  48. <local:MyComboBoxItem Content="1.10.2" />
  49. <local:MyComboBoxItem Content="1.8.9" />
  50. <local:MyComboBoxItem Content="1.7.10" />
  51. </local:MyComboBox>
  52. <TextBlock VerticalAlignment="Center" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Left" Text="类型" Margin="0,0,18,0" />
  53. <local:MyComboBox x:Name="ComboSearchTag" Grid.Column="5" Grid.Row="2" MaxDropDownHeight="320">
  54. <local:MyComboBoxItem Content="全部" Tag="" IsSelected="True" />
  55. <local:MyComboBoxItem Content="字体包" Tag="5244/" />
  56. <local:MyComboBoxItem Content="数据包" Tag="5193/" />
  57. <local:MyComboBoxItem Content="蒸汽朋克" Tag="399/" />
  58. <local:MyComboBoxItem Content="128x" Tag="396/" />
  59. <local:MyComboBoxItem Content="512x 或更高" Tag="398/" />
  60. <local:MyComboBoxItem Content="256x" Tag="397/" />
  61. <local:MyComboBoxItem Content="其他" Tag="405/" />
  62. <local:MyComboBoxItem Content="64x" Tag="395/" />
  63. <local:MyComboBoxItem Content="仿真" Tag="400/" />
  64. <local:MyComboBoxItem Content="16x" Tag="393/" />
  65. <local:MyComboBoxItem Content="传统" Tag="403/" />
  66. <local:MyComboBoxItem Content="32x" Tag="394/" />
  67. <local:MyComboBoxItem Content="动态效果" Tag="404/" />
  68. <local:MyComboBoxItem Content="模组支持" Tag="4465/" />
  69. <local:MyComboBoxItem Content="中世纪" Tag="402/" />
  70. <local:MyComboBoxItem Content="现代" Tag="401/" />
  71. <local:MyComboBoxItem Content="8x-" Tag="/8x-" />
  72. <local:MyComboBoxItem Content="16x" Tag="/16x" />
  73. <local:MyComboBoxItem Content="32x" Tag="/32x" />
  74. <local:MyComboBoxItem Content="48x" Tag="/48x" />
  75. <local:MyComboBoxItem Content="64x" Tag="/64x" />
  76. <local:MyComboBoxItem Content="128x" Tag="/128x" />
  77. <local:MyComboBoxItem Content="256x" Tag="/256x" />
  78. <local:MyComboBoxItem Content="512x+" Tag="/512x+" />
  79. <local:MyComboBoxItem Content="声音" Tag="/audio" />
  80. <local:MyComboBoxItem Content="方块" Tag="/blocks" />
  81. <local:MyComboBoxItem Content="战斗" Tag="/combat" />
  82. <local:MyComboBoxItem Content="核心着色器" Tag="/core-shaders" />
  83. <local:MyComboBoxItem Content="Cursed" Tag="/cursed" />
  84. <local:MyComboBoxItem Content="装饰" Tag="/decoration" />
  85. <local:MyComboBoxItem Content="实体" Tag="/entities" />
  86. <local:MyComboBoxItem Content="环境" Tag="/environment" />
  87. <local:MyComboBoxItem Content="装备" Tag="/equipment" />
  88. <local:MyComboBoxItem Content="字体" Tag="/fonts" />
  89. <local:MyComboBoxItem Content="GUI" Tag="/gui" />
  90. <local:MyComboBoxItem Content="物品" Tag="/items" />
  91. <local:MyComboBoxItem Content="本地化" Tag="/locale" />
  92. <local:MyComboBoxItem Content="Modded" Tag="/modded" />
  93. <local:MyComboBoxItem Content="模型" Tag="/models" />
  94. <local:MyComboBoxItem Content="写实" Tag="/realistic" />
  95. <local:MyComboBoxItem Content="扁平" Tag="/simplistic" />
  96. <local:MyComboBoxItem Content="主题" Tag="/themed" />
  97. <local:MyComboBoxItem Content="优化" Tag="/tweaks" />
  98. <local:MyComboBoxItem Content="实用" Tag="/utility" />
  99. <local:MyComboBoxItem Content="类原生" Tag="/vanilla-like" />
  100. </local:MyComboBox>
  101. </Grid>
  102. <Grid Margin="0,4,0,6" Height="35">
  103. <Grid.ColumnDefinitions>
  104. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  105. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  106. </Grid.ColumnDefinitions>
  107. <local:MyButton x:Name="BtnSearchRun" Text="搜索" MinWidth="140" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight" />
  108. <local:MyButton x:Name="BtnSearchReset" Text="重置条件" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="1" />
  109. </Grid>
  110. </StackPanel>
  111. </local:MyCard>
  112. <StackPanel x:Name="PanContent">
  113. <local:MyHint x:Name="HintError" Text="无法连接到 Modrinth,所以目前仅显示了来自 CurseForge 的内容,结果可能不全。&#xa;请尝试使用 VPN 或加速器以改善网络。" IsWarn="True" Margin="0,0,0,15" />
  114. <local:MyCard x:Name="CardProjects" UseAnimation="False">
  115. <StackPanel x:Name="PanProjects" Margin="12" />
  116. </local:MyCard>
  117. <local:MyCard Margin="0,15,0,0" x:Name="CardPages" HorizontalAlignment="Center">
  118. <StackPanel Orientation="Horizontal" Height="23" Margin="10,7">
  119. <local:MyIconButton x:Name="BtnPageFirst" IsEnabled="False" Opacity="0.2" Margin="0,0.5,5,0.5"
  120. Logo="M496.213333 329.856L315.306667 510.848l180.992 181.077333a42.666667 42.666667 0 1 1-60.330667 60.330667l-211.2-211.2a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.373333-27.648l211.2-211.2a42.666667 42.666667 0 0 1 60.373334 60.330667z m298.666667 0l-180.949333 180.992 180.992 181.077333a42.666667 42.666667 0 1 1-60.330667 60.330667l-211.2-211.2a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.373333-27.648l211.2-211.2a42.666667 42.666667 0 0 1 60.373334 60.330667z" />
  121. <local:MyIconButton x:Name="BtnPageLeft" IsEnabled="False" Opacity="0.2" Margin="0,0,5,0"
  122. Logo="M650.752 278.357333l-241.322667 241.365334 241.322667 241.365333a42.666667 42.666667 0 1 1-60.330667 60.330667l-271.530666-271.530667a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.416-27.648l271.530666-271.530666a42.666667 42.666667 0 0 1 60.330667 60.330666z" />
  123. <TextBlock x:Name="LabPage" Text="1"
  124. Margin="8,0,13,0" FontSize="15" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush3}" />
  125. <local:MyIconButton x:Name="BtnPageRight" Margin="0,0,30,0"
  126. Logo="M404.309333 278.357333l241.322667 241.365334-241.322667 241.365333a42.666667 42.666667 0 1 0 60.330667 60.330667l271.530667-271.530667a42.453333 42.453333 0 0 0 11.818666-22.613333l0.597334-5.034667v-5.034667a42.496 42.496 0 0 0-12.416-27.648L464.64 218.026667a42.666667 42.666667 0 0 0-60.330667 60.330666z" />
  127. </StackPanel>
  128. </local:MyCard>
  129. </StackPanel>
  130. <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" x:Name="PanLoad" UseAnimation="False" Margin="40,50">
  131. <local:MyLoading Text="正在获取资源包列表" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center" VerticalAlignment="Center" />
  132. </local:MyCard>
  133. </StackPanel>
  134. </local:MyScrollViewer>
  135. </local:MyPageRight>