PageDownloadPack.xaml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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="PageDownloadPack"
  6. d:DesignWidth="778.571" d:DesignHeight="90.857">
  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="2.5*" />
  15. <ColumnDefinition Width="50" />
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="1*" />
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="28" />
  21. <RowDefinition Height="9" />
  22. <RowDefinition Height="28" />
  23. </Grid.RowDefinitions>
  24. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="名称" Margin="0,0,18,0" />
  25. <local:MyTextBox x:Name="TextSearchName" Grid.Column="1" />
  26. <TextBlock VerticalAlignment="Center" Grid.Column="3" HorizontalAlignment="Left" Text="来源" Margin="0,0,18,0" />
  27. <local:MyComboBox x:Name="ComboSearchSource" Grid.Column="4">
  28. <local:MyComboBoxItem Content="全部" Tag="3" IsSelected="True" />
  29. <local:MyComboBoxItem Content="CurseForge" Tag="1" />
  30. <local:MyComboBoxItem Content="Modrinth" Tag="2" />
  31. </local:MyComboBox>
  32. <TextBlock VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Left" Text="版本" Margin="0,0,18,0" />
  33. <local:MyComboBox x:Name="TextSearchVersion" Grid.Row="2" Grid.Column="1" IsEditable="True" MaxDropDownHeight="320">
  34. <local:MyComboBoxItem Content="全部 (也可自行输入)" IsSelected="True" />
  35. <local:MyComboBoxItem Content="1.20.1" />
  36. <local:MyComboBoxItem Content="1.20" />
  37. <local:MyComboBoxItem Content="1.19.4" />
  38. <local:MyComboBoxItem Content="1.18.2" />
  39. <local:MyComboBoxItem Content="1.17.1" />
  40. <local:MyComboBoxItem Content="1.16.5" />
  41. <local:MyComboBoxItem Content="1.15.2" />
  42. <local:MyComboBoxItem Content="1.14.4" />
  43. <local:MyComboBoxItem Content="1.13.2" />
  44. <local:MyComboBoxItem Content="1.12.2" />
  45. <local:MyComboBoxItem Content="1.11.2" />
  46. <local:MyComboBoxItem Content="1.10.2" />
  47. <local:MyComboBoxItem Content="1.9.4" />
  48. <local:MyComboBoxItem Content="1.8.9" />
  49. <local:MyComboBoxItem Content="1.7.10" />
  50. </local:MyComboBox>
  51. <TextBlock VerticalAlignment="Center" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left" Text="类型" Margin="0,0,18,0" />
  52. <local:MyComboBox x:Name="ComboSearchTag" Grid.Column="4" Grid.Row="2" MaxDropDownHeight="320">
  53. <local:MyComboBoxItem Tag="" Content="全部" IsSelected="True" />
  54. <local:MyComboBoxItem Tag="4484/" Content="多人" />
  55. <local:MyComboBoxItem Tag="/optimization" Content="性能优化" />
  56. <local:MyComboBoxItem Tag="4479/challenging" Content="硬核" />
  57. <local:MyComboBoxItem Tag="4483/combat" Content="战斗" />
  58. <local:MyComboBoxItem Tag="4478/quests" Content="任务" />
  59. <local:MyComboBoxItem Tag="4472/technology" Content="科技" />
  60. <local:MyComboBoxItem Tag="4473/magic" Content="魔法" />
  61. <local:MyComboBoxItem Tag="4475/adventure" Content="冒险" />
  62. <local:MyComboBoxItem Tag="/kitchen-sink" Content="烹饪" />
  63. <local:MyComboBoxItem Tag="4476/" Content="探索" />
  64. <local:MyComboBoxItem Tag="4477/" Content="小游戏" />
  65. <local:MyComboBoxItem Tag="4471/" Content="科幻" />
  66. <local:MyComboBoxItem Tag="4736/" Content="空岛" />
  67. <local:MyComboBoxItem Tag="5128/" Content="原版改良" />
  68. <local:MyComboBoxItem Tag="4487/" Content="FTB"
  69. ToolTip="由 FTB 官方发布" ToolTipService.HorizontalOffset="70" />
  70. <local:MyComboBoxItem Tag="4480/" Content="基于地图" />
  71. <local:MyComboBoxItem Tag="4481/lightweight" Content="轻量整合" />
  72. <local:MyComboBoxItem Tag="4482/" Content="大型整合" />
  73. </local:MyComboBox>
  74. </Grid>
  75. <Grid Margin="0,4,0,6" Height="35">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  78. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  79. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  80. </Grid.ColumnDefinitions>
  81. <local:MyButton x:Name="BtnSearchRun" Text="搜索" MinWidth="140" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight" />
  82. <local:MyButton x:Name="BtnSearchReset" Text="重置条件" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="1" />
  83. <local:MyButton x:Name="BtnSearchInstall" Text="安装已有整合包" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="2"
  84. ToolTip="在当前选择的 Minecraft 文件夹下安装整合包" ToolTipService.HorizontalOffset="-55" ToolTipService.VerticalOffset="5" />
  85. </Grid>
  86. </StackPanel>
  87. </local:MyCard>
  88. <StackPanel x:Name="PanContent">
  89. <local:MyCard x:Name="CardProjects" UseAnimation="False">
  90. <StackPanel x:Name="PanProjects" Margin="12" />
  91. </local:MyCard>
  92. <local:MyCard Margin="0,15,0,0" x:Name="CardPages" HorizontalAlignment="Center">
  93. <StackPanel Orientation="Horizontal" Height="23" Margin="10,7">
  94. <local:MyIconButton x:Name="BtnPageFirst" IsEnabled="False" Opacity="0.2" Margin="0,0.5,5,0.5"
  95. 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" />
  96. <local:MyIconButton x:Name="BtnPageLeft" IsEnabled="False" Opacity="0.2" Margin="0,0,5,0"
  97. 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" />
  98. <TextBlock x:Name="LabPage" Text="1"
  99. Margin="8,0,13,0" FontSize="15" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush3}" />
  100. <local:MyIconButton x:Name="BtnPageRight" Margin="0,0,30,0"
  101. 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" />
  102. </StackPanel>
  103. </local:MyCard>
  104. </StackPanel>
  105. <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" x:Name="PanLoad" UseAnimation="False" Margin="40,50">
  106. <local:MyLoading Text="正在获取整合包列表" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center" VerticalAlignment="Center" />
  107. </local:MyCard>
  108. </StackPanel>
  109. </local:MyScrollViewer>
  110. </local:MyPageRight>