Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/VictoryConditionCheckbox.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/VictoryConditionCheckbox.js
Show All 20 Lines | render() | ||||
this.setEnabled(g_GameSettings.map.type != "scenario" && | this.setEnabled(g_GameSettings.map.type != "scenario" && | ||||
!g_GameSettings.victoryConditions.disabled.has(this.victoryCondition)); | !g_GameSettings.victoryConditions.disabled.has(this.victoryCondition)); | ||||
this.setChecked(g_GameSettings.victoryConditions.active.has(this.victoryCondition)); | this.setChecked(g_GameSettings.victoryConditions.active.has(this.victoryCondition)); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.victoryConditions.setEnabled(this.victoryCondition, checked); | g_GameSettings.victoryConditions.setEnabled(this.victoryCondition, checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
} | } |
Wildfire Games · Phabricator