Преглед изворни кода

与新构建器共同迭代

Light Beacon пре 2 година
родитељ
комит
3f239be286

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/.vscode

+ 0 - 0
Libraries/Homepage/feedback_hint.xaml → Libraries/Homepage/#achive_feedback_hint.xaml


+ 0 - 0
Libraries/Homepage/2023NewYear.xaml → Libraries/Homepage/2023ChineseNewYear.xaml


+ 0 - 0
Libraries/Homepage/2024LunarNewYear.xaml → Libraries/Homepage/2024ChineseNewYear.xaml


+ 1 - 0
Libraries/Homepage/__LIBRARY__.yml

@@ -1,4 +1,5 @@
 name: news_homepage_elements
 fill:
   templates:
+    - MarkdownCard
     - Raw

+ 1 - 1
Libraries/Homepage/animated_noticebar.xaml

@@ -1,4 +1,4 @@
-<Border Margin="0,0,0,10" Padding="2,8" BorderThickness="1" Background="{DynamicResource ColorBrush5}" CornerRadius="5" VerticalAlignment="Top" BorderBrush="{DynamicResource ColorBrush3}" Opacity="0.7">
+<Border Margin="0,0,0,5" Padding="2,8" BorderThickness="1" Background="{DynamicResource ColorBrush5}" CornerRadius="5" VerticalAlignment="Top" BorderBrush="{DynamicResource ColorBrush3}" Opacity="0.7">
     <Grid Margin="10,0,0,0">
         <TextBlock x:Name="NewsHint" FontWeight="Bold" FontSize="12" VerticalAlignment="Center" Foreground="#FF000000">
                 📰 新闻主页由 Light Beacon (最亮的信标)制作与维护。

+ 5 - 0
Libraries/Homepage/feedback_hint.md

@@ -0,0 +1,5 @@
+# 📢 新闻主页问题请在 GitHub 上交 Issue 而不是跑去 PCL2 反馈
+很抱歉由于工作疏漏可能会导致新闻主页出现一些问题。
+但有人往 PCL2 反馈提交新闻主页 Bug ...... 你交错地了!
+如果是 **由于加载新闻主页出现的问题**,请在 [我的 GitHub 仓库](https://github.com/Light-Beacon/PCL2-NewsHomepage) 交 Issue **而不是**在 PCL2 反馈交反馈(PCL2 不背锅)。
+你可以点击新闻主页最下方反馈按钮提交反馈

+ 1 - 1
Libraries/Homepage/jumpCard.xaml

@@ -1,4 +1,4 @@
-<local:MyCard Title="更多页面..." Margin="0,0,0,20">
+<local:MyCard Title="更多页面..." Margin="0,5">
     <StackPanel Margin="25,40,23,15">
     <Grid>
       <Grid.ColumnDefinitions>

+ 2 - 2
Libraries/Versions/Snapshot/24w05a.md

@@ -2,7 +2,7 @@
 * 增加了宝库方块
 ### 宝库
 * 一个装有锁住的宝藏和战利品的方块 —— 找到正确的钥匙来弹出奖励
-    * 能在 Trial Chambers 各处发现,装有整个结构最珍贵的战利品
+    * 能在 Trial Chambers *(译名未定)* 各处发现,装有整个结构最珍贵的战利品
     * 在 Trial Chambers 需要试炼钥匙才能解锁
 * 解锁玩家不限数量
     * 在玩家解锁过一个宝库后,他们不能再次解锁该宝库
@@ -14,7 +14,7 @@
 * 每次解锁其弹出的奖励是随机从战利品表抽取的
 * 在生存模式下不能够合成和获得,当其被挖掘后不会掉落任何东西
 * 拥有爆炸抗性并且不能被移动
-* 宝库当前使用和 Trial Chambers 其它奖励箱一样的战利品表
+* 宝库当前使用和 *Trial Chambers* 其它奖励箱一样的战利品表
     * 战利品表是临时的并且会随着继续开发以完善
 ### 试炼钥匙
 * 更新了材质以反应宝库的外观

+ 1 - 1
Libraries/Versions/Snapshot/24w06a.md

@@ -34,7 +34,7 @@
 * 数据包版本现在为 31
 * 资源包版本现在为 26
 * 改善了漏斗的性能
-* 添加了 JFR(Java  Flight Recorder)事件,用于对单区块的读取和写入
+* 添加了 JFR(Java Flight Recorder)事件,用于对单区块的读取和写入
 * 现在函数中命令的最大长度(包括宏展开)不能超过 2,000,000 个字符
 * 通过重用部分原版数据包,减少了登录期间服务器发送的数据量
 ### 数据包版本 31

+ 2 - 2
Libraries/Versions/Snapshot/24w07a.md

@@ -1,13 +1,13 @@
 ## 已知问题
 * 风弹的摔落伤害减免没有效果
 ## 实验性特性
-### BOGGED
+### BOGGED *(译名未定)*
 * 一个会发射剧毒之箭的骷髅变种
     * 能更快地被玩家击杀,其满血 16 而不是 20
     * 其攻击间隔更慢,为 3.5 秒而非 2 秒
 * 在被玩家击杀后有概率掉落剧毒之箭
 * 这些被苔藓和蘑菇覆盖的骷髅会自然的在沼泽和红树林沼泽生成
-    * 也能在一些 Trial Chambers 的试炼刷怪笼中找到
+    * 也能在一些 Trial Chambers *(译名未定)* 的试炼刷怪笼中找到
 ## 更改
 * 若漏斗上方是蜂巢或蜂箱时,漏斗现在也会吸取物品,但其它完整方块仍然会阻挡它们吸取物品
 ## 技术性更改

+ 1 - 1
Libraries/Versions/__LIBRARY__.yml

@@ -6,5 +6,5 @@ fill:
   version-id: ${file_name}
   title: ${file_name}
   templates:
-    - VersionCard
+    - VersionMarkdownCard
     - Raw

+ 1 - 1
Resources/Components/Separator.xaml

@@ -1 +1 @@
-<ContentControl Content="${content}" Template="{StaticResource Separator}"/>
+<ContentControl Content="${$SeparatorContent}" Template="{StaticResource Separator}"/>

+ 3 - 0
Resources/Components/VersionStackPanel.xaml

@@ -0,0 +1,3 @@
+<StackPanel Margin="5,0">
+    ${$ChildrenPresenter}
+</StackPanel>

+ 3 - 0
Resources/Scripts/SeparatorContent.py

@@ -0,0 +1,3 @@
+def script(card,arg,res):
+    content = card['content']
+    return '  '.join(list(content))

+ 12 - 0
Resources/Styles/Separator_Template.xaml

@@ -0,0 +1,12 @@
+<ControlTemplate x:Key="Separator" TargetType="ContentControl">
+  <Grid Margin="0,10">
+    <Grid.ColumnDefinitions>
+      <ColumnDefinition Width="1*" />
+      <ColumnDefinition Width="100" />
+      <ColumnDefinition Width="1*" />
+    </Grid.ColumnDefinitions>
+    <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
+    <TextBlock Text="{TemplateBinding Content}" HorizontalAlignment="Center" FontSize="15" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
+    <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
+  </Grid>
+</ControlTemplate>

+ 5 - 0
Resources/Templates/VersionBase.yml

@@ -0,0 +1,5 @@
+components:
+ - VersionHeaderImage
+ - VersionStackPanel
+ - VersionWebsites
+base: CardBase

+ 0 - 9
Resources/Templates/VersionCard.yml

@@ -1,9 +0,0 @@
-components:
- - VersionHeaderImage
- - $MarkdownPresenter
- - VersionWebsites
-base: CardBase
-filter:
-  file_exten:
-    - md
-    - markdown

+ 7 - 0
Resources/Templates/VersionMarkdownCard.yml

@@ -0,0 +1,7 @@
+components:
+ - $MarkdownPresenter
+base: VersionBase
+filter:
+  file_exten:
+    - md
+    - markdown