| 546 | } |
| 547 | |
| 548 | void SetValue(int value) |
| 549 | { |
| 550 | const ScriptConfigItem &config_item = *this->visible_settings[this->clicked_row]; |
| 551 | if (_game_mode == GM_NORMAL && ((this->slot == OWNER_DEITY) || Company::IsValidID(this->slot)) && !config_item.flags.Test(ScriptConfigFlag::InGame)) return; |
| 552 | this->script_config->SetSetting(config_item.name, value); |
| 553 | this->SetDirty(); |
| 554 | } |
| 555 | }; |
| 556 | |
| 557 | /** Widgets for the Script settings window. */ |
no test coverage detected