Change the options menu to follow a more logical modern layout

Remove the old simple menu as that only made things worse
This commit is contained in:
Magnus Norddahl 2023-04-23 02:00:49 +02:00
commit b1ebb8231f
4 changed files with 154 additions and 229 deletions

View file

@ -77,8 +77,6 @@ EXTERN_CVAR(Bool, quicksaverotation)
EXTERN_CVAR(Bool, show_messages)
EXTERN_CVAR(Float, hud_scalefactor)
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);
@ -208,14 +206,6 @@ bool M_SetSpecialMenu(FName& menu, int param)
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;
case NAME_Readthismenu:
// [MK] allow us to override the ReadThisMenu class
menu = gameinfo.HelpMenuClass;