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

Method OnInitialPosition

src/dock_gui.cpp:253–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252
253 Point OnInitialPosition(int16_t sm_width, [[maybe_unused]] int16_t sm_height, [[maybe_unused]] int window_number) override
254 {
255 return AlignInitialConstructionToolbar(sm_width);
256 }
257
258 void OnPlaceMouseUp([[maybe_unused]] ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, [[maybe_unused]] Point pt, TileIndex start_tile, TileIndex end_tile) override
259 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected