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

Method GSConfigWindow

src/game/game_gui.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 VisibleSettingsList visible_settings{}; ///< List of visible GS settings
100
101 GSConfigWindow() : Window(_gs_config_desc)
102 {
103 this->gs_config = GameConfig::GetConfig();
104
105 this->CreateNestedTree(); // Initializes 'this->line_height' as a side effect.
106 this->vscroll = this->GetScrollbar(WID_GSC_SCROLLBAR);
107 this->FinishInitNested(WN_GAME_OPTIONS_GS);
108 this->OnInvalidateData(0);
109
110 this->RebuildVisibleSettings();
111 }
112
113 void Close([[maybe_unused]] int data = 0) override
114 {

Callers

nothing calls this directly

Calls 6

OnInvalidateDataMethod · 0.95
GetConfigFunction · 0.85
CreateNestedTreeMethod · 0.80
GetScrollbarMethod · 0.80
FinishInitNestedMethod · 0.80

Tested by

no test coverage detected