New LOGO_FLAGS bits LOGO_NOHELP and LOGO_NOCREDITS.

LOGO_NOHELP: Remove the "Help" item in the main menu and the F1 key function.

LOGO_NOCREDITS: Remove the "Credits" item in the main menu.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6612 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-29 02:14:09 +00:00
parent e1e5e338dc
commit c7edef4f43
3 changed files with 10 additions and 1 deletions

View file

@ -4793,7 +4793,7 @@ void G_HandleLocalKeys(void)
typebuf[0] = 0;
}
if (KB_UnBoundKeyPressed(sc_F1)/* || (ud.show_help && I_AdvanceTrigger())*/)
if (KB_UnBoundKeyPressed(sc_F1) && !(G_GetLogoFlags() & LOGO_NOHELP)/* || (ud.show_help && I_AdvanceTrigger())*/)
{
KB_ClearKeyDown(sc_F1);

View file

@ -97,6 +97,8 @@ enum LogoFlags_t {
LOGO_NOGAMETITLE = 0x00400000,
LOGO_NOTITLEBAR = 0x00800000,
LOGO_HIDEEPISODE = 0x01000000,
LOGO_NOHELP = 0x02000000,
LOGO_NOCREDITS = 0x04000000,
};
enum {

View file

@ -1813,6 +1813,13 @@ void Menu_Init(void)
// prepare credits
M_CREDITS.title = M_CREDITS2.title = M_CREDITS3.title = s_Credits;
}
if (G_GetLogoFlags() & LOGO_NOHELP)
MEL_MAIN[3] = MEL_MAIN_INGAME[4] = nullptr;
#ifndef EDUKE32_SIMPLE_MENU
if (G_GetLogoFlags() & LOGO_NOCREDITS)
MEL_MAIN[4] = nullptr;
#endif
}
static void Menu_Run(Menu_t *cm, vec2_t origin);