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