- make the switch between game and generic fonts automatic by adding a key value to the language table

This commit is contained in:
Christoph Oelckers 2019-04-12 00:20:42 +02:00
commit c0b322c51a
13 changed files with 108 additions and 88 deletions

View file

@ -858,7 +858,7 @@ void D_Display ()
screen->DrawTexture (tex, x, 4, DTA_CleanNoMove, true, TAG_DONE);
if (paused && multiplayer)
{
FFont *font = generic_hud? NewSmallFont : SmallFont;
FFont *font = generic_ui? NewSmallFont : SmallFont;
pstring << ' ' << players[paused - 1].userinfo.GetName();
screen->DrawText(font, CR_RED,
(screen->GetWidth() - font->StringWidth(pstring)*CleanXfac) / 2,