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

Method IsEditableItem

src/script/script_gui.cpp:539–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538private:
539 bool IsEditableItem(const ScriptConfigItem &config_item) const
540 {
541 return _game_mode == GM_MENU
542 || _game_mode == GM_EDITOR
543 || ((this->slot != OWNER_DEITY) && !Company::IsValidID(this->slot))
544 || config_item.flags.Test(ScriptConfigFlag::InGame)
545 || _settings_client.gui.ai_developer_tools;
546 }
547
548 void SetValue(int value)
549 {

Callers 2

DrawWidgetMethod · 0.95
OnClickMethod · 0.95

Calls 1

TestMethod · 0.80

Tested by

no test coverage detected