Ticket #2487: patch_moddata.3.patch
File patch_moddata.3.patch, 6.2 KB (added by , 10 years ago) |
---|
-
binaries/data/mods/public/gui/pregame/mainmenu.js
286 286 return sprintf(translate("Build: %(buildDate)s (%(revision)s)"), { buildDate: Engine.GetBuildTimestamp(0), revision: Engine.GetBuildTimestamp(2) }); 287 287 } 288 288 289 function getModDescription() 290 { 291 if (!Engine.ConfigDB_SetFile("mod", "info.cfg")) 292 return ""; 293 294 Engine.ConfigDB_Reload("mod"); 295 296 return "[font=\"sans-bold-16\"]" 297 + sprintf(translate("%(versionName)s: %(versionNickname)s"), 298 {versionName: translate(Engine.ConfigDB_GetValue("mod", "version.name")), 299 versionNickname: translate(Engine.ConfigDB_GetValue("mod", "version.nickname")) 300 } 301 ) 302 + "[/font]\n\n" 303 + Engine.TranslateLines(Engine.ReadFile("gui/pregame/mod_description.txt")); 304 } 305 289 306 /* 290 307 * FUNCTIONS BELOW DO NOT WORK YET 291 308 */ -
binaries/data/mods/public/gui/pregame/mainmenu.xml
467 467 style="TranslucentPanelThinBorder" 468 468 > 469 469 470 <!-- PRE-RELEASE WARNING-->470 <!-- MOD DESCRIPTION --> 471 471 <object 472 472 font="sans-14" 473 473 type="text" 474 474 textcolor="white" 475 475 size="8 8 100%-8 100%-36" 476 476 ghost="true" 477 477 > 478 <!-- IMPORTANT: remember to update session/session.xml in sync with this: --> 479 <attribute id="caption"> 480 <keep>[font="sans-bold-16"]</keep> 481 <translate>Alpha XV: Osiris</translate> 482 <keep>[/font]\n\n</keep> 483 <translate>WARNING: This is an early development version of the game. Many features have not been added yet.</translate> 484 <keep>\n\n</keep> 485 <translate>Get involved at: play0ad.com</translate> 486 </attribute> 478 <action on="Load"> 479 this.caption = getModDescription(); 480 </action> 487 481 </object> 488 482 489 483 <!-- CONTACT METHODS --> -
binaries/data/mods/public/gui/pregame/mod_description.txt
1 WARNING: This is an early development version of the game. Many features have not been added yet. 2 3 4 Get involved at: play0ad.com -
binaries/data/mods/public/gui/session/session.js
916 916 } 917 917 } 918 918 919 function getVersionLabel() 920 { 921 if (!Engine.ConfigDB_SetFile("mod", "info.cfg")) 922 return ""; 923 924 Engine.ConfigDB_Reload("mod"); 925 926 return sprintf(translate("%(versionName)s: %(versionNickname)s"), 927 {versionName: translate(Engine.ConfigDB_GetValue("mod", "version.name")), versionNickname: translate(Engine.ConfigDB_GetValue("mod", "version.nickname"))} 928 ); 929 } 930 919 931 function getBuildString() 920 932 { 921 933 return sprintf(translate("Build: %(buildDate)s (%(revision)s)"), { buildDate: Engine.GetBuildTimestamp(0), revision: Engine.GetBuildTimestamp(2) }); -
binaries/data/mods/public/gui/session/session.xml
764 764 765 765 766 766 <!-- ================================ ================================ --> 767 <!-- ALPHALABELS (alpha, build time, revision) -->767 <!-- VERSION LABELS (alpha, build time, revision) --> 768 768 <!-- ================================ ================================ --> 769 769 770 770 <!-- Displays Alpha name and number --> 771 <object size="50%+48 0 100%-226 100%" name="alphaLabel" type="text" style="ModernLabelText" text_valign="top" ghost="true"> 772 <!-- IMPORTANT: remember to update pregame/mainmenu.xml in sync with this: --> 773 <translatableAttribute id="caption">ALPHA XV : Osiris</translatableAttribute> 771 <object size="50%+48 0 100%-226 100%" name="versionLabel" type="text" style="ModernLabelText" text_valign="top" ghost="true"> 772 <action on="Load">this.caption = getVersionLabel()</action> 774 773 775 774 <!-- Displays build date and revision number--> 776 775 <object size="50%-128 0 50%+128 100%-2" name="buildTimeLabel" type="text" style="BuildNameText" ghost="true"> -
binaries/data/mods/public/info.cfg
1 ; Mod Settings 2 ; 3 ; ************************************************************** 4 ; * THIS FILE DOES NOT CONTAIN CUSTOMISATION ELEMENTS. * 5 ; * It provides information about the current mod, to be used * 6 ; * in the game. * 7 ; ************************************************************** 8 9 ; 0 A.D. Public Mod 10 11 title = "0 A.D." 12 13 ; Version information 14 version.name = "Alpha XV" 15 version.nickname = "Osiris" 16 version.number = "0.0.15" -
binaries/data/mods/public/l10n/messages.json
40 40 "filemasks": [ 41 41 "gui/manual/intro.txt", 42 42 "gui/manual/userreport.txt", 43 "gui/pregame/mod_description.txt", 43 44 "gui/text/quotes.txt", 44 45 "gui/splashscreen/splashscreen.txt", 45 46 "gui/text/tips/**.txt" … … 48 49 "format": "none" 49 50 } 50 51 }, 52 { 53 "extractor": "ini", 54 "filemasks": [ 55 "info.cfg" 56 ], 57 "options": { 58 "format": "none", 59 "keywords": [ 60 "title", 61 "version.name", 62 "version.nickname" 63 ] 64 } 65 }, 51 66 { 52 67 "extractor": "json", 53 68 "filemasks": [