Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/ExploredMap.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/ExploredMap.js
Show All 11 Lines | GameSettingControls.ExploredMap = class ExploredMap extends GameSettingControlCheckbox | ||||
{ | { | ||||
this.setEnabled(g_GameSettings.map.type != "scenario"); | this.setEnabled(g_GameSettings.map.type != "scenario"); | ||||
this.setChecked(g_GameSettings.mapExploration.explored); | this.setChecked(g_GameSettings.mapExploration.explored); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.mapExploration.setExplored(checked); | g_GameSettings.mapExploration.setExplored(checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.ExploredMap.prototype.TitleCaption = | GameSettingControls.ExploredMap.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("Explored Map"); | translate("Explored Map"); | ||||
GameSettingControls.ExploredMap.prototype.Tooltip = | GameSettingControls.ExploredMap.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 explored map (see initial map)."); | translate("Toggle explored map (see initial map)."); |
Wildfire Games · Phabricator