| 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 |
no test coverage detected