Old revision #pmbdhv4ft | New revision #phjlypvuw | ||
---|---|---|---|
2 | =================================================================== | 2 | =================================================================== |
3 | --- src/ai/ai_gui.cpp (revision 27548) | 3 | --- src/ai/ai_gui.cpp (revision 27548) |
4 | +++ src/ai/ai_gui.cpp (working copy) | 4 | +++ src/ai/ai_gui.cpp (working copy) |
5 | @@ -751,6 +751,2 | 5 | @@ -751,6 +751,20 @@ |
6 | break; | 6 | break; |
7 | } | 7 | } |
8 | break; | 8 | break; |
9 | + case WID_AIC_CONFIGURE: | 9 | + case WID_AIC_CONFIGURE: |
10 | + switch (selected_slot) { | 10 | + switch (selected_slot) { |
11 | + case OWNER_DEITY: | 11 | + case OWNER_DEITY: |
12 | + 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); | 12 | + |
13 | + 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); | ||
14 | + break; | 13 | + break; |
15 | + | 14 | + |
16 | + case INVALID_COMPANY: | 15 | + case INVALID_COMPANY: |
17 | + SetDParam(0, STR_AI_CONFIG_CONFIGURE_CONFIGURE); | 17 | + |
18 | + SetDParam(1, STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP); | ||
19 | + break; | 17 | + break; |
20 | + | 18 | + |
21 | + default: | 19 | + default: |
22 | + 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); | 22 | + |
23 | + 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); | 23 | + break; |
24 | + break; | ||
25 | + } | 22 | + } |
26 | } | 23 | } |
27 | } | 27 | } |
28 | |||
29 | Index: src/lang/english.txt | ||
30 | =================================================================== | ||
31 | --- src/lang/english.txt (revision 27548) | ||
32 | +++ src/lang/english.txt (working copy) | ||
33 | @@ -3999,8 +3999,12 @@ | ||
34 | STR_AI_CONFIG_CHANGE_AI :AI | ||
35 | STR_AI_CONFIG_CHANGE_GAMESCRIPT :Game Script | ||
36 | STR_AI_CONFIG_CHANGE_TOOLTIP :{BLACK}Load another script | ||
37 | -STR_AI_CONFIG_CONFIGURE :{BLACK}Configure | ||
38 | -STR_AI_CONFIG_CONFIGURE_TOOLTIP :{BLACK}Configure the parameters of the Script | ||
39 | +STR_AI_CONFIG_CONFIGURE :{STRING} | ||
40 | +STR_AI_CONFIG_CONFIGURE_TOOLTIP :{STRING} | ||
41 | +STR_AI_CONFIG_CONFIGURE_CONFIGURE :{BLACK}Configure | ||
42 | +STR_AI_CONFIG_CONFIGURE_CONFIGURE_TOOLTIP :{BLACK}Configure the parameters of the Script | ||
43 | +STR_AI_CONFIG_CONFIGURE_SETTINGS :{BLACK}Settings | ||
44 | +STR_AI_CONFIG_CONFIGURE_SETTINGS_TOOLTIP :{BLACK}Change the settings of the script | ||
45 | |||
46 | # Available AIs window | ||
47 | STR_AI_LIST_CAPTION :{WHITE}Available {STRING} |