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

Method OnInitialPosition

src/transparency_gui.cpp:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 Point OnInitialPosition([[maybe_unused]] int16_t sm_width, [[maybe_unused]] int16_t sm_height, [[maybe_unused]] int window_number) override
109 {
110 Point pt = GetToolbarAlignedWindowPosition(sm_width);
111 pt.y += 2 * (sm_height - this->GetWidget<NWidgetBase>(WID_TT_BUTTONS)->current_y);
112 return pt;
113 }
114
115 /**
116 * Some data on this window has become invalid.

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected