raze/source/games/duke/src/sbar.h

36 lines
753 B
C
Raw Normal View History

#pragma once
#include <array>
#include "statusbar.h"
#include "duke3d.h"
BEGIN_DUKE_NS
class DDukeCommonStatusBar : public DBaseStatusBar
{
DECLARE_ABSTRACT_CLASS(DDukeCommonStatusBar, DBaseStatusBar)
2020-10-28 19:04:53 +00:00
HAS_OBJECT_POINTERS
protected:
2020-10-28 19:04:53 +00:00
TObjPtr<DHUDFont*> numberFont;
TObjPtr<DHUDFont*> indexFont;
TObjPtr<DHUDFont*> miniFont;
TObjPtr<DHUDFont*> digiFont;
2020-07-20 21:21:27 +00:00
double scale = 1;
std::array<int, MAX_WEAPONS> ammo_sprites;
std::array<int, 8> item_icons;
DDukeCommonStatusBar();
2020-07-20 21:21:27 +00:00
std::pair<const char*, EColorRange> ontext(struct player_struct *p);
void DrawInventory(const struct player_struct* p, double x, double y, int align);
PalEntry LightForShade(int shade);
public:
2020-07-20 21:21:27 +00:00
void PrintLevelStats(int bottomy);
};
void DrawBorder();
2020-07-06 01:00:52 +00:00
END_DUKE_NS