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

Function M_Drawer

source/common/menu/menu.cpp:841–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839//=============================================================================
840
841void M_Drawer (void)
842{
843 PalEntry fade = 0;
844
845 if (CurrentMenu != nullptr && menuactive != MENU_Off)
846 {
847 if (!CurrentMenu->DontBlur) screen->BlurScene(menuBlurAmount);
848 if (!CurrentMenu->DontDim)
849 {
850 if (sysCallbacks.MenuDim) sysCallbacks.MenuDim();
851 }
852 bool going = false;
853 if (transition.previous)
854 {
855 going = transition.Draw();
856 if (!going)
857 {
858 if (transition.dir == -1) delete transition.previous;
859 transition.previous = nullptr;
860 transition.current = nullptr;
861 }
862 }
863 if (!going)
864 {
865 CurrentMenu->CallDrawer();
866 }
867 }
868}
869
870
871//=============================================================================

Callers 1

DrawOverlaysFunction · 0.85

Calls 3

CallDrawerMethod · 0.80
BlurSceneMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected