Nattiden vor 2 Jahren
Ursprung
Commit
80c92c33bf

+ 1 - 0
Libraries/Versions/Release-Candidate/1.20.5-rc1.md

@@ -1,5 +1,6 @@
 ---
 version-image-link: https://image.stapxs.cn/i/2024/04/20/image.png
+translator: Nattiden
 ---
 ## 技术性更改
 * 更改了在服务器发送的包内存在无效数据时游戏客户端断开链接的方法

+ 1 - 0
Libraries/Versions/Release-Candidate/1.20.5-rc2.md

@@ -1,5 +1,6 @@
 ---
 version-image-link: https://image.stapxs.cn/i/2024/04/20/image_1.png
+translator: Nattiden
 ---
 ## 修复的漏洞
 * 烟火之星物品展示实体有不一致的颜色更新

+ 0 - 1
Libraries/Versions/__LIBRARY__.yml

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

+ 1 - 1
Resources/Components/Loading.xaml

@@ -1 +1 @@
-<local:MyLoading Margin="0,0,0,4" Text="${loading_content}"/>
+<local:MyLoading Margin="0,8" Text="${loading_content}"/>

+ 1 - 0
Resources/Components/Translator.xaml

@@ -0,0 +1 @@
+<TextBlock Text="▌ 译者:${translator}" Style="{StaticResource TranslatorText}"/>

+ 1 - 1
Resources/Components/VersionWebsites.xaml

@@ -1,4 +1,4 @@
-<GroupBox Header="阅读完整日志" BorderBrush="{DynamicResource ColorBrush3}" Margin="0,20,0,0">
+<GroupBox Header="阅读完整日志" BorderBrush="{DynamicResource ColorBrush3}" Margin="0,10,0,0">
 <Grid UseLayoutRounding="True" Margin="10,10,10,10">
 <Grid.ColumnDefinitions>
 <ColumnDefinition Width="20*"/>

+ 2 - 1
Resources/Scripts/LatestVersion.py

@@ -1,4 +1,4 @@
-from Core.Debug import LogWarning
+from Core.Debug import LogWarning, LogInfo
 import requests
 import json
 
@@ -16,6 +16,7 @@ MANIFSET = fetch_mainfest()
 LATEST_VERSIONS = {'snapshot':'','release':''}
 LATEST_VERSIONS.update(MANIFSET['latest'])
 FULL_VERSIONS = MANIFSET.get('versions')
+LogInfo(f'[VersionScript] 最新快照版:{LATEST_VERSIONS["snapshot"]}; 最新正式版:{LATEST_VERSIONS["release"]}')
 
 def script(card,arg,res):
     if len(arg) <= 2 or (count := int(arg[2])) <= 1:

+ 7 - 0
Resources/Styles/Footnotes.yml

@@ -0,0 +1,7 @@
+Styles:
+ - Key: TranslatorText
+   Target: TextBlock
+   Setters:
+      FontSize: 14
+      Margin: 4,5,4,0
+      Foreground: "{DynamicResource ColorBrush5}"

+ 7 - 4
Resources/Templates/VersionBase.yml

@@ -1,5 +1,8 @@
 components:
- - VersionHeaderImage
- - FlowDocumentViewer
- - VersionWebsites
-base: Card
+ - ${@IF|!not_finished|${@IF|version-image-link|VersionHeaderImage}}
+ - ${@IF|!not_finished|FlowDocumentViewer|Loading}
+ - ${@IF|!disable-websites|VersionWebsites}
+ - ${@IF|translator|Translator}
+base: Card
+fill:
+   loading_content: 新版本内容翻译施工中,过一阵子再来吧

+ 0 - 11
Resources/Templates/VersionPlaceholder.yml

@@ -1,11 +0,0 @@
-components:
- - Loading
- - VersionWebsites
-base: Card
-fill:
-   loading_content: 新版本内容待翻译
-filter:
-   file_exten:
-    - md
-   not_finished:
-    - true