MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetValue

Method SetValue

src/game/game_gui.cpp:415–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 void SetValue(int value)
416 {
417 const ScriptConfigItem &config_item = *this->visible_settings[this->clicked_row];
418 if (_game_mode == GM_NORMAL && !config_item.flags.Test(ScriptConfigFlag::InGame)) return;
419 this->gs_config->SetSetting(config_item.name, value);
420 this->SetDirty();
421 }
422};
423
424/** Open the GS config window. */

Callers 2

OnQueryTextFinishedMethod · 0.95
OnDropdownSelectMethod · 0.95

Calls 3

TestMethod · 0.80
SetSettingMethod · 0.80
SetDirtyMethod · 0.45

Tested by

no test coverage detected