Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/LastManStanding.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/LastManStanding.js
Show All 12 Lines | render() | ||||
this.setChecked(g_GameSettings.lastManStanding.enabled); | this.setChecked(g_GameSettings.lastManStanding.enabled); | ||||
this.setEnabled(g_GameSettings.map.type != "scenario" && | this.setEnabled(g_GameSettings.map.type != "scenario" && | ||||
g_GameSettings.lastManStanding.available); | g_GameSettings.lastManStanding.available); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.lastManStanding.setEnabled(checked); | g_GameSettings.lastManStanding.setEnabled(checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.LastManStanding.prototype.TitleCaption = | GameSettingControls.LastManStanding.prototype.TitleCaption = | ||||
translate("Last Man Standing"); | translate("Last Man Standing"); | ||||
GameSettingControls.LastManStanding.prototype.Tooltip = | GameSettingControls.LastManStanding.prototype.Tooltip = | ||||
translate("Toggle whether the last remaining player or the last remaining set of allies wins."); | translate("Toggle whether the last remaining player or the last remaining set of allies wins."); |
Wildfire Games · Phabricator