MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_RemoveAllWindows

Function ui_RemoveAllWindows

ui/UISystem.cpp:371–381  ·  view source on GitHub ↗

removes a window from ui list.if topmost, the next topmost window has focus.

Source from the content-addressed store, hash-verified

369}
370// removes a window from ui list.if topmost, the next topmost window has focus.
371void ui_RemoveAllWindows() {
372 int count = 0;
373 while (UIWindowTail) {
374 ui_RemoveWindow(UIWindowTail->wnd);
375 count++;
376 ASSERT(count < 50);
377 }
378 if (count) {
379 mprintf(0, "%d UI windows left open. Closed them!\n", count);
380 }
381}
382// removes a window from ui list.
383void ui_RemoveWindow(UIWindow *wnd) {
384 tUIWindowNode *node = UIWindowList;

Callers 3

ui_CloseFunction · 0.85
QuickPlayGameFunction · 0.85
PlayGameFunction · 0.85

Calls 1

ui_RemoveWindowFunction · 0.85

Tested by

no test coverage detected