- display the status bar.

It's totally broken, but at least a start.
This commit is contained in:
Christoph Oelckers 2021-06-03 19:57:14 +02:00
parent d35092698d
commit bd1c37960f
2 changed files with 12 additions and 2 deletions

View file

@ -3,6 +3,8 @@
#include "v_font.h"
#include "v_draw.h"
#include "gamehud.h"
#include "statusbar.h"
#include "mapinfo.h"
BEGIN_WH_NS
@ -428,7 +430,15 @@ void DrawHud(double const dasmoothratio) {
if (scarytime >= 0)
drawscary();
//drawInterface(player[pyrn]);
SummaryInfo info{};
info.kills = kills;
info.maxkills = killcnt;
info.secrets = treasuresfound;
info.maxsecrets = treasurescnt;
info.supersecrets = 0;
info.time = Scale(PlayClock, 1000, 120);
UpdateStatusBar(&info);
}
END_WH_NS

View file

@ -425,7 +425,7 @@ class WHStatusBar : RazeStatusBar
}
int amposx = 10;
int amposy = 40;//Raze.GetMessageBottomY();
int amposy = Raze.GetMessageBottomY();
if(plr.treasure[Witchaven.TONYXRING] != 0)
{