Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/RevealedMap.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/RevealedMap.js
Show All 11 Lines | GameSettingControls.RevealedMap = class RevealedMap extends GameSettingControlCheckbox | ||||
{ | { | ||||
this.setEnabled(g_GameSettings.map.type != "scenario"); | this.setEnabled(g_GameSettings.map.type != "scenario"); | ||||
this.setChecked(g_GameSettings.mapExploration.revealed); | this.setChecked(g_GameSettings.mapExploration.revealed); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.mapExploration.setRevealed(checked); | g_GameSettings.mapExploration.setRevealed(checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.RevealedMap.prototype.TitleCaption = | GameSettingControls.RevealedMap.prototype.TitleCaption = | ||||
// Translation: Make sure to differentiate between the revealed map and explored map settings! | // Translation: Make sure to differentiate between the revealed map and explored map settings! | ||||
translate("Revealed Map"); | translate("Revealed Map"); | ||||
GameSettingControls.RevealedMap.prototype.Tooltip = | GameSettingControls.RevealedMap.prototype.Tooltip = | ||||
// Translation: Make sure to differentiate between the revealed map and explored map settings! | // Translation: Make sure to differentiate between the revealed map and explored map settings! | ||||
translate("Toggle revealed map (see everything)."); | translate("Toggle revealed map (see everything)."); |
Wildfire Games · Phabricator