Просмотр исходного кода

april-fools archives and intro

Nattiden 2 лет назад
Родитель
Сommit
a5f9cb18bc

+ 1 - 0
Libraries/Homepage/jumpCard.xaml

@@ -11,6 +11,7 @@
         <local:MyComboBoxItem Content="1.19存档"/>
         <local:MyComboBoxItem Content="1.18存档"/>
         <local:MyComboBoxItem Content="1.17存档"/>
+        <local:MyComboBoxItem Content="愚人节版本存档"/>
       </local:MyComboBox>
         <local:MyButton HorizontalAlignment="Center" Width="80"
             Grid.Column="1" Text="打开→" EventType="打开帮助" 

+ 3 - 0
Libraries/Versions/Others/23w13a_or_b.md

@@ -1,7 +1,10 @@
 ---
 version-image-link: https://image.stapxs.cn/i/2024/06/09/image.png
 official-link: https://www.minecraft.net/en-us/article/vote-update
+title: 重磅来袭:投票更新
+intro: 2023 - 在 Minecraft 的世界中作出更多选择!
 translator: 最亮的信标
+version-type: 愚人节版
 cats: ['april_fools']
 ---
 以下译自官方博文

+ 2 - 0
Libraries/Versions/Others/24w14potato.md

@@ -2,7 +2,9 @@
 version-image-link: https://image.stapxs.cn/i/2024/04/01/image.png
 official-link: https://www.minecraft.net/en-us/article/poisonous-potato-update
 title: 毒马铃薯更新!--你所期待的粉糊糊状更新!
+intro: 2024 - 你有没有想过成为一只...毒马铃薯?
 translator: 最亮的信标
+version-type: 愚人节版
 cats: ['april_fools']
 ---
 想象一下成为一只马铃薯。现在想象一下你是马铃薯家族中不太受欢迎的兄弟姐妹,没有继承家族其他人拥有的美味块茎。更糟糕的是——你正面临着不可能作出的决定——该如何处理所有这些淀粉?既然薯条和沙发土豆都不适合你,那么我们只剩下了一个选择。恭喜你,朋友,你成为了*毒*马铃薯。

+ 1 - 1
Libraries/Versions/Others/__LIBRARY__.yml

@@ -1,5 +1,5 @@
 name: april-fools-versions
 fill:
   version-type-id: April-Fools
-  version-type: ???版
+  version-type: 未知版本
   wiki-link: https://zh.minecraft.wiki/w/${version-id}

+ 8 - 0
Pages/april_fools.yml

@@ -0,0 +1,8 @@
+name: april_fools_archive
+alias:
+ - 愚人节版本存档
+display_name: 愚人节版本存档
+cards:
+ - archive_noticebar
+ - T:VersionAchiveList | cat = april_fools
+ - NewFooter

+ 1 - 1
Resources/Components/VersionLinks/April-Fools.xaml

@@ -1,3 +1,3 @@
 <local:MyListItem Margin="10,1,10,1"
-	Logo="pack://application:,,,/images/Blocks/GoldBlock.png" Title="${version-id}" Info="${version-type}" 
+	Logo="pack://application:,,,/images/Blocks/GoldBlock.png" Title="${version-id}" Info="${version-type}${@IF|${intro}| - ${intro}}" 
 	EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" />

+ 1 - 1
Resources/Components/VersionLinks/Pre-Release.xaml

@@ -1,3 +1,3 @@
 <local:MyListItem Margin="40,1,10,1"
-	Logo="pack://application:,,,/images/Blocks/GrassPath.png" Title="${version-id}" Info="${version-type}" 
+	Logo="pack://application:,,,/images/Blocks/GrassPath.png" Title="${version-id}" Info="${version-type}${@IF|${intro}| - ${intro}}" 
 	EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" />

+ 1 - 1
Resources/Components/VersionLinks/Release-Candidate.xaml

@@ -1,3 +1,3 @@
 <local:MyListItem Margin="40,1,10,1"
-	Logo="pack://application:,,,/images/Blocks/GrassPath.png" Title="${version-id}" Info="${version-type}" 
+	Logo="pack://application:,,,/images/Blocks/GrassPath.png" Title="${version-id}" Info="${version-type}${@IF|${intro}| - ${intro}}" 
 	EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" />

+ 1 - 1
Resources/Components/VersionLinks/Release.xaml

@@ -1,3 +1,3 @@
 <local:MyListItem Margin="10,1,10,1"
-	Logo="pack://application:,,,/images/Blocks/Grass.png" Title="${version-id}" Info="${version-type}" 
+	Logo="pack://application:,,,/images/Blocks/Grass.png" Title="${version-id}" Info="${version-type}${@IF|${intro}| - ${intro}}" 
 	EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" />

+ 1 - 1
Resources/Components/VersionLinks/Snapshot.xaml

@@ -1,3 +1,3 @@
 <local:MyListItem Margin="40,1,10,1"
-	Logo="pack://application:,,,/images/Blocks/CommandBlock.png" Title="${version-id}" Info="${version-type}" 
+	Logo="pack://application:,,,/images/Blocks/CommandBlock.png" Title="${version-id}" Info="${version-type}${@IF|${intro}| - ${intro}}" 
 	EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" />

+ 1 - 1
Resources/Scripts/VersionAchiveList.py

@@ -11,7 +11,7 @@ def script(cat_name,proj:Project,card,**_):
     cat_name = format_code(code = cat_name,card=card,project=proj)
     cards = list(filter(lambda card:isinstance(card.get('cats'),list)
            and cat_name in card.get('cats'), proj.get_all_card()))
-    code = '<StackPanel Margin="8,2,8,20">'
+    code = '<StackPanel Margin="8,2,8,15">'
     res = proj.resources
     cards.sort(key=lambda card:ID_LIST.index(format_code(card['version-id'],
                                                          card=card,project=proj)))