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

Function SignSmallOpen

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

* * rct2: 0x6E5F52 */

Source from the content-addressed store, hash-verified

355 * rct2: 0x6E5F52
356 */
357 WindowBase* SignSmallOpen(WindowNumber number)
358 {
359 auto* windowMgr = GetWindowManager();
360 auto* w = static_cast<SignWindow*>(windowMgr->BringToFrontByNumber(WindowClass::banner, number));
361
362 if (w != nullptr)
363 return w;
364
365 w = windowMgr->Create<SignWindow>(WindowClass::banner, kWindowSize, {});
366
367 if (w == nullptr)
368 return nullptr;
369
370 bool result = w->initialise(number, true);
371 if (result != true)
372 return nullptr;
373
374 return w;
375 }
376} // namespace OpenRCT2::Ui::Windows

Callers 1

openDetailsMethod · 0.85

Calls 3

GetWindowManagerFunction · 0.85
BringToFrontByNumberMethod · 0.45
initialiseMethod · 0.45

Tested by

no test coverage detected