Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Sliders/Ceasefire.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Sliders/Ceasefire.js
Show All 21 Lines | this.setSelectedValue(g_GameSettings.ceasefire.value, | ||||
value == 0 ? | value == 0 ? | ||||
this.NoCeasefireCaption : | this.NoCeasefireCaption : | ||||
sprintf(this.CeasefireCaption(value), this.sprintfValue)); | sprintf(this.CeasefireCaption(value), this.sprintfValue)); | ||||
} | } | ||||
onValueChange(value) | onValueChange(value) | ||||
{ | { | ||||
g_GameSettings.ceasefire.setValue(value); | g_GameSettings.ceasefire.setValue(value); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.Ceasefire.prototype.TitleCaption = | GameSettingControls.Ceasefire.prototype.TitleCaption = | ||||
translate("Ceasefire"); | translate("Ceasefire"); | ||||
GameSettingControls.Ceasefire.prototype.Tooltip = | GameSettingControls.Ceasefire.prototype.Tooltip = | ||||
translate("Set time where no attacks are possible."); | translate("Set time where no attacks are possible."); | ||||
Show All 12 Lines |
Wildfire Games · Phabricator