Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/AIConfigPage/Controls/AISelection.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/AIConfigPage/Controls/AISelection.js
Show All 25 Lines | if (!!ai) | ||||
this.setSelectedValue(ai.bot); | this.setSelectedValue(ai.bot); | ||||
else | else | ||||
this.setSelectedValue(undefined); | this.setSelectedValue(undefined); | ||||
} | } | ||||
onSelectionChange(itemIdx) | onSelectionChange(itemIdx) | ||||
{ | { | ||||
g_GameSettings.playerAI.setAI(this.playerIndex, this.dropdown.list_data[itemIdx]); | g_GameSettings.playerAI.setAI(this.playerIndex, this.dropdown.list_data[itemIdx]); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
AIGameSettingControls.AISelection.prototype.NoAI = { | AIGameSettingControls.AISelection.prototype.NoAI = { | ||||
"Title": translateWithContext("ai", "None"), | "Title": translateWithContext("ai", "None"), | ||||
"Id": undefined | "Id": undefined | ||||
}; | }; | ||||
AIGameSettingControls.AISelection.prototype.TitleCaption = | AIGameSettingControls.AISelection.prototype.TitleCaption = | ||||
translate("AI Player"); | translate("AI Player"); |
Wildfire Games · Phabricator