mirror of https://github.com/OpenTTD/OpenTTD
(svn r23589) -Codechange: Make the AI-start-delay setting translateable.
parent
33d283fdb1
commit
6ae8cac432
|
@ -19,7 +19,7 @@
|
||||||
/** Configuration for AI start date, every AI has this setting. */
|
/** Configuration for AI start date, every AI has this setting. */
|
||||||
ScriptConfigItem _start_date_config = {
|
ScriptConfigItem _start_date_config = {
|
||||||
"start_date",
|
"start_date",
|
||||||
"Number of days to start this AI after the previous one (give or take)",
|
"", // STR_AI_SETTINGS_START_DELAY
|
||||||
AI::START_NEXT_MIN,
|
AI::START_NEXT_MIN,
|
||||||
AI::START_NEXT_MAX,
|
AI::START_NEXT_MAX,
|
||||||
AI::START_NEXT_MEDIUM,
|
AI::START_NEXT_MEDIUM,
|
||||||
|
|
|
@ -338,8 +338,14 @@ struct AISettingsWindow : public Window {
|
||||||
TextColour colour;
|
TextColour colour;
|
||||||
uint idx = 0;
|
uint idx = 0;
|
||||||
if (StrEmpty(config_item.description)) {
|
if (StrEmpty(config_item.description)) {
|
||||||
str = STR_JUST_STRING;
|
if (!strcmp(config_item.name, "start_date")) {
|
||||||
colour = TC_ORANGE;
|
/* Build-in translation */
|
||||||
|
str = STR_AI_SETTINGS_START_DELAY;
|
||||||
|
colour = TC_LIGHT_BLUE;
|
||||||
|
} else {
|
||||||
|
str = STR_JUST_STRING;
|
||||||
|
colour = TC_ORANGE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
str = STR_AI_SETTINGS_SETTING;
|
str = STR_AI_SETTINGS_SETTING;
|
||||||
colour = TC_LIGHT_BLUE;
|
colour = TC_LIGHT_BLUE;
|
||||||
|
|
|
@ -3504,6 +3504,7 @@ STR_AI_SETTINGS_CAPTION :{WHITE}AI Param
|
||||||
STR_AI_SETTINGS_CLOSE :{BLACK}Close
|
STR_AI_SETTINGS_CLOSE :{BLACK}Close
|
||||||
STR_AI_SETTINGS_RESET :{BLACK}Reset
|
STR_AI_SETTINGS_RESET :{BLACK}Reset
|
||||||
STR_AI_SETTINGS_SETTING :{RAW_STRING}: {ORANGE}{STRING1}
|
STR_AI_SETTINGS_SETTING :{RAW_STRING}: {ORANGE}{STRING1}
|
||||||
|
STR_AI_SETTINGS_START_DELAY :Number of days to start this AI after the previous one (give or take): {ORANGE}{STRING1}
|
||||||
|
|
||||||
# Vehicle loading indicators
|
# Vehicle loading indicators
|
||||||
STR_PERCENT_UP_SMALL :{TINY_FONT}{WHITE}{NUM}%{UP_ARROW}
|
STR_PERCENT_UP_SMALL :{TINY_FONT}{WHITE}{NUM}%{UP_ARROW}
|
||||||
|
|
Loading…
Reference in New Issue