MCPcopy Create free account
hub / github.com/ZDoom/Raze / ShowNetStartPane

Method ShowNetStartPane

source/common/widgets/netstartwindow.cpp:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10NetStartWindow* NetStartWindow::Instance = nullptr;
11
12void 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
28void NetStartWindow::HideNetStartPane()
29{

Callers

nothing calls this directly

Calls 3

SetFrameGeometryMethod · 0.45
ShowMethod · 0.45
SetMessageMethod · 0.45

Tested by

no test coverage detected