April_Fools_2023.xaml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <StackPanel Margin="0,-10,0,0"
  2. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:PCL;assembly=Plain Craft Launcher 2">
  5. <!--Animations Starts-->
  6. <StackPanel.Triggers>
  7. </StackPanel.Triggers>
  8. <StackPanel.Resources>
  9. <!--Styles Starts-->
  10. <Style TargetType="FlowDocumentScrollViewer" >
  11. <Setter Property="IsSelectionEnabled" Value="False"/>
  12. <Setter Property="VerticalScrollBarVisibility" Value="Hidden"/>
  13. <Setter Property="Margin" Value="0"/>
  14. </Style><Style TargetType="FlowDocument" >
  15. <Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
  16. <Setter Property="FontSize" Value="14"/>
  17. <Setter Property="TextAlignment" Value="Left"/>
  18. </Style><Style TargetType="StackPanel" x:Key="ContentStack" >
  19. <Setter Property="Margin" Value="20,40,20,20"/>
  20. </Style><Style TargetType="local:MyCard" x:Key="Card" >
  21. <Setter Property="Margin" Value="0,5"/>
  22. </Style><Style TargetType="TextBox" x:Key="InlineCode">
  23. <Setter Property="FontSize" Value="14" />
  24. <Setter Property="IsReadOnly" Value="True" />
  25. <Setter Property="Margin" Value="2,0,2,-4" />
  26. <Setter Property="FontFamily" Value="Consolas"/>
  27. <Setter Property="Height" Value="18"/>
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="TextBox">
  31. <Border Background="{DynamicResource ColorBrush6}" Opacity="0.9"
  32. BorderBrush="{DynamicResource ColorBrush4}" BorderThickness="0"
  33. CornerRadius="5" Padding="4,0.2">
  34. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  35. HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
  36. </Border>
  37. <ControlTemplate.Triggers>
  38. </ControlTemplate.Triggers>
  39. </ControlTemplate>
  40. </Setter.Value>
  41. </Setter>
  42. </Style><Style TargetType="Section" x:Key="Quote" >
  43. <Setter Property="BorderThickness" Value="5,0,0,0"/>
  44. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush4}"/>
  45. <Setter Property="Padding" Value="10,5"/>
  46. <Setter Property="Margin" Value="0,5"/>
  47. </Style><Style TargetType="Section" x:Key="cautionQuote" BasedOn="{StaticResource Quote}">
  48. <Setter Property="BorderBrush" Value="#CC4455"/>
  49. <Setter Property="Background" Value="#33CC4455"/>
  50. </Style><Style TargetType="Section" x:Key="noteQuote" BasedOn="{StaticResource Quote}">
  51. <Setter Property="BorderBrush" Value="#4455AA"/>
  52. <Setter Property="Background" Value="#334455AA"/>
  53. </Style><Style TargetType="Section" x:Key="tipQuote" BasedOn="{StaticResource Quote}">
  54. <Setter Property="BorderBrush" Value="#44AA55"/>
  55. <Setter Property="Background" Value="#3344AA55"/>
  56. </Style><Style TargetType="Section" x:Key="importantQuote" BasedOn="{StaticResource Quote}">
  57. <Setter Property="BorderBrush" Value="#AA55BB"/>
  58. <Setter Property="Background" Value="#33AA55BB"/>
  59. </Style><Style TargetType="Section" x:Key="warningQuote" BasedOn="{StaticResource Quote}">
  60. <Setter Property="BorderBrush" Value="#DDBB44"/>
  61. <Setter Property="Background" Value="#33DDBB44"/>
  62. </Style><Style TargetType="Image" x:Key="InnerImage" >
  63. <Setter Property="MaxHeight" Value="500"/>
  64. <Setter Property="HorizontalAlignment" Value="Center"/>
  65. </Style><Style TargetType="TextBlock" >
  66. <Setter Property="TextWrapping" Value="Wrap"/>
  67. <Setter Property="HorizontalAlignment" Value="Left"/>
  68. <Setter Property="FontSize" Value="14"/>
  69. <Setter Property="Foreground" Value="Black"/>
  70. </Style><Style TargetType="Paragraph" >
  71. <Setter Property="LineHeight" Value="12"/>
  72. <Setter Property="TextIndent" Value="0"/>
  73. <Setter Property="Margin" Value="0,8"/>
  74. </Style><Style TargetType="Paragraph" x:Key="Lp" >
  75. <Setter Property="LineHeight" Value="16"/>
  76. <Setter Property="TextIndent" Value="0"/>
  77. </Style><Style TargetType="List" >
  78. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/>
  79. <Setter Property="Margin" Value="20,6,0,6"/>
  80. <Setter Property="MarkerStyle" Value="1"/>
  81. <Setter Property="Padding" Value="0"/>
  82. </Style><Style TargetType="ListItem" >
  83. <Setter Property="Foreground" Value="Black"/>
  84. <Setter Property="Margin" Value="0,4"/>
  85. </Style><Style TargetType="Section" x:Key="Hr" >
  86. <Setter Property="Margin" Value="0,4,0,0"/>
  87. <Setter Property="BorderThickness" Value="0,1.5,0,0"/>
  88. <Setter Property="BorderBrush" Value="{StaticResource ColorBrush4}"/>
  89. <Setter Property="FontSize" Value="4"/>
  90. </Style><Style TargetType="Paragraph" x:Key="H1" >
  91. <Setter Property="FontSize" Value="24"/>
  92. <Setter Property="Margin" Value="0,10,0,10"/>
  93. <Setter Property="FontWeight" Value="Bold"/>
  94. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/>
  95. </Style><Style TargetType="Paragraph" x:Key="H2" >
  96. <Setter Property="FontSize" Value="22"/>
  97. <Setter Property="Margin" Value="0,10,0,5"/>
  98. <Setter Property="FontWeight" Value="Bold"/>
  99. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/>
  100. </Style><Style TargetType="Paragraph" x:Key="H3" >
  101. <Setter Property="FontSize" Value="18"/>
  102. <Setter Property="Margin" Value="0,10,0,3"/>
  103. <Setter Property="FontWeight" Value="Bold"/>
  104. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}"/>
  105. </Style><Style TargetType="Paragraph" x:Key="H4" >
  106. <Setter Property="FontSize" Value="16"/>
  107. <Setter Property="Margin" Value="0,10,0,1"/>
  108. <Setter Property="FontWeight" Value="Bold"/>
  109. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}"/>
  110. </Style><Style TargetType="Paragraph" x:Key="H5" >
  111. <Setter Property="FontSize" Value="14"/>
  112. <Setter Property="Margin" Value="0,8,0,1"/>
  113. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}"/>
  114. </Style><Style x:Key="imgTitle" TargetType="TextBlock">
  115. <Setter Property="FontSize" Value="14" />
  116. <Setter Property="Foreground" Value="#FF777777" />
  117. <Setter Property="HorizontalAlignment" Value="Center" />
  118. <Setter Property="Margin" Value="0,0,0,15" />
  119. </Style><Style TargetType="Image" x:Key="VersionImage" >
  120. <Setter Property="Stretch" Value="UniformToFill"/>
  121. <Setter Property="VerticalAlignment" Value="Center"/>
  122. </Style>
  123. <ControlTemplate TargetType="ContentControl" x:Key="InnerShadow">
  124. <Grid Opacity="0.95" Margin="4">
  125. <Border x:Name="InnerShadowMask" CornerRadius="8" Background="White"/>
  126. <ContentPresenter/>
  127. <Border Margin="-8.1" CornerRadius="8" BorderThickness="8" BorderBrush="black">
  128. <Border.Effect>
  129. <DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Black"/>
  130. </Border.Effect>
  131. </Border>
  132. <Grid.OpacityMask>
  133. <VisualBrush Stretch="None" Visual="{Binding ElementName=InnerShadowMask}"/>
  134. </Grid.OpacityMask>
  135. </Grid>
  136. </ControlTemplate><sys:String x:Key="DownloadIcon">
  137. M802 664v146c0 7.7-6.3 14-14 14H236c-7.7
  138. 0-14-6.3-14-14V664c0-5.5-4.5-10-10-10h-50c-5.5
  139. 0-10 4.5-10 10v170c0 33.1 26.9 60 60 60h600c33.1
  140. 0 60-26.9 60-60V664c0-5.5-4.5-10-10-10h-50c-5.5
  141. 0-10 4.5-10 10z M547 163v449.5l173.6-173.6c13.7-13.7
  142. 35.8-13.7 49.5 0 13.7 13.7 13.7 35.8 0 49.5L536.8
  143. 721.7c-0.4 0.4-0.8 0.8-1.3 1.2-0.2 0.2-0.4 0.4-0.6
  144. 0.5-0.2 0.2-0.4 0.4-0.7 0.6-0.3 0.2-0.5 0.4-0.8 0.6-0.2
  145. 0.1-0.4 0.3-0.5 0.4l-0.9 0.6c-0.2 0.1-0.3 0.2-0.5 0.3-0.3
  146. 0.2-0.6 0.4-1 0.6-0.2 0.1-0.3 0.2-0.5 0.3-0.3 0.2-0.6
  147. 0.4-1 0.5-0.2 0.1-0.4 0.2-0.5 0.3-0.3 0.2-0.6 0.3-0.9
  148. 0.5l-0.6 0.3c-0.3 0.1-0.6 0.3-0.8 0.4-0.2 0.1-0.5 0.2-0.7
  149. 0.3-0.3 0.1-0.5 0.2-0.8 0.3l-0.9 0.3c-0.2 0.1-0.4 0.2-0.7
  150. 0.2-0.3 0.1-0.6 0.2-1 0.3-0.2 0.1-0.4 0.1-0.6 0.2-0.4 0.1-0.7
  151. 0.2-1.1 0.3-0.2 0-0.4 0.1-0.6 0.1-0.4 0.1-0.7 0.2-1.1 0.2-0.2
  152. 0-0.4 0.1-0.6 0.1-0.4 0.1-0.7 0.1-1.1 0.2-0.2 0-0.4 0.1-0.7
  153. 0.1-0.3 0-0.7 0.1-1 0.1-0.3 0-0.6 0-0.9 0.1-0.3 0-0.5 0-0.8
  154. 0.1-1.2 0.1-2.3 0.1-3.5 0-0.3 0-0.5 0-0.8-0.1-0.3 0-0.6
  155. 0-0.9-0.1-0.3 0-0.7-0.1-1-0.1-0.2 0-0.4-0.1-0.7-0.1-0.4-0.1-0.7-0.1-1.1-0.2-0.2
  156. 0-0.4-0.1-0.6-0.1-0.4-0.1-0.7-0.2-1.1-0.2-0.2
  157. 0-0.4-0.1-0.6-0.1-0.4-0.1-0.7-0.2-1.1-0.3-0.2-0.1-0.4-0.1-0.6-0.2-0.3-0.1-0.6-0.2-1-0.3-0.2-0.1-0.5-0.1-0.7-0.2l-0.9-0.3c-0.3-0.1-0.5-0.2-0.8-0.3-0.2-0.1-0.5-0.2-0.7-0.3-0.3-0.1-0.6-0.3-0.8-0.4l-0.6-0.3c-0.3-0.2-0.6-0.3-0.9-0.5-0.2-0.1-0.4-0.2-0.5-0.3-0.3-0.2-0.6-0.4-1-0.6-0.2-0.1-0.3-0.2-0.5-0.3-0.3-0.2-0.6-0.4-1-0.6-0.2-0.1-0.3-0.2-0.5-0.3-0.3-0.2-0.6-0.4-0.9-0.7-0.2-0.1-0.3-0.3-0.5-0.4-0.3-0.2-0.5-0.4-0.8-0.6-0.2-0.2-0.4-0.4-0.7-0.6-0.2-0.2-0.4-0.4-0.6-0.5l-1.2-1.2-233.1-233.1c-13.7-13.7-13.7-35.8 0-49.5 13.7-13.7
  158. 35.8-13.7 49.5 0L477 612.5V163c0-19.3 15.7-35 35-35s35 15.7 35 35z</sys:String>
  159. <sys:String x:Key="LaunchIcon">
  160. M512 97C282.8 97 97 282.8 97 512s185.8 415 415 415 415-185.8
  161. 415-415S741.2 97 512 97z m-1 759c-190.5 0-345-154.5-345-345s154.5-345
  162. 345-345 345 154.5 345 345-154.5 345-345 345z M442.1 408.2L621.9 512
  163. 442.1 615.8V408.2m-59.9-113.9c-5.2 0-10 4.2-10 10v415.4c0 5.8 4.8 10
  164. 10 10 1.7 0 3.4-0.4 5-1.4l359.7-207.7c6.7-3.8 6.7-13.5 0-17.3L387.1
  165. 295.7c-1.6-1-3.3-1.4-4.9-1.4z</sys:String>
  166. <sys:String x:Key="CloudIcon">
  167. M480 224c43 0 84.7 11.6 120.6 33.5 34.6 21.1 62.5 50.9 80.6 86 10.4
  168. 20.1 30.6 33.3 53.2 34.6C796 381.6 853 407 895.2 449.7c41.7 42.1 64.6
  169. 97.2 64.6 155 0 30.8-5.9 60.6-17.7 88.7-11.3 27.1-27.5 51.4-48.2 72.3-42.3
  170. 42.8-98.4 66.3-158 66.3h-478c-53.3-3.1-102.6-24-139-58.8-35.3-33.6-54.7-77.2-54.7-122.5
  171. 0-38.5 13.7-75.3 39.7-106.4 12.9-15.5 28.5-29.1 46.3-40.3 18.3-11.6
  172. 38.4-20.4 59.9-26.3 26.1-7.1 44.9-29.9 47-56.9 4-52.9 28.6-102.1
  173. 69.4-138.7C368.1 244.6 422.6 224 480 224m0-64c-139.2 0-255.2 94.9-281.9
  174. 220.8-4.4 20.8-18.5 38.3-38.2 46.3C65.8 465.6 0.2 551.2 0.2 650.7 0.2 781.3
  175. 113.4 888.6 256.1 896H736c158.9 0 287.9-130.5 287.9-291.3
  176. 0-145.4-111.1-265.5-256.2-287.4-18.1-2.7-34.1-13-44.2-28.2C672.5
  177. 211.6 582.7 160 480 160z</sys:String>
  178. <sys:String x:Key="WikiIcon">
  179. M172.61,196.65h31a7.69,7.69,0,0,1,7.62,6.65l11.19,80.95c2.58,20.09,5.16,40.18,7.73,60.79h1c3.61-20.61,7.47-41,11.34-60.79l18.23-81.58a7.7,7.7,0,0,1,7.52-6h26.58a7.7,7.7,0,0,1,7.51,6l18.48,81.6c3.86,19.57,7.21,40.18,11.07,60.79h1.29c2.32-20.61,4.9-41,7.22-60.79l11.67-81a7.7,7.7,0,0,1,7.62-6.6h27.72a7.7,7.7,0,0,1,7.59,9L364.41,382.2a7.69,7.69,0,0,1-7.58,6.38H311.61a7.7,7.7,0,0,1-7.54-6.14l-16-77.33c-3.09-14.68-5.67-30.14-7.47-44.57h-1c-2.58,14.43-4.9,29.89-7.73,44.57L256.34,382.4a7.7,7.7,0,0,1-7.54,6.18H204.6a7.69,7.69,0,0,1-7.58-6.32L165,205.72A7.71,7.71,0,0,1,172.61,196.65ZM286.87,507.39,159.71,455.25v22.82L97.54,451.18v-23.3l-89-2,9.54-119.29H44.78V291.24L31.45,280.81V247l14.09-4.23L45,227.13,63.33,220V207.1l5.51-2v-16.2l15.65-4.93V167.63l24.06-11.81,1.65-21.95,4.94-1.72-2-1V95.6h13V89.45l27.56-14.79L169,84.43,185.79,76l21.47,15.34,8.1,1v7.91h6.51l60.65-30.56,8,3.49,17-12.08L324,71l.12-2.19,39.15-22,18.06,12.53h26.37l3.79-1.62,36.38,27.4v28.77l16.81,8.15V149l6.08,3V164l10.15,5.51v11.32h9v11.52l1,0c1.54,0,3.44.08,5.91,0l15.13-.13V212.7h9.28v49.71h-5.8v36.1l-16,9h56l6.78,119.85-116.84-1.4Zm-157.16-85.7h27.23l128.51,52.7,152.82-78.54,92.15,1.1-3.36-59.47H456.67V325.89h-5.8v-40l22.37,1.81L485.36,281v-.86h-7.24V268.5h-7V236.33l-11.31,8.61V210.82h-9V187.35l-10.15-5.51V170.59l-11.59-5.79V138.2l-38.25-18.53,26.95-17.27v-2.29l-10.59-8-24.49,10.41V89.37H371.9l-10.35-7.18-8.38,4.7-.6,11.32-22.31,11.61-21.4-12.9L294,107.45l-10.58-4.63L192,148.87V130.24h-6.67V119l-1-.12V121l-28.12,4v.58h-7.1L151.49,150l-5.17-.37.11,3.38-1.27.44,14.7,10.59-45.37,22.26V206l-15.65,4.93V226l-5.51,2v12.57l-17.6,6.81.61,17.43-12,3.61,10.46,8.18v1.59h11.6v24l43.44,34.42h-84l-4.8,60,86.54,1.93v32.93l2.17.94ZM476.3,232.41h5.58v-4.25Z
  180. </sys:String>
  181. <sys:String x:Key="CreeperIcon">
  182. M213.333333 128a85.333333 85.333333 0 0 0-85.333333 85.333333v597.333334a85.333333 85.333333 0 0 0 85.333333 85.333333h597.333334a85.333333 85.333333 0 0 0 85.333333-85.333333V213.333333a85.333333 85.333333 0 0 0-85.333333-85.333333H213.333333z m0 64h597.333334c11.754667 0 21.333333 9.578667 21.333333 21.333333v597.333334c0 11.754667-9.578667 21.333333-21.333333 21.333333H213.333333c-11.754667 0-21.333333-9.578667-21.333333-21.333333V213.333333c0-11.754667 9.578667-21.333333 21.333333-21.333333z m64 106.666667a21.333333 21.333333 0 0 0-21.333333 21.333333v128a21.333333 21.333333 0 0 0 21.333333 21.333333h149.333334v-149.333333a21.333333 21.333333 0 0 0-21.333334-21.333333h-128z m149.333334 170.666666v85.333334h-64a21.333333 21.333333 0 0 0-21.333334 21.333333v160a32 32 0 1 0 64 0V704h213.333334v32a32 32 0 1 0 64 0V576a21.333333 21.333333 0 0 0-21.333334-21.333333h-64v-85.333334h-170.666666z m170.666666 0h149.333334a21.333333 21.333333 0 0 0 21.333333-21.333333v-128a21.333333 21.333333 0 0 0-21.333333-21.333333h-128a21.333333 21.333333 0 0 0-21.333334 21.333333v149.333333z
  183. </sys:String><ControlTemplate x:Key="Separator" TargetType="ContentControl">
  184. <Grid Margin="0,10">
  185. <Grid.ColumnDefinitions>
  186. <ColumnDefinition Width="1*" />
  187. <ColumnDefinition Width="100" />
  188. <ColumnDefinition Width="1*" />
  189. </Grid.ColumnDefinitions>
  190. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
  191. <TextBlock Text="{TemplateBinding Content}" HorizontalAlignment="Center" FontSize="15" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
  192. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
  193. </Grid>
  194. </ControlTemplate><Style TargetType="local:MyIconTextButton" x:Key="DownloadVersionButton" >
  195. <Setter Property="Text" Value="下载"/>
  196. <Setter Property="ToolTip" Value="转到下载页面"/>
  197. <Setter Property="EventType" Value="切换页面"/>
  198. <Setter Property="EventData" Value="1|1"/>
  199. </Style><Style TargetType="local:MyIconTextButton" x:Key="ServerJarDownloadButton" >
  200. <Setter Property="Text" Value="服务端"/>
  201. <Setter Property="ToolTip" Value="下载服务端"/>
  202. <Setter Property="EventType" Value="下载文件"/>
  203. </Style><Style TargetType="local:MyButton" x:Key="LinkButtonBase" >
  204. <Setter Property="Margin" Value="0,0,5,5"/>
  205. <Setter Property="Height" Value="35"/>
  206. <Setter Property="Padding" Value="13,0"/>
  207. <Setter Property="EventType" Value="打开网页"/>
  208. </Style><Style TargetType="local:MyButton" x:Key="WikiLinkButton" BasedOn="{StaticResource LinkButtonBase}">
  209. <Setter Property="Grid.Column" Value="0"/>
  210. <Setter Property="Text" Value="Minecraft Wiki"/>
  211. </Style><Style TargetType="local:MyButton" x:Key="OfficalLinkButton" BasedOn="{StaticResource LinkButtonBase}">
  212. <Setter Property="Grid.Column" Value="2"/>
  213. <Setter Property="Text" Value="官网"/>
  214. </Style><Style TargetType="Border" x:Key="VersionImageBorder" >
  215. <Setter Property="HorizontalAlignment" Value="Center"/>
  216. <Setter Property="BorderThickness" Value="4"/>
  217. <Setter Property="VerticalAlignment" Value="Top"/>
  218. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}"/>
  219. <Setter Property="CornerRadius" Value="7"/>
  220. <Setter Property="MaxHeight" Value="140"/>
  221. </Style><Style TargetType="Border" x:Key="VersionTitleBorder" >
  222. <Setter Property="Margin" Value="0,-20,-1,-2"/>
  223. <Setter Property="Background" Value="{DynamicResource ColorBrush3}"/>
  224. <Setter Property="Width" Value="170"/>
  225. <Setter Property="Height" Value="30"/>
  226. <Setter Property="CornerRadius" Value="7"/>
  227. <Setter Property="BorderThickness" Value="0,0,0,2"/>
  228. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush2}"/>
  229. </Style><Style TargetType="TextBlock" x:Key="VersionTitleBlock" >
  230. <Setter Property="HorizontalAlignment" Value="Center"/>
  231. <Setter Property="TextAlignment" Value="Center"/>
  232. <Setter Property="VerticalAlignment" Value="Center"/>
  233. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}"/>
  234. <Setter Property="Width" Value="180"/>
  235. <Setter Property="TextWrapping" Value="Wrap"/>
  236. <Setter Property="FontSize" Value="18"/>
  237. </Style>
  238. </StackPanel.Resources>
  239. <local:MyCard CanSwap="False" IsSwaped="false" Margin="0,-2,0,6">
  240. <Border Margin="0,0,0,0" Padding="2,8" BorderThickness="1" Background="{DynamicResource ColorBrush5}" CornerRadius="5" VerticalAlignment="Top" BorderBrush="{DynamicResource ColorBrush3}" Opacity="0.7">
  241. <Grid Margin="10,0,0,0">
  242. <TextBlock x:Name="NewsHint" FontWeight="Bold" FontSize="12" VerticalAlignment="Center" Foreground="#FF000000">
  243. 📰 欢迎使用新闻主页
  244. </TextBlock>
  245. <TextBlock x:Name="Hint2" FontWeight="Bold" FontSize="12" VerticalAlignment="Center" Foreground="#00000000">
  246. 📰 欢迎使用新闻主页
  247. </TextBlock>
  248. </Grid>
  249. </Border>
  250. </local:MyCard><ContentControl Content="加 急 特 快" Template="{StaticResource Separator}"/><local:MyCard Title="重磅来袭:投票更新" CanSwap="True" IsSwaped="True" Style="{StaticResource Card}" >
  251. <StackPanel Style="{StaticResource ContentStack}">
  252. <Border Style="{StaticResource VersionImageBorder}">
  253. <Border.Background>
  254. <ImageBrush ImageSource="https://image.stapxs.cn/i/2024/06/09/image.png" Stretch="UniformToFill" />
  255. </Border.Background>
  256. <Image Source="https://image.stapxs.cn/i/2024/06/09/image.png" Opacity="0" Stretch="Fill"/>
  257. </Border>
  258. <Border Style="{StaticResource VersionTitleBorder}">
  259. <TextBlock Style="{StaticResource VersionTitleBlock}" Text="23w13a_or_b" />
  260. </Border><FlowDocumentScrollViewer >
  261. <FlowDocument>
  262. <Paragraph>以下译自官方博文
  263. 我们人类每天都要做 35000 个选择——它们大多是关于吃什么、穿什么、说什么,还有是否你应该在流媒体平台上观看新现实戏剧(它太太太太好康了,只是你必须得等至少 47 集才能真正开始)。有这么多的选择需要做,使人烦躁。更直接的说,使人厌恶。而且这些选择有些你可能会在 Minecraft 中做出!Mojang Studios 现在着手于修正这个问题。解决方案是:更多的选择!
  264. 几年以来,我们推出了一系列改变生活、赢得大奖、使人疯狂、更不用说令人极为震撼的内容:Minecraft 3D、20w14∞ 快照、一次一个方块更新。但是它们和本次 “投票更新” 一点边都沾不上——一个自从 2017 年就开始制作的快照。
  265. 当你启动游戏的那一刻,你会发现你自己正身处于拥有无尽的投票的世界中,在那里投票的结果将会从根本上更改 Minecraft 的运行法则。我们创造了好一系列的可供投票的特性,它们包含了方方面面:气球蜂、法国模式、僵尸模式、兔子幻形、爆破药水、诡异世界 —— 还有更多、更多......
  266. “研究表明游戏玩家喜爱做出选择——越多越好,”来自渝仁大学的司越·仪教授说道。“Mojang Studios 希望将选择权交到玩家的手上的事实体现了他们是多么地关心他们的玩家社区。至少我是这么想的。我从 1857 年开始就不混社区了而且我其实也不玩游戏。”
  267. 所以这个什么时候才能推出?事实是它已经到来了!由于我们希望投票更新尽快发放到玩家们的手里,我们现在非常乐意宣布你现在立刻就可以下载它!可以等会再感谢我们。</Paragraph><Paragraph Style="{StaticResource H2}">新特性</Paragraph><List>
  268. <ListItem><Paragraph Style="{StaticResource Lp}">引入投票系统:可以改变一切的方法*</Paragraph></ListItem>
  269. <ListItem><Paragraph Style="{StaticResource Lp}">真实的投票体验 —— 不需要再等到下一次 Minecraft Live 为其他人的选择而生气!</Paragraph></ListItem>
  270. <ListItem><Paragraph Style="{StaticResource Lp}">元宇宙革命性的元投票技术!</Paragraph></ListItem>
  271. <ListItem><Paragraph Style="{StaticResource Lp}">包括很多新特性,它们太好了而不能放进主流版本中 —— 至少现在是这样!</Paragraph></ListItem>
  272. <ListItem><Paragraph Style="{StaticResource Lp}">极小的概率投票结果会摧毁你的世界!</Paragraph></ListItem>
  273. <ListItem><Paragraph Style="{StaticResource Lp}">兴奋的倒计时!</Paragraph></ListItem>
  274. </List><Paragraph Style="{StaticResource H3}">方块</Paragraph><List>
  275. <ListItem><Paragraph Style="{StaticResource Lp}">是的!方块!</Paragraph></ListItem>
  276. </List><Paragraph Style="{StaticResource H3}">物品</Paragraph><List>
  277. <ListItem><Paragraph Style="{StaticResource Lp}">为了美好未来的物品!</Paragraph></ListItem>
  278. </List><Paragraph Style="{StaticResource H3}">技术性更改</Paragraph><List>
  279. <ListItem><Paragraph Style="{StaticResource Lp}">超兴奋!</Paragraph></ListItem>
  280. </List><Paragraph Style="{StaticResource H3}">漏洞</Paragraph><List>
  281. <ListItem><Paragraph Style="{StaticResource Lp}">加了点新 Bug(除非你投票决定它们是特性)
  282. (*:是的我们之前已改变了一切,为什么你不想点新的更好的方法呢)</Paragraph></ListItem>
  283. </List><Paragraph Style="{StaticResource H2}">FAQ</Paragraph><Paragraph Style="{StaticResource H4}">当我下载这个快照后会发生什么</Paragraph><List>
  284. <ListItem><Paragraph Style="{StaticResource Lp}">在你下载之后,没有反悔的余地。如果你删除文件,故事就就此结束了;你从床上醒来并信你爱信啥信啥吧。你要是启动它,你呆在主世界,我们会给你看看爱丽丝仙境的兔子洞有多深</Paragraph></ListItem>
  285. </List><Paragraph Style="{StaticResource H4}">在游戏玩法上我能期待些什么</Paragraph><List>
  286. <ListItem><Paragraph Style="{StaticResource Lp}">就像一盒巧克力一样,你永远不会知道你会尝到什么滋味</Paragraph></ListItem>
  287. </List><Paragraph Style="{StaticResource H4}">但是我不想投那堆乱七八糟的,我就是想放松一下</Paragraph><List>
  288. <ListItem><Paragraph Style="{StaticResource Lp}">最艰难的抉择,需要最坚强的意志!</Paragraph></ListItem>
  289. </List>
  290. </FlowDocument>
  291. </FlowDocumentScrollViewer>
  292. <Grid VerticalAlignment="Center" Margin="6,10,0,0" HorizontalAlignment="Right">
  293. <Grid.ColumnDefinitions >
  294. <ColumnDefinition Width="45"/>
  295. <ColumnDefinition />
  296. </Grid.ColumnDefinitions>
  297. <Path Grid.Column="0" Margin="8,0" Width="18" Height="18" Fill="{DynamicResource ColorBrush4}"
  298. Stretch="Uniform"
  299. Data="M640 416h256c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H480c-35.36 0-64-28.48-64-64V640h128c53.312 0 96-42.976 96-96V416zM64 128c0-35.36 28.48-64 64-64h416c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H128c-35.36 0-64-28.48-64-64V128z m128 276.256h46.72v-24.768h67.392V497.76h49.504V379.488h68.768v20.64h50.88V243.36H355.616v-34.368c0-10.08 1.376-18.784 4.16-26.112a10.56 10.56 0 0 0 1.344-4.16c0-0.896-3.2-1.792-9.6-2.72h-46.816v67.36H192v160.896z m46.72-122.368h67.392v60.48h-67.36V281.92z m185.664 60.48h-68.768V281.92h68.768v60.48z m203.84 488l19.264-53.632h100.384l19.264 53.632h54.976L732.736 576h-64.64L576 830.4h52.256z m33.024-96.256l37.12-108.608h1.376l34.368 108.608h-72.864zM896 320h-64a128 128 0 0 0-128-128v-64a192 192 0 0 1 192 192zM128 704h64a128 128 0 0 0 128 128v64a192 192 0 0 1-192-192z"/>
  300. <TextBlock HorizontalAlignment="Right" Grid.Column="1" Text="最亮的信标" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  301. </Grid>
  302. <TextBlock Margin="0,2" Grid.Column="1" HorizontalAlignment="Right" Text="最后更新:2024-10-31" FontSize="12" Foreground="{DynamicResource ColorBrush4}"/>
  303. <WrapPanel Margin="-2,2" Orientation="Horizontal" VerticalAlignment="Center">
  304. <local:MyIconTextButton Text="启动" ToolTip="启动 23w13a_or_b" EventType="启动游戏"
  305. EventData="23w13a_or_b" LogoScale="0.85" Logo="{StaticResource LaunchIcon}" />
  306. <local:MyIconTextButton Style="{StaticResource DownloadVersionButton}"
  307. LogoScale="0.85" Logo="{StaticResource DownloadIcon}"/>
  308. <local:MyIconTextButton Text="WIKI" ToolTip="在 Minecraft Wiki 上查看该版本" EventType="打开网页"
  309. EventData="https://zh.minecraft.wiki/w/23w13a_or_b" LogoScale="1.05" Logo="{StaticResource WikiIcon}" />
  310. <local:MyIconTextButton Text="官网更新日志" ToolTip="在官网查看该版本更新日志" EventType="打开网页"
  311. EventData="https://www.minecraft.net/en-us/article/vote-update" LogoScale="0.85" Logo="{StaticResource CreeperIcon}" />
  312. </WrapPanel>
  313. <!--<StackPanel Margin="0,4,6,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  314. <TextBlock Text="最后更新: 2024-10-31" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  315. </StackPanel> -->
  316. </StackPanel>
  317. </local:MyCard><local:MyCard Title="" CanSwap="True" IsSwaped="True" Style="{StaticResource Card}" >
  318. <StackPanel Style="{StaticResource ContentStack}">
  319. <FlowDocumentScrollViewer >
  320. <FlowDocument>
  321. <Paragraph>Mojang Studios 近日在 B站 创建了官方账号,并发布了入驻视频。
  322. 视频表达了对中国 Minecraft 社区的关心,以及透露了一些关于 Minecraft 接下来更新的秘密。</Paragraph><Paragraph Style="{StaticResource H2}">1.20 更新即将到来的扩增内容</Paragraph><List>
  323. <ListItem><Paragraph Style="{StaticResource Lp}">末影人现在会使用 “末地传送腿”,当其头部被阻挡而不能照计划移动或被困在船、矿车等载具上时,会使用末地传送腿,将最近的玩家踢进末路之地的虚空中,若玩家不在末地维度则将其传送至末地并使其掉入虚空,以表示对卑鄙的两格人的愤怒。</Paragraph></ListItem>
  324. <ListItem><Paragraph Style="{StaticResource Lp}">闪电苦力怕增加格斗技能,被称为“闪电苦力怕拳”,该拳伤害极高(同监守者),并同时赋予 2.5 秒的电击效果,其会使玩家画面剧烈抖动,无法控制。
  325. ** 由于 Mojang 调了半天并未出现自己想要的结果,如果闪电苦力怕因为自身原因无法发动技能可能是特性</Paragraph></ListItem>
  326. <ListItem><Paragraph Style="{StaticResource Lp}">添加 MOBBO,一种生物
  327. ** 他非常爱你
  328. ** 他可以帮你一键合成物品
  329. ** 他可以使用 Mobbo 方块来装饰你的房子
  330. </Paragraph><BlockUIContainer>
  331. <StackPanel>
  332. <Image Style="{StaticResource InnerImage}" Source="https://www.lightbeacon.top/pnh/newsimgs/Normal/Mobbo.png"/>
  333. <TextBlock Text="Mobbo" Style="{StaticResource imgTitle}" />
  334. </StackPanel>
  335. </BlockUIContainer></ListItem>
  336. <ListItem><Paragraph Style="{StaticResource Lp}">疣猪兽现在会在创死一名玩家后跳舞</Paragraph></ListItem>
  337. <ListItem><Paragraph Style="{StaticResource Lp}">荧石有了新用途,不过并未详细透露,好像和水有关</Paragraph></ListItem>
  338. <ListItem><Paragraph Style="{StaticResource Lp}">现在猪灵觉得黄金太土了,不如使用泥土来交易,因为它们觉得其相当珍贵</Paragraph></ListItem>
  339. <ListItem><Paragraph Style="{StaticResource Lp}">手撸原木太疼了,玩家需要先手撸牛合成手套,使用手套来手撸原木</Paragraph></ListItem>
  340. </List><Paragraph Style="{StaticResource H2}">关注官方账号</Paragraph> <Paragraph>扫描下方二维码获取 Mojang 的最新消息
  341. </Paragraph><BlockUIContainer>
  342. <StackPanel>
  343. <Image Style="{StaticResource InnerImage}" Source="https://www.lightbeacon.top/pnh/newsimgs/Normal/qrc.png"/>
  344. <TextBlock Text="官方账号" Style="{StaticResource imgTitle}" />
  345. </StackPanel>
  346. </BlockUIContainer>
  347. </FlowDocument>
  348. </FlowDocumentScrollViewer>
  349. <!--<StackPanel Margin="0,4,6,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  350. <TextBlock Text="最后更新: 2024-10-31" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  351. </StackPanel> -->
  352. </StackPanel>
  353. </local:MyCard><ContentControl Content="最 新 新 闻" Template="{StaticResource Separator}"/><local:MyCard Title="新闻主页正在测试!" CanSwap="True" IsSwaped="True" Style="{StaticResource Card}" >
  354. <StackPanel Style="{StaticResource ContentStack}">
  355. <FlowDocumentScrollViewer >
  356. <FlowDocument>
  357. <Paragraph Style="{StaticResource H1}">新闻主页正在测试!</Paragraph> <Paragraph>新闻主页正在尝试以新的方式呈现(尽管可能看不出来),若遇到新闻主页某些位置无法打开或内容有误,请先别急!我知道你很急,但是你先别急!
  358. 下方的卡片可以帮你查看原来版本的新闻主页,如有需要,可以拿来先凑凑数</Paragraph>
  359. </FlowDocument>
  360. </FlowDocumentScrollViewer>
  361. <!--<StackPanel Margin="0,4,6,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  362. <TextBlock Text="最后更新: 2024-10-31" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  363. </StackPanel> -->
  364. </StackPanel>
  365. </local:MyCard><local:MyCard Title="更多页面..." Margin="0,5">
  366. <StackPanel Margin="25,40,23,15">
  367. <Grid>
  368. <Grid.ColumnDefinitions>
  369. <ColumnDefinition Width="1*"/>
  370. <ColumnDefinition Width="100"/>
  371. </Grid.ColumnDefinitions>
  372. <local:MyComboBox x:Name="jumpbox" Height="30" SelectedIndex="0">
  373. <local:MyComboBoxItem Content="1.21存档"/>
  374. <local:MyComboBoxItem Content="1.20存档"/>
  375. <local:MyComboBoxItem Content="1.19存档"/>
  376. <local:MyComboBoxItem Content="1.18存档"/>
  377. <local:MyComboBoxItem Content="1.17存档"/>
  378. <local:MyComboBoxItem Content="愚人节版本存档"/>
  379. <local:MyComboBoxItem Content="输入..."/>
  380. </local:MyComboBox>
  381. <local:MyButton HorizontalAlignment="Center" Width="80"
  382. Grid.Column="1" Text="打开→" EventType="打开帮助"
  383. EventData="{Binding Path=Text,ElementName=jumpbox,StringFormat=https://news.bugjump.net/{0}.json}"/>
  384. </Grid>
  385. </StackPanel>
  386. </local:MyCard><Grid Margin="20,10" Height="35">
  387. <Grid.ColumnDefinitions>
  388. <ColumnDefinition Width="3*">
  389. </ColumnDefinition>
  390. <ColumnDefinition Width="2*">
  391. </ColumnDefinition>
  392. <ColumnDefinition Width="1*">
  393. </ColumnDefinition>
  394. </Grid.ColumnDefinitions>
  395. <local:MyButton Grid.Column="0" Padding="10,0" Text="刷新" EventType="刷新主页" Margin="3,0" ToolTip="点击刷新新闻主页" />
  396. <local:MyButton Grid.Column="2" Padding="10,0" Text="反馈" EventType="打开网页" Margin="3,0" EventData="https://github.com/Light-Beacon/PCL2-NewsHomepage/issues/new" ToolTip="点击前往 GitHub 提交反馈" />
  397. <local:MyButton Grid.Column="1" Padding="10,0" Text="❤️ 赞助主页" EventType="打开网页" Margin="3,0" EventData="https://afdian.net/a/Nattiden" ToolTip="点击前往 新闻主页爱发电" ColorType="Red" />
  398. </Grid><Border Background="#A0FFFFFF" Height="20720" Margin="-25,10,-25,-20500" BorderThickness="0,2,0,0" BorderBrush="#AAAAAAAA">
  399. <StackPanel Margin="40,15,0,10">
  400. <TextBlock Text="PCL2 新闻主页" FontSize="16" Margin="0,5,5,5" />
  401. <TextBlock>
  402. By:最亮的信标(Light Beacon)<LineBreak/>
  403. 主要维护:最亮的信标(Light Beacon)<LineBreak/>
  404. <LineBreak/>
  405. 订阅地址: 请通过 设置 - 主页 - 预设 - 新闻主页 订阅<LineBreak/>
  406. 爱发电赞助: <Underline><local:MyTextButton Margin="0,0,0,-3" EventType="打开网页" Text="https://afdian.net/a/Nattiden"
  407. EventData="https://afdian.net/a/Nattiden" ToolTip="点击打开爱发电" /></Underline> <LineBreak/>
  408. GitHub: <Underline><local:MyTextButton Margin="0,0,0,-3" EventType="打开网页" Text="https://github.com/Light-Beacon/PCL2-NewsHomepage"
  409. EventData="https://github.com/Light-Beacon/PCL2-NewsHomepage" ToolTip="点击打开GitHub" /></Underline> <LineBreak/>
  410. <LineBreak/>
  411. 无特殊声明本主页采用 <Underline><local:MyTextButton Margin="0,0,0,-2" Text="CC BY-NC-SA 4.0" EventType="打开网页"
  412. EventData="https://creativecommons.org/licenses/by-nc-sa/4.0/ "/></Underline> 授权。
  413. <LineBreak/>
  414. </TextBlock>
  415. <Border Height="20500" Background="{DynamicResource ColorBrush7}" Opacity="0.3" Margin="-40,10,0,0">
  416. <StackPanel>
  417. <Grid Margin="0,7,0,15">
  418. <Grid.ColumnDefinitions>
  419. <ColumnDefinition Width="1*">
  420. </ColumnDefinition>
  421. <ColumnDefinition Width="100">
  422. </ColumnDefinition>
  423. <ColumnDefinition Width="1*">
  424. </ColumnDefinition>
  425. </Grid.ColumnDefinitions>
  426. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
  427. <TextBlock Text="到 底 啦" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
  428. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
  429. </Grid>
  430. </StackPanel>
  431. </Border>
  432. </StackPanel>
  433. </Border>
  434. </StackPanel>