mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- fixed shadow and positioning of stats display.
This commit is contained in:
parent
a348508779
commit
25d516c36f
2 changed files with 7 additions and 3 deletions
|
@ -298,7 +298,7 @@ class DukeStatusBar : DukeCommonStatusBar
|
||||||
{
|
{
|
||||||
DrawInventory(p, 0, -46, DI_SCREEN_CENTER_BOTTOM);
|
DrawInventory(p, 0, -46, DI_SCREEN_CENTER_BOTTOM);
|
||||||
FullscreenHUD1(p);
|
FullscreenHUD1(p);
|
||||||
DoLevelStats(tileHeight("BIGALPHANUM") +10, info);
|
DoLevelStats(fontheight[hw_hightile ? 1 : 0] + 6, info);
|
||||||
}
|
}
|
||||||
else if (style == 2)
|
else if (style == 2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@ class RazeStatusBar : StatusBarCore
|
||||||
void drawStatText(Font statFont, double x, double y, String text, double scale)
|
void drawStatText(Font statFont, double x, double y, String text, double scale)
|
||||||
{
|
{
|
||||||
Screen.DrawText(statfont, Font.CR_UNTRANSLATED, x + scale, y + scale, text, DTA_FullscreenScale, FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,
|
Screen.DrawText(statfont, Font.CR_UNTRANSLATED, x + scale, y + scale, text, DTA_FullscreenScale, FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,
|
||||||
DTA_KeepRatio, true, DTA_ScaleX, scale, DTA_ScaleY, scale, DTA_LegacyRenderStyle, STYLE_TranslucentStencil, DTA_Color, 0);
|
DTA_KeepRatio, true, DTA_ScaleX, scale, DTA_ScaleY, scale, DTA_LegacyRenderStyle, STYLE_TranslucentStencil, DTA_Color, 0x80000000);
|
||||||
Screen.DrawText(statfont, Font.CR_UNTRANSLATED, x, y, text, DTA_FullscreenScale, FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,
|
Screen.DrawText(statfont, Font.CR_UNTRANSLATED, x, y, text, DTA_FullscreenScale, FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,
|
||||||
DTA_KeepRatio, true, DTA_ScaleX, scale, DTA_ScaleY, scale);
|
DTA_KeepRatio, true, DTA_ScaleX, scale, DTA_ScaleY, scale);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,11 @@ class RazeStatusBar : StatusBarCore
|
||||||
double scale = info.fontscale * hud_statscale;
|
double scale = info.fontscale * hud_statscale;
|
||||||
if (info.spacing <= 0) info.spacing = info.statfont.GetHeight() * info.fontscale;
|
if (info.spacing <= 0) info.spacing = info.statfont.GetHeight() * info.fontscale;
|
||||||
double spacing = info.spacing * hud_statscale;
|
double spacing = info.spacing * hud_statscale;
|
||||||
if (info.screenbottomspace < 0)
|
if (hud_size == Hud_Nothing)
|
||||||
|
{
|
||||||
|
y = 198 - spacing;
|
||||||
|
}
|
||||||
|
else if (info.screenbottomspace < 0)
|
||||||
{
|
{
|
||||||
y = 200 - (RelTop - info.screenbottomspace) * hud_scalefactor - spacing;
|
y = 200 - (RelTop - info.screenbottomspace) * hud_scalefactor - spacing;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue