| 10 | NetStartWindow* NetStartWindow::Instance = nullptr; |
| 11 | |
| 12 | void NetStartWindow::ShowNetStartPane(const char* message, int maxpos) |
| 13 | { |
| 14 | Size screenSize = GetScreenSize(); |
| 15 | double windowWidth = 300.0; |
| 16 | double windowHeight = 150.0; |
| 17 | |
| 18 | if (!Instance) |
| 19 | { |
| 20 | Instance = new NetStartWindow(); |
| 21 | Instance->SetFrameGeometry((screenSize.width - windowWidth) * 0.5, (screenSize.height - windowHeight) * 0.5, windowWidth, windowHeight); |
| 22 | Instance->Show(); |
| 23 | } |
| 24 | |
| 25 | Instance->SetMessage(message, maxpos); |
| 26 | } |
| 27 | |
| 28 | void NetStartWindow::HideNetStartPane() |
| 29 | { |
nothing calls this directly
no test coverage detected