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

Method ScriptSettingsWindow

src/script/script_gui.cpp:306–313  ·  view source on GitHub ↗

* Constructor for the window. * @param desc The description of the window. * @param slot The company we're changing the settings for. */

Source from the content-addressed store, hash-verified

304 * @param slot The company we're changing the settings for.
305 */
306 ScriptSettingsWindow(WindowDesc &desc, CompanyID slot) : Window(desc), slot(slot)
307 {
308 this->CreateNestedTree();
309 this->vscroll = this->GetScrollbar(WID_SCRS_SCROLLBAR);
310 this->FinishInitNested(this->slot); // Initializes 'this->line_height' as side effect.
311
312 this->OnInvalidateData();
313 }
314
315 /**
316 * Rebuilds the list of visible settings. AI settings with the flag

Callers

nothing calls this directly

Calls 4

OnInvalidateDataMethod · 0.95
CreateNestedTreeMethod · 0.80
GetScrollbarMethod · 0.80
FinishInitNestedMethod · 0.80

Tested by

no test coverage detected