Nattiden 2 years ago
parent
commit
1957513f94
2 changed files with 14 additions and 3 deletions
  1. 1 0
      Libraries/Versions/Release/1.21.md
  2. 13 3
      Resources/Components/VersionToolBar.xaml

+ 1 - 0
Libraries/Versions/Release/1.21.md

@@ -2,6 +2,7 @@
 version-image-link: https://image.stapxs.cn/i/2024/06/13/image.png
 server-jar: https://piston-data.mojang.com/v1/objects/450698d1863ab5180c25d7c804ef0fe6369dd1ba/server.jar
 translator: 最亮的信标、WorldHim、柚子柚子
+translators_in_new_line: true
 cats: ['1.21']
 ---
 

+ 13 - 3
Resources/Components/VersionToolBar.xaml

@@ -1,12 +1,13 @@
 <Grid Margin="0,10,6,0">
-${@IF|${translator}|
+${@IF|${translator}|${@IF|!${translators_in_new_line}|
 <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
 <Path Margin="8,0" Width="18" Height="18" Fill="{DynamicResource ColorBrush5}"
                     Stretch="Uniform"
                     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"/>
 <TextBlock Text="By ${translator}" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush5}"/>
 </StackPanel>
-}
+}}
+
 <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
 <local:MyIconTextButton Text="启动" ToolTip="启动 ${version-id}" EventType="启动游戏"
     EventData="${version-id}" LogoScale="0.85" Logo="{StaticResource LaunchIcon}" />
@@ -17,4 +18,13 @@ ${@IF|${server-jar}|
     LogoScale="1.05" EventData="${server-jar}" Logo="{StaticResource CloudIcon}" />
 }
 </StackPanel>
-</Grid>
+</Grid>
+
+${@IF|${translator}|${@IF|${translators_in_new_line}|
+<StackPanel Margin="0,10,6,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
+<Path Margin="8,0" Width="18" Height="18" Fill="{DynamicResource ColorBrush5}"
+                    Stretch="Uniform"
+                    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"/>
+<TextBlock Text="By ${translator}" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush5}"/>
+</StackPanel>
+}}