Differential D2982 Diff 13468 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
GameSettingControls.ExploredMap = class extends GameSettingControlCheckbox | GameSettingControls.ExploredMap = class extends GameSettingControlCheckbox | ||||
{ | { | ||||
onMapChange(mapData) | onMapChange(mapData) | ||||
{ | { | ||||
let mapValue = | let mapValue; | ||||
mapData && | if (mapData && | ||||
mapData.settings && | mapData.settings && | ||||
mapData.settings.ExploreMap || undefined; | mapData.settings.ExploreMap !== undefined) | ||||
mapValue = mapData.settings.ExploreMap; | |||||
if (mapValue !== undefined && mapValue != g_GameAttributes.settings.ExploreMap) | if (mapValue !== undefined && mapValue != g_GameAttributes.settings.ExploreMap) | ||||
{ | { | ||||
g_GameAttributes.settings.ExploreMap = mapValue; | g_GameAttributes.settings.ExploreMap = mapValue; | ||||
this.gameSettingsControl.updateGameAttributes(); | this.gameSettingsControl.updateGameAttributes(); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator