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