Light Beacon %!s(int64=2) %!d(string=hai) anos
pai
achega
5cebe7841f

+ 4 - 3
Libraries/Versions/library.yml

@@ -1,7 +1,8 @@
 name: versions
 fill:
-  mcbbs-link: '${$GetLink|Mcbbs}'
-  official-link: '${$GetLink|Official}'
-  version-image-link: '${$GetLink|Image}'
+  mcbbs-link: ${$GetLink|Mcbbs}
+  official-link: ${$GetLink|Official}
+  version-image-link: ${$GetLink|Image}
+  version-id: ${file_name}
   templates:
     - VersionCard

+ 2 - 1
Libraries/library.yml

@@ -1,4 +1,5 @@
 name: rootlibrary
 fill:
   canswap: true
-  isswaped: true
+  isswaped: true
+  title: ${file_name}

+ 1 - 1
Resources/Components/VersionHeaderImage.xaml

@@ -5,5 +5,5 @@
 <Image Source="${version-image-link}" Opacity="0" Stretch="Fill"/>
 </Border>
 <Border Style="{StaticResource verTxtBdr}" ${$IsEnableAnimation}>
-<TextBlock Style="{StaticResource verTxtBlk}" Text="${name}" />
+<TextBlock Style="{StaticResource verTxtBlk}" Text="${version-id}" />
 </Border>

+ 3 - 0
Resources/Scripts/GetLink.py

@@ -0,0 +1,3 @@
+def script(card,arg,res):
+    name = card['version-id']
+    return res.data[f'{arg[1]}Link'][name]

+ 0 - 3
Resources/Scripts/GetMCBBSLink.py

@@ -1,3 +0,0 @@
-def script(card,arg,res):
-    name = card['name']
-    return res.data['McbbsLink'][arg[1]]

+ 0 - 0
Resources/Scripts/GetOfficialLink.py