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

Function PlayerOpen

src/openrct2-ui/windows/Player.cpp:621–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 };
620
621 WindowBase* PlayerOpen(uint8_t id)
622 {
623 auto* windowMgr = GetWindowManager();
624 auto* window = static_cast<PlayerWindow*>(windowMgr->BringToFrontByNumber(WindowClass::player, id));
625 if (window == nullptr)
626 {
627 window = windowMgr->Create<PlayerWindow>(WindowClass::player, { 240, 170 }, WindowFlag::resizable);
628 }
629
630 window->init(id);
631
632 return window;
633 }
634} // namespace OpenRCT2::Ui::Windows

Callers 2

openDetailsMethod · 0.85
onScrollMouseDownMethod · 0.85

Calls 3

GetWindowManagerFunction · 0.85
BringToFrontByNumberMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected