Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/TriggerDifficulty.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/TriggerDifficulty.js
Show All 27 Lines | render() | ||||
this.dropdown.list_data = this.values.Difficulty; | this.dropdown.list_data = this.values.Difficulty; | ||||
this.setSelectedValue(g_GameSettings.triggerDifficulty.value); | this.setSelectedValue(g_GameSettings.triggerDifficulty.value); | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.triggerDifficulty.setValue(this.values.Difficulty[itemIdx]); | g_GameSettings.triggerDifficulty.setValue(this.values.Difficulty[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.TriggerDifficulty.prototype.TitleCaption = | GameSettingControls.TriggerDifficulty.prototype.TitleCaption = | ||||
translate("Difficulty"); | translate("Difficulty"); | ||||
GameSettingControls.TriggerDifficulty.prototype.Tooltip = | GameSettingControls.TriggerDifficulty.prototype.Tooltip = | ||||
translate("Select the difficulty of this scenario."); | translate("Select the difficulty of this scenario."); |
Wildfire Games · Phabricator