Show (and clear) menu messages on the titlescreen

This commit is contained in:
toaster 2022-11-04 00:30:03 +00:00
parent b4227bde05
commit a9e5904d2f
2 changed files with 9 additions and 5 deletions

View file

@ -2103,6 +2103,8 @@ luahook:
LUA_HookHUD(luahuddrawlist_title, HUD_HOOK(title)); LUA_HookHUD(luahuddrawlist_title, HUD_HOOK(title));
} }
LUA_HUD_DrawList(luahuddrawlist_title); LUA_HUD_DrawList(luahuddrawlist_title);
M_DrawMenuMessage();
} }
// (no longer) De-Demo'd Title Screen // (no longer) De-Demo'd Title Screen
@ -2114,6 +2116,9 @@ void F_TitleScreenTicker(boolean run)
{ {
finalecount++; finalecount++;
if (menumessage.fadetimer < 9)
menumessage.fadetimer++;
if (finalecount == 1) if (finalecount == 1)
{ {
// Now start the music // Now start the music

View file

@ -954,6 +954,8 @@ void M_StartControlPanel(void)
if (!Playing()) if (!Playing())
{ {
M_StopMessage(0); // Doesn't work with MM_YESNO or MM_EVENTHANDLER... but good enough to get the game as it is currently functional again
if (cv_currprofile.value == -1) // Only ask once per session. if (cv_currprofile.value == -1) // Only ask once per session.
{ {
// Make sure the profile data is ready now since we need to select a profile. // Make sure the profile data is ready now since we need to select a profile.
@ -1875,11 +1877,8 @@ void M_HandleMenuMessage(void)
boolean btok = M_MenuConfirmPressed(pid); boolean btok = M_MenuConfirmPressed(pid);
boolean btnok = M_MenuBackPressed(pid); boolean btnok = M_MenuBackPressed(pid);
menumessage.fadetimer++; if (menumessage.fadetimer < 9)
menumessage.fadetimer++;
if (menumessage.fadetimer > 9)
menumessage.fadetimer = 9;
switch (menumessage.flags) switch (menumessage.flags)
{ {