PageDownloadMod.xaml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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="PageDownloadMod"
  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="搜索 Mod" 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*" />
  15. <ColumnDefinition Width="70" />
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="0.9*" />
  18. <ColumnDefinition Width="1.6*" />
  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,25,0" />
  26. <local:MyTextBox x:Name="TextSearchName" Grid.Column="1" Grid.ColumnSpan="10" />
  27. <TextBlock VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Left" Text="类型" Margin="0,0,25,0" />
  28. <local:MyComboBox x:Name="ComboSearchTag" Grid.Column="1" Grid.Row="2" MaxDropDownHeight="320">
  29. <local:MyComboBoxItem Content="全部" Tag="" IsSelected="True" />
  30. <local:MyComboBoxItem Content="世界元素" Tag="406/worldgen" />
  31. <local:MyComboBoxItem Content="生物群系" Tag="407/" Margin="15,0,0,0" />
  32. <local:MyComboBoxItem Content="维度" Tag="410/" Margin="15,0,0,0" />
  33. <local:MyComboBoxItem Content="矿物与资源" Tag="408/" Margin="15,0,0,0" />
  34. <local:MyComboBoxItem Content="天然结构" Tag="409/" Margin="15,0,0,0" />
  35. <local:MyComboBoxItem Content="科技" Tag="412/technology" />
  36. <local:MyComboBoxItem Content="管道与物流" Tag="415/" Margin="15,0,0,0" />
  37. <local:MyComboBoxItem Content="自动化" Tag="4843/" Margin="15,0,0,0" />
  38. <local:MyComboBoxItem Content="能源" Tag="417/" Margin="15,0,0,0" />
  39. <local:MyComboBoxItem Content="红石" Tag="4558/" Margin="15,0,0,0" />
  40. <local:MyComboBoxItem Content="食物与烹饪" Tag="436/food" />
  41. <local:MyComboBoxItem Content="农业" Tag="416/" Margin="15,0,0,0" />
  42. <local:MyComboBoxItem Content="游戏机制" Tag="/game-mechanics" />
  43. <local:MyComboBoxItem Content="运输" Tag="414/transportation" />
  44. <local:MyComboBoxItem Content="仓储" Tag="420/storage" />
  45. <local:MyComboBoxItem Content="魔法" Tag="419/magic" />
  46. <local:MyComboBoxItem Content="冒险" Tag="422/adventure" />
  47. <local:MyComboBoxItem Content="装饰" Tag="424/decoration" />
  48. <local:MyComboBoxItem Content="生物" Tag="411/mobs" />
  49. <local:MyComboBoxItem Content="装备与工具" Tag="434/equipment" />
  50. <local:MyComboBoxItem Content="性能优化" Tag="/optimization" />
  51. <local:MyComboBoxItem Content="信息显示" Tag="423/" />
  52. <local:MyComboBoxItem Content="多人" Tag="435/social" />
  53. <local:MyComboBoxItem Content="改良" Tag="5191/utility" />
  54. <local:MyComboBoxItem Content="支持库" Tag="421/library" />
  55. </local:MyComboBox>
  56. <TextBlock VerticalAlignment="Center" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left" Text="版本" Margin="0,0,25,0" />
  57. <local:MyComboBox x:Name="TextSearchVersion" Grid.Row="2" Grid.Column="4" Grid.ColumnSpan="2" IsEditable="True" MaxDropDownHeight="320" HintText="全部 (也可自行输入)">
  58. <local:MyComboBoxItem Content="" IsSelected="True" />
  59. <local:MyComboBoxItem Content="1.19.3" />
  60. <local:MyComboBoxItem Content="1.19.2" />
  61. <local:MyComboBoxItem Content="1.19.1" />
  62. <local:MyComboBoxItem Content="1.19" />
  63. <local:MyComboBoxItem Content="1.18.2" />
  64. <local:MyComboBoxItem Content="1.17.1" />
  65. <local:MyComboBoxItem Content="1.16.5" />
  66. <local:MyComboBoxItem Content="1.15.2" />
  67. <local:MyComboBoxItem Content="1.14.4" />
  68. <local:MyComboBoxItem Content="1.13.2" />
  69. <local:MyComboBoxItem Content="1.12.2" />
  70. <local:MyComboBoxItem Content="1.11.2" />
  71. <local:MyComboBoxItem Content="1.10.2" />
  72. <local:MyComboBoxItem Content="1.9.4" />
  73. <local:MyComboBoxItem Content="1.8.9" />
  74. <local:MyComboBoxItem Content="1.7.10" />
  75. <local:MyComboBoxItem Content="1.7.2" />
  76. <local:MyComboBoxItem Content="1.6.4" />
  77. <local:MyComboBoxItem Content="1.5.2" />
  78. </local:MyComboBox>
  79. <local:MyComboBox x:Name="ComboSearchLoader" Visibility="Collapsed" Grid.Row="2" Grid.Column="5" MaxDropDownHeight="320" Margin="10,0,0,0">
  80. <local:MyComboBoxItem Content="任意 Mod 加载器" IsSelected="True" Tag="0" />
  81. <local:MyComboBoxItem Content="Forge" Tag="1" />
  82. <local:MyComboBoxItem Content="Fabric" Tag="4" />
  83. <local:MyComboBoxItem Content="Quilt" Tag="5" />
  84. </local:MyComboBox>
  85. </Grid>
  86. <Grid Margin="0,4,0,6" Height="35">
  87. <Grid.ColumnDefinitions>
  88. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  89. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  90. </Grid.ColumnDefinitions>
  91. <local:MyButton x:Name="BtnSearchRun" Text="搜索" MinWidth="140" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight" />
  92. <local:MyButton x:Name="BtnSearchReset" Text="重置条件" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="1" />
  93. </Grid>
  94. </StackPanel>
  95. </local:MyCard>
  96. <StackPanel x:Name="PanContent">
  97. <local:MyCard x:Name="CardProjects" UseAnimation="False">
  98. <StackPanel x:Name="PanProjects" Margin="12" />
  99. </local:MyCard>
  100. <local:MyCard Margin="0,15,0,0" x:Name="CardPages" HorizontalAlignment="Center">
  101. <StackPanel Orientation="Horizontal" Height="23" Margin="10,7">
  102. <local:MyIconButton x:Name="BtnPageLeft" IsEnabled="False" Opacity="0.5"
  103. Logo="M671.968176 911.99957c-12.287381 0-24.576482-4.67206-33.951566-14.047144L286.048434 545.984249c-18.751888-18.719204-18.751888-49.12028 0-67.872168L638.016611 126.111222c18.751888-18.751888 49.12028-18.751888 67.872168 0 18.751888 18.719204 18.751888 49.12028 0 67.872168l-318.016611 318.047574L705.888778 830.047574c18.751888 18.751888 18.751888 49.12028 0 67.872168C696.544658 907.32751 684.255557 911.99957 671.968176 911.99957z" />
  104. <TextBlock x:Name="LabPage" Text="1"
  105. Margin="7,0" FontSize="15" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush3}" />
  106. <local:MyIconButton x:Name="BtnPageRight"
  107. Logo="M761.055557 532.128047c0.512619-0.992555 1.343475-1.823411 1.792447-2.848649 8.800538-18.304636 5.919204-40.703346-9.664077-55.424808L399.935923 139.743798c-19.264507-18.208305-49.631179-17.344765-67.872168 1.888778-18.208305 19.264507-17.375729 49.631179 1.888778 67.872168l316.960409 299.839269L335.199677 813.631716c-19.071845 18.399247-19.648112 48.767639-1.247144 67.872168 9.407768 9.791372 21.984142 14.688778 34.560516 14.688778 12.000108 0 24.000215-4.479398 33.311652-13.439914l350.048434-337.375729c0.672598-0.672598 0.927187-1.599785 1.599785-2.303346 0.512619-0.479935 1.056202-0.832576 1.567101-1.343475C757.759656 538.879828 759.199462 535.391265 761.055557 532.128047z" />
  108. </StackPanel>
  109. </local:MyCard>
  110. </StackPanel>
  111. <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" x:Name="PanLoad" UseAnimation="False" Margin="40,50">
  112. <local:MyLoading Text="正在获取 Mod 列表" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center" VerticalAlignment="Center" />
  113. </local:MyCard>
  114. </StackPanel>
  115. </local:MyScrollViewer>
  116. </local:MyPageRight>