mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Exhumed: hide all screen overlays when Ramses is talking.
This commit is contained in:
parent
894f9a6b0a
commit
8267f327e3
2 changed files with 13 additions and 9 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue