Differential D4319 Diff 19038 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
Context not available. | |||||
this.setTitle(victoryCondition.Title); | this.setTitle(victoryCondition.Title); | ||||
this.setTooltip(victoryCondition.Description); | this.setTooltip(victoryCondition.Description); | ||||
g_GameSettings.victoryConditions.watch(() => this.render(), ["active"]); | g_GameSettings.victoryConditions.watch(() => this.render(), ["active", "hidden"]); | ||||
g_GameSettings.map.watch(() => this.render(), ["type"]); | g_GameSettings.map.watch(() => this.render(), ["type"]); | ||||
this.render(); | this.render(); | ||||
} | } | ||||
Context not available. | |||||
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)); | ||||
this.setHidden(g_GameSettings.victoryConditions.hidden.has(this.victoryCondition)); | |||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
Context not available. |
Wildfire Games · Phabricator