MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SignOpen

Function SignOpen

src/openrct2-ui/windows/Sign.cpp:333–351  ·  view source on GitHub ↗

* * rct2: 0x006BA305 */

Source from the content-addressed store, hash-verified

331 * rct2: 0x006BA305
332 */
333 WindowBase* SignOpen(WindowNumber number)
334 {
335 auto* windowMgr = GetWindowManager();
336 auto* w = static_cast<SignWindow*>(windowMgr->BringToFrontByNumber(WindowClass::banner, number));
337
338 if (w != nullptr)
339 return w;
340
341 w = windowMgr->Create<SignWindow>(WindowClass::banner, kWindowSize, {});
342
343 if (w == nullptr)
344 return nullptr;
345
346 bool result = w->initialise(number, false);
347 if (result != true)
348 return nullptr;
349
350 return w;
351 }
352
353 /**
354 *

Callers 1

openDetailsMethod · 0.85

Calls 3

GetWindowManagerFunction · 0.85
BringToFrontByNumberMethod · 0.45
initialiseMethod · 0.45

Tested by

no test coverage detected