- made the sinmple options menu switchable.
Also ensure that custom mods pick up the simple version if enabled.
This commit is contained in:
parent
d0f9ccb09a
commit
54f85d4caa
4 changed files with 19 additions and 4 deletions
|
|
@ -71,6 +71,8 @@ EXTERN_CVAR(Bool, saveloadconfirmation) // [mxd]
|
|||
EXTERN_CVAR(Bool, quicksaverotation)
|
||||
EXTERN_CVAR(Bool, show_messages)
|
||||
|
||||
CVAR(Bool, m_simpleoptions, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
|
||||
typedef void(*hfunc)();
|
||||
DMenu* CreateMessageBoxMenu(DMenu* parent, const char* message, int messagemode, bool playsound, FName action = NAME_None, hfunc handler = nullptr);
|
||||
bool OkForLocalization(FTextureID texnum, const char* substitute);
|
||||
|
|
@ -189,6 +191,15 @@ bool M_SetSpecialMenu(FName& menu, int param)
|
|||
case NAME_Playermenu:
|
||||
menu = NAME_NewPlayerMenu; // redirect the old player menu to the new one.
|
||||
break;
|
||||
|
||||
case NAME_Optionsmenu:
|
||||
if (m_simpleoptions) menu = NAME_OptionsmenuSimple;
|
||||
break;
|
||||
|
||||
case NAME_OptionsmenuFull:
|
||||
menu = NAME_Optionsmenu;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
DMenuDescriptor** desc = MenuDescriptors.CheckKey(menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue