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

Function M_ClearMenus

source/common/menu/menu.cpp:877–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875//=============================================================================
876
877void M_ClearMenus()
878{
879 if (menuactive == MENU_Off) return;
880
881 transition.previous = transition.current = nullptr;
882 transition.dir = 0;
883
884 while (CurrentMenu != nullptr)
885 {
886 DMenu* parent = CurrentMenu->mParentMenu;
887 CurrentMenu->Destroy();
888 CurrentMenu = parent;
889 }
890 menuactive = MENU_Off;
891 if (CurrentScaleOverrider) delete CurrentScaleOverrider;
892 CurrentScaleOverrider = nullptr;
893 if (sysCallbacks.MenuClosed) sysCallbacks.MenuClosed();
894}
895
896//=============================================================================
897//

Callers 11

donewgameFunction · 0.85
StartLevelFunction · 0.85
MainLoopFunction · 0.85
M_SetSpecialMenuFunction · 0.85
CCMDFunction · 0.85
DeinitMenusFunction · 0.85
LoadSavegameMethod · 0.85
DoSaveMethod · 0.85
CloseMethod · 0.85
M_SetMenuFunction · 0.85
CCMDFunction · 0.85

Calls 2

DestroyMethod · 0.45
MenuClosedMethod · 0.45

Tested by

no test coverage detected