Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/Spies.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/Spies.js
Show All 12 Lines | GameSettingControls.Spies = class Spies extends GameSettingControlCheckbox | ||||
{ | { | ||||
this.setEnabled(g_GameSettings.map.type != "scenario"); | this.setEnabled(g_GameSettings.map.type != "scenario"); | ||||
this.setChecked(g_GameSettings.disableSpies.enabled); | this.setChecked(g_GameSettings.disableSpies.enabled); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.disableSpies.setEnabled(checked); | g_GameSettings.disableSpies.setEnabled(checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.Spies.prototype.TitleCaption = | GameSettingControls.Spies.prototype.TitleCaption = | ||||
translate("Disable Spies"); | translate("Disable Spies"); | ||||
GameSettingControls.Spies.prototype.Tooltip = | GameSettingControls.Spies.prototype.Tooltip = | ||||
translate("Disable spies during the game."); | translate("Disable spies during the game."); |
Wildfire Games · Phabricator