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

Method OnInit

src/console_gui.cpp:162–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161
162 void OnInit() override
163 {
164 this->line_height = GetCharacterHeight(FS_NORMAL) + WidgetDimensions::scaled.hsep_normal;
165 this->line_offset = GetStringBoundingBox("] ").width + WidgetDimensions::scaled.frametext.left;
166 this->cursor_width = GetCharacterWidth(FS_NORMAL, '_');
167 }
168
169 void Close([[maybe_unused]] int data = 0) override
170 {

Callers

nothing calls this directly

Calls 3

GetCharacterHeightFunction · 0.85
GetStringBoundingBoxFunction · 0.85
GetCharacterWidthFunction · 0.85

Tested by

no test coverage detected