- Exhumed: hide all screen overlays when Ramses is talking.

This commit is contained in:
Christoph Oelckers 2022-01-03 20:53:21 +01:00
parent 894f9a6b0a
commit 8267f327e3
2 changed files with 13 additions and 9 deletions

View file

@ -75,16 +75,21 @@ void GameInterface::Render()
double const smoothratio = calc_smoothratio();
DrawView(smoothratio);
DrawStatusBar();
DrawCrosshair(kCrosshairTile, PlayerList[nLocalPlayer].nHealth >> 3, -PlayerList[nLocalPlayer].angle.look_anghalf(smoothratio), 0, 1);
if (paused && !M_Active())
DrawView(smoothratio);
if (nFreeze != 2) // Hide when Ramses is talking.
{
auto tex = GStrings("TXTB_PAUSED");
auto font = PickSmallFont(tex);
int nStringWidth = font->StringWidth(tex);
DrawText(twod, font, CR_UNTRANSLATED, 160 - nStringWidth / 2, 100, tex, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE);
DrawStatusBar();
DrawCrosshair(kCrosshairTile, PlayerList[nLocalPlayer].nHealth >> 3, -PlayerList[nLocalPlayer].angle.look_anghalf(smoothratio), 0, 1);
if (paused && !M_Active())
{
auto tex = GStrings("TXTB_PAUSED");
auto font = PickSmallFont(tex);
int nStringWidth = font->StringWidth(tex);
DrawText(twod, font, CR_UNTRANSLATED, 160 - nStringWidth / 2, 100, tex, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE);
}
}
drawtime.Unclock();

View file

@ -144,7 +144,6 @@ void StatusMessage(int messageTime, const char* fmt, ...)
void DrawStatusBar()
{
if (nFreeze == 2) return; // Hide when Ramses is talking.
if (hud_size <= Hud_Stbar)
{
UpdateFrame();