Index: src/ai/ai_gui.cpp =================================================================== --- src/ai/ai_gui.cpp (revision 27548) +++ src/ai/ai_gui.cpp (working copy) @@ -751,6 +751,23 @@ break; } break; + case WID_AIC_CONFIGURE: + switch (selected_slot) { + case OWNER_DEITY: + SetDParam(0, _game_mode == GM_NORMAL ? IsEditable(this->selected_slot) ? STR_AI_CONFIG_CONFIGURE_SETTINGS : STR_AI_CONFIG_CONFIGURE_CONFIGURE : STR_AI_CONFIG_CONFIGURE_CONFIGURE); + SetDParam(1, _game_mode == GM_NORMAL ? IsEditable(this->selected_slot) ? STR_AI_CONFIG_CONFIGURE_SETTINGS_TOOLTIP : STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP : STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP); + break; + + case INVALID_COMPANY: + SetDParam(0, STR_AI_CONFIG_CONFIGURE_CONFIGURE); + SetDParam(1, STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP); + break; + + default: + SetDParam(0, (_game_mode == GM_NORMAL && IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidID(this->selected_slot) && Company::IsValidAiID(this->selected_slot) && !Company::Get(this->selected_slot)->ai_instance->IsDead()) ? STR_AI_CONFIG_CONFIGURE_SETTINGS : STR_AI_CONFIG_CONFIGURE_CONFIGURE); + SetDParam(1, (_game_mode == GM_NORMAL && IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidID(this->selected_slot) && Company::IsValidAiID(this->selected_slot) && !Company::Get(this->selected_slot)->ai_instance->IsDead()) ? STR_AI_CONFIG_CONFIGURE_SETTINGS_TOOLTIP : STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP); + break; + } } } Index: src/lang/english.txt =================================================================== --- src/lang/english.txt (revision 27548) +++ src/lang/english.txt (working copy) @@ -3999,8 +3999,12 @@ STR_AI_CONFIG_CHANGE_AI :AI STR_AI_CONFIG_CHANGE_GAMESCRIPT :Game Script STR_AI_CONFIG_CHANGE_TOOLTIP :{BLACK}Load another script -STR_AI_CONFIG_CONFIGURE :{BLACK}Configure -STR_AI_CONFIG_CONFIGURE_TOOLTIP :{BLACK}Configure the parameters of the Script +STR_AI_CONFIG_CONFIGURE :{STRING} +STR_AI_CONFIG_CONFIGURE_TOOLTIP :{STRING} +STR_AI_CONFIG_CONFIGURE_CONFIGURE :{BLACK}Configure +STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP :{BLACK}Configure the parameters of the Script +STR_AI_CONFIG_CONFIGURE_SETTINGS :{BLACK}Settings +STR_AI_CONFIG_CONFIGURE_SETTINGS_TOOLTIP :{BLACK}Change the settings of the script # Available AIs window STR_AI_LIST_CAPTION :{WHITE}Available {STRING}