Ticket #4718: patch
File patch, 7.4 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/gui/common/gamedescription.js
function getGameDescription(extended = f 241 241 let isCaptureTheRelic = g_VictoryConditions.Name[victoryIdx] == "capture_the_relic"; 242 242 if (isCaptureTheRelic) 243 243 title = sprintf( 244 244 translatePluralWithContext( 245 245 "victory condition", 246 "Capture The Relic (%(min)s minute)",247 "Capture The Relic (%(min)s minutes)",246 "Capture the Relic (%(min)s minute)", 247 "Capture the Relic (%(min)s minutes)", 248 248 g_GameAttributes.settings.VictoryDuration 249 249 ), 250 250 { "min": g_GameAttributes.settings.VictoryDuration } 251 251 ); 252 252 -
binaries/data/mods/public/gui/common/settings.js
function loadAIDifficulties() 130 130 } 131 131 ]; 132 132 } 133 133 134 134 /** 135 * Loads available victory times for victory conditions like Wonder and Capture The Relic.135 * Loads available victory times for victory conditions like Wonder and Capture the Relic. 136 136 */ 137 137 function loadVictoryDuration() 138 138 { 139 139 var jsonFile = "victory_times.json"; 140 140 var json = Engine.ReadJSONFile(g_SettingsDirectory + jsonFile); -
binaries/data/mods/public/gui/pregame/mainmenu.xml
451 451 style="StoneButtonFancy" 452 452 type="button" 453 453 size="4 4 100%-4 32" 454 454 tooltip_style="pgToolTip" 455 455 > 456 <translatableAttribute id="caption">Learn To Play</translatableAttribute>456 <translatableAttribute id="caption">Learn to Play</translatableAttribute> 457 457 <translatableAttribute id="tooltip">Learn how to play, start the tutorial, discover the technology trees, and the history behind the civilizations</translatableAttribute> 458 458 <action on="Press"> 459 459 closeMenu(); 460 460 openMenu("submenuLearn", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4); 461 461 </action> … … 534 534 ghost="true" 535 535 > 536 536 <!-- IMPORTANT: remember to update session/top_panel/label.xml in sync with this: --> 537 537 <attribute id="caption"> 538 538 <keep>[font="sans-bold-16"]</keep> 539 <translate>Alpha XXII : Venustas</translate>539 <translate>Alpha XXIII: Ken Wood</translate> 540 540 <keep>[/font]\n\n</keep> 541 541 <translate>WARNING: This is an early development version of the game. Many features have not been added yet.</translate> 542 542 </attribute> 543 543 </object> 544 544 -
binaries/data/mods/public/gui/session/chat_window.xml
41 41 42 42 <!-- Chat input elements --> 43 43 <object name="chatPage" size="0 100%-120 100% 100%"> 44 44 45 45 <!-- Message addressee --> 46 <object size="16 100%-106 50 100%-82" type="text" style="ModernLeftLabelText">46 <object size="16 100%-106 70 100%-82" type="text" style="ModernLeftLabelText"> 47 47 <translatableAttribute id="caption" context="chat input">To:</translatableAttribute> 48 48 </object> 49 49 <object 50 50 name="chatAddressee" 51 51 type="dropdown" … … 55 55 > 56 56 <translatableAttribute id="tooltip" context="chat input">Select chat addressee.</translatableAttribute> 57 57 </object> 58 58 59 59 <!-- Message text --> 60 <object type="text" size="16 100%-74 50 100%-50" style="ModernLeftLabelText">60 <object type="text" size="16 100%-74 70 100%-50" style="ModernLeftLabelText"> 61 61 <translatableAttribute id="caption" context="chat input">Text:</translatableAttribute> 62 62 </object> 63 63 <object 64 64 type="input" 65 65 name="chatInput" -
binaries/data/mods/public/gui/session/top_panel/label.xml
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <object size="50%+20 0 100%-226 100%" name="alphaLabel" type="text" style="ModernLabelText" text_valign="top" ghost="true"> 3 3 <!-- IMPORTANT: remember to update pregame/mainmenu.xml in sync with this: --> 4 <translatableAttribute id="caption">ALPHA XXII : Venustas</translatableAttribute>4 <translatableAttribute id="caption">ALPHA XXIII : Ken Wood</translatableAttribute> 5 5 6 6 <!-- Displays build date and revision number--> 7 7 <object size="50%-128 0 50%+128 100%-2" name="buildTimeLabel" type="text" style="BuildNameText" ghost="true"> 8 8 <action on="Load">this.caption = getBuildString()</action> 9 9 </object> -
binaries/data/mods/public/maps/scripts/CaptureTheRelic.js
Trigger.prototype.StartCaptureTheRelicCo 125 125 let captureTheRelicDuration = cmpEndGameManager.GetGameTypeSettings().victoryDuration || 0; 126 126 127 127 let isTeam = playerAndAllies.length > 1; 128 128 this.ownRelicsVictoryMessage = cmpGuiInterface.AddTimeNotification({ 129 129 "message": isTeam ? 130 markForTranslation("%(player)s's team has captured all relics and will have won in %(time)s") :131 markForTranslation("%(player)s has captured all relics and will have won in %(time)s"),130 markForTranslation("%(player)s's team has captured all relics and will win in %(time)s.") : 131 markForTranslation("%(player)s has captured all relics and will win in %(time)s."), 132 132 "players": others, 133 133 "parameters": { 134 134 "player": cmpPlayer.GetName() 135 135 }, 136 136 "translateMessage": true, 137 137 "translateParameters": [] 138 138 }, captureTheRelicDuration); 139 139 140 140 this.othersRelicsVictoryMessage = cmpGuiInterface.AddTimeNotification({ 141 141 "message": isTeam ? 142 markForTranslation("Your team has captured all relics and will have won in %(time)s") :143 markForTranslation("You have captured all relics and will have won in %(time)s"),142 markForTranslation("Your team has captured all relics and will win in %(time)s.") : 143 markForTranslation("You have captured all relics and will win in %(time)s."), 144 144 "players": playerAndAllies, 145 145 "translateMessage": true 146 146 }, captureTheRelicDuration); 147 147 148 148 this.relicsVictoryTimer = cmpTimer.SetTimeout(SYSTEM_ENTITY, IID_Trigger, -
binaries/data/mods/public/simulation/data/settings/victory_conditions/capture_the_relic.json
1 1 { 2 2 "TranslatedKeys": ["Title", "Description"], 3 3 "Data": 4 4 { 5 "Title": "Capture The Relic",5 "Title": "Capture the Relic", 6 6 "Description": "Capture all relics spread across the map and keep them for a certain time to win the game.", 7 7 "Scripts": 8 8 [ 9 9 "scripts/TriggerHelper.js", 10 10 "scripts/ConquestCommon.js",