Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/AIConfigPage/Controls/AIDifficulty.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/AIConfigPage/Controls/AIDifficulty.js
Show All 15 Lines | render() | ||||
this.setHidden(!ai); | this.setHidden(!ai); | ||||
if (!!ai) | if (!!ai) | ||||
this.setSelectedValue(ai.difficulty); | this.setSelectedValue(ai.difficulty); | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.playerAI.setDifficulty(this.playerIndex, this.dropdown.list_data[itemIdx]); | g_GameSettings.playerAI.setDifficulty(this.playerIndex, this.dropdown.list_data[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
AIGameSettingControls.AIDifficulty.prototype.ConfigDifficulty = | AIGameSettingControls.AIDifficulty.prototype.ConfigDifficulty = | ||||
"gui.gamesetup.aidifficulty"; | "gui.gamesetup.aidifficulty"; | ||||
AIGameSettingControls.AIDifficulty.prototype.TitleCaption = | AIGameSettingControls.AIDifficulty.prototype.TitleCaption = | ||||
translate("AI Difficulty"); | translate("AI Difficulty"); |
Wildfire Games · Phabricator