- some fixes for the console.

* it is now possible to switch back to the main intro loop from the fullscreen console.
* do not distort the background of the fullscreen console. Always draw the console on top of what the main loop currently displays with a translucent black overlay.
* do not use the CONPIC for the fullscreen console as it tends to be more of a distraction than an asset when filling the entire screen.
* cleaned up c_console.cpp and moved several pieces of code unrelated to actual console management out of it.
This commit is contained in:
Christoph Oelckers 2020-10-25 09:16:37 +01:00
commit 194824f810
17 changed files with 122 additions and 85 deletions

View file

@ -1080,6 +1080,7 @@ void D_Display ()
switch (gamestate)
{
case GS_FULLCONSOLE:
D_PageDrawer();
C_DrawConsole ();
M_Drawer ();
End2DAndUpdate ();
@ -2831,6 +2832,13 @@ FString System_GetPlayerName(int node)
{
return players[node].userinfo.GetName();
}
void System_ConsoleToggled(int state)
{
if (state == c_falling && hud_toggled)
D_ToggleHud();
}
//==========================================================================
//
// DoomSpecificInfo
@ -3057,6 +3065,7 @@ static int D_DoomMain_Internal (void)
StrTable_GetGender,
nullptr,
CheckSkipGameOptionBlock,
System_ConsoleToggled,
};