Add custom options menu
A dedicated menu for addons to insert their own options submenus
This commit is contained in:
parent
0a573d3c5c
commit
0fda4cf017
2 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ _(OP_ERASEDATA)
|
|||
_(OP_DISCORD)
|
||||
#endif
|
||||
|
||||
_(OP_CUSTOM)
|
||||
|
||||
// Extras
|
||||
_(SR_MAIN)
|
||||
_(SP_LEVELSTATS)
|
||||
|
|
|
|||
|
|
@ -4443,6 +4443,8 @@ void M_Options(INT32 choice)
|
|||
|
||||
M_SetItemStatus(MN_OP_GAME, "ENCORE", M_SecretUnlocked(SECRET_ENCORE) ? IT_CVAR|IT_STRING : IT_SECRET);
|
||||
|
||||
M_SetItemStatus(MN_OP_MAIN, "CUSTOM", !menudefs[MN_OP_CUSTOM]->numitems ? IT_GRAYEDOUT : IT_STRING|IT_SUBMENU);
|
||||
|
||||
M_EnterMenu(MN_OP_MAIN, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue