- stat display fine tuning.

This commit is contained in:
Christoph Oelckers 2020-08-24 22:18:45 +02:00
parent fef7608705
commit 25ade79b90
2 changed files with 3 additions and 3 deletions

View file

@ -221,7 +221,7 @@ private:
FLevelStats stats{}; FLevelStats stats{};
stats.fontscale = 1.; stats.fontscale = 1.;
stats.spacing = SmallFont->GetHeight() + 2; stats.spacing = SmallFont->GetHeight() + 1;
stats.screenbottomspace = bottomy; stats.screenbottomspace = bottomy;
stats.font = SmallFont; stats.font = SmallFont;
stats.letterColor = CR_DARKRED; stats.letterColor = CR_DARKRED;
@ -633,7 +633,7 @@ private:
} }
drawInventory(pPlayer, 166, 200 - tilesiz[2200].y); drawInventory(pPlayer, 166, 200 - tilesiz[2200].y);
// Depending on the scale we can lower the stats display. This needs some tweaking but this catches the important default case already. // Depending on the scale we can lower the stats display. This needs some tweaking but this catches the important default case already.
PrintLevelStats(pPlayer, (hud_statscale <= 0.501f || hud_scale < 70) && double(xdim)/ydim > 1.6? 28 : 56); PrintLevelStats(pPlayer, (hud_statscale <= 0.501f || hud_scale < 0.7) && double(xdim)/ydim > 1.6? 28 : 56);
} }

View file

@ -222,7 +222,7 @@ void DDukeCommonStatusBar::PrintLevelStats(int bottomy)
{ {
// The stock font of these games is totally unusable for this. // The stock font of these games is totally unusable for this.
stats.font = ConFont; stats.font = ConFont;
stats.spacing = ConFont->GetHeight() + 2; stats.spacing = ConFont->GetHeight() + 1;
stats.letterColor = CR_ORANGE; stats.letterColor = CR_ORANGE;
stats.standardColor = CR_YELLOW; stats.standardColor = CR_YELLOW;
stats.completeColor = CR_FIRE; stats.completeColor = CR_FIRE;