mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-28 06:02:13 +00:00
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:
parent
e1e5e338dc
commit
c7edef4f43
3 changed files with 10 additions and 1 deletions
|
@ -4793,7 +4793,7 @@ void G_HandleLocalKeys(void)
|
||||||
typebuf[0] = 0;
|
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);
|
KB_ClearKeyDown(sc_F1);
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,8 @@ enum LogoFlags_t {
|
||||||
LOGO_NOGAMETITLE = 0x00400000,
|
LOGO_NOGAMETITLE = 0x00400000,
|
||||||
LOGO_NOTITLEBAR = 0x00800000,
|
LOGO_NOTITLEBAR = 0x00800000,
|
||||||
LOGO_HIDEEPISODE = 0x01000000,
|
LOGO_HIDEEPISODE = 0x01000000,
|
||||||
|
LOGO_NOHELP = 0x02000000,
|
||||||
|
LOGO_NOCREDITS = 0x04000000,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -1813,6 +1813,13 @@ void Menu_Init(void)
|
||||||
// prepare credits
|
// prepare credits
|
||||||
M_CREDITS.title = M_CREDITS2.title = M_CREDITS3.title = s_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);
|
static void Menu_Run(Menu_t *cm, vec2_t origin);
|
||||||
|
|
Loading…
Reference in a new issue