- redo the menu a bit, add in some C++ support code to make it a little bit more flexible
- further tweaks. reduce clutter in custom resolution submenu by moving it to another - add 'prevmenu' ccmd
This commit is contained in:
parent
68bd618aaa
commit
bd1e484c1e
5 changed files with 148 additions and 23 deletions
|
|
@ -853,6 +853,22 @@ void M_ClearMenus()
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
void M_PreviousMenu()
|
||||
{
|
||||
if (CurrentMenu != nullptr)
|
||||
{
|
||||
DMenu* parent = CurrentMenu->mParentMenu;
|
||||
CurrentMenu->Destroy();
|
||||
CurrentMenu = parent;
|
||||
}
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
void M_Init (void)
|
||||
{
|
||||
try
|
||||
|
|
@ -1032,6 +1048,11 @@ CCMD (closemenu)
|
|||
M_ClearMenus();
|
||||
}
|
||||
|
||||
CCMD (prevmenu)
|
||||
{
|
||||
M_PreviousMenu();
|
||||
}
|
||||
|
||||
//
|
||||
// Toggle messages on/off
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue