Ticket #2118: patch_versiondata.2.diff
File patch_versiondata.2.diff, 4.2 KB (added by , 11 years ago) |
---|
-
binaries/data/config/default.cfg
17 17 ; * * 18 18 ; ************************************************************** 19 19 20 ; Game version data 21 versionNumber = 14 22 versionNumberString = "XIV" 23 versionName = "Naukratis" 24 20 25 ; Enable/disable windowed mode by default. (Use Alt+Enter to toggle in the game.) 21 26 windowed = false 22 27 -
binaries/data/mods/public/gui/pregame/mainmenu.xml
440 440 441 441 <!-- PRE-RELEASE WARNING --> 442 442 <object 443 name="preReleaseWarning" 443 444 font="serif-14" 444 445 type="text" 445 446 textcolor="white" 446 447 size="8 8 100%-8 100%-36" 447 448 ghost="true" 448 449 > 449 [font="serif-bold-16"]Alpha XIV: Naukratis<!-- IMPORTANT: remember to update session/session.xml in sync with this -->[/font] 450 451 WARNING: This is an early development version of the game. Many features have not been added yet. 452 453 Get involved at: play0ad.com 450 <action on="Load"> 451 this.caption = "[font=\"serif-bold-16\"]Alpha " + Engine.GetVersionNumberString() + " : " + Engine.GetVersionName() + "[/font]\n\n" + 452 "WARNING: This is an early development version of the game. Many features have not been added yet.\n\n" + 453 "Get involved at: play0ad.com" 454 </action> 454 455 </object> 455 456 456 457 <!-- FUNDRAISER --> -
binaries/data/mods/public/gui/session/session.xml
615 615 616 616 <!-- Displays Alpha name and number --> 617 617 <object size="50%+48 0 100%-226 100%" name="alphaLabel" type="text" style="CenteredLabelText" text_valign="top" ghost="true"> 618 ALPHA XIV : Naukratis<!-- IMPORTANT: remember to update pregame/mainmenu.xml in sync with this -->618 <action on="Load">this.caption= "Alpha " + Engine.GetVersionNumberString() + " : " + Engine.GetVersionName()</action> 619 619 620 620 <!-- Displays build date and revision number--> 621 621 <object size="50%-128 0 50%+128 100%-2" name="buildTimeLabel" type="text" style="BuildNameText" ghost="true"> -
source/gui/scripting/ScriptFunctions.cpp
537 537 g_ConfigDB.WriteFile(CFG_USER); 538 538 } 539 539 540 unsigned int GetVersionNumber(void* UNUSED(cbdata)) 541 { 542 unsigned int versionNumber = 0; 543 CFG_GET_VAL("versionNumber", UnsignedInt, versionNumber); 544 return versionNumber; 545 } 540 546 547 std::string GetVersionNumberString(void* UNUSED(cbdata)) 548 { 549 std::string versionNumberString = ""; 550 CFG_GET_VAL("versionNumberString", String, versionNumberString); 551 return versionNumberString; 552 } 553 554 std::string GetVersionName(void* UNUSED(cbdata)) 555 { 556 std::string versionName = ""; 557 CFG_GET_VAL("versionName", String, versionName); 558 return versionName; 559 } 560 561 541 562 void SetUserReportEnabled(void* UNUSED(cbdata), bool enabled) 542 563 { 543 564 g_UserReporter.SetReportingEnabled(enabled); … … 721 742 scriptInterface.RegisterFunction<bool, &IsSplashScreenEnabled>("IsSplashScreenEnabled"); 722 743 scriptInterface.RegisterFunction<void, bool, &SetSplashScreenEnabled>("SetSplashScreenEnabled"); 723 744 745 // Version data functions 746 scriptInterface.RegisterFunction<unsigned int, &GetVersionNumber>("GetVersionNumber"); 747 scriptInterface.RegisterFunction<std::string, &GetVersionNumberString>("GetVersionNumberString"); 748 scriptInterface.RegisterFunction<std::string, &GetVersionName>("GetVersionName"); 749 724 750 // Development/debugging functions 725 751 scriptInterface.RegisterFunction<void, float, &SetSimRate>("SetSimRate"); 726 752 scriptInterface.RegisterFunction<float, &GetSimRate>("GetSimRate");