|
|
@ -393,14 +393,14 @@ struct ScriptSettingsWindow : public Window {
|
|
|
|
TextColour colour;
|
|
|
|
TextColour colour;
|
|
|
|
uint idx = 0;
|
|
|
|
uint idx = 0;
|
|
|
|
if (config_item.description.empty()) {
|
|
|
|
if (config_item.description.empty()) {
|
|
|
|
if (this->slot != OWNER_DEITY && !Company::IsValidID(this->slot) && config_item.random_deviation != 0 && !GetGameSettings().script.script_disable_param_randomisation) {
|
|
|
|
if (this->slot != OWNER_DEITY && !Company::IsValidID(this->slot) && config_item.random_deviation != 0) {
|
|
|
|
str = STR_AI_SETTINGS_JUST_DEVIATION;
|
|
|
|
str = STR_AI_SETTINGS_JUST_DEVIATION;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
str = STR_JUST_STRING1;
|
|
|
|
str = STR_JUST_STRING1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
colour = TC_ORANGE;
|
|
|
|
colour = TC_ORANGE;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (this->slot != OWNER_DEITY && !Company::IsValidID(this->slot) && config_item.random_deviation != 0 && !GetGameSettings().script.script_disable_param_randomisation) {
|
|
|
|
if (this->slot != OWNER_DEITY && !Company::IsValidID(this->slot) && config_item.random_deviation != 0) {
|
|
|
|
str = STR_AI_SETTINGS_SETTING_DEVIATION;
|
|
|
|
str = STR_AI_SETTINGS_SETTING_DEVIATION;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
str = STR_AI_SETTINGS_SETTING;
|
|
|
|
str = STR_AI_SETTINGS_SETTING;
|
|
|
@ -419,7 +419,7 @@ struct ScriptSettingsWindow : public Window {
|
|
|
|
DrawArrowButtons(br.left, y + button_y_offset, COLOUR_YELLOW, (this->clicked_button == i) ? 1 + (this->clicked_increase != rtl) : 0, editable && current_value > config_item.min_value, editable && current_value < config_item.max_value);
|
|
|
|
DrawArrowButtons(br.left, y + button_y_offset, COLOUR_YELLOW, (this->clicked_button == i) ? 1 + (this->clicked_increase != rtl) : 0, editable && current_value > config_item.min_value, editable && current_value < config_item.max_value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this->slot == OWNER_DEITY || Company::IsValidID(this->slot) || config_item.random_deviation == 0 || GetGameSettings().script.script_disable_param_randomisation) {
|
|
|
|
if (this->slot == OWNER_DEITY || Company::IsValidID(this->slot) || config_item.random_deviation == 0) {
|
|
|
|
auto config_iterator = config_item.labels.find(current_value);
|
|
|
|
auto config_iterator = config_item.labels.find(current_value);
|
|
|
|
if (config_iterator != config_item.labels.end()) {
|
|
|
|
if (config_iterator != config_item.labels.end()) {
|
|
|
|
SetDParam(idx++, STR_JUST_RAW_STRING);
|
|
|
|
SetDParam(idx++, STR_JUST_RAW_STRING);
|
|
|
|