#pragma once #include #include "statusbar.h" #include "duke3d.h" BEGIN_DUKE_NS class DDukeCommonStatusBar : public DBaseStatusBar { DECLARE_ABSTRACT_CLASS(DDukeCommonStatusBar, DBaseStatusBar) HAS_OBJECT_POINTERS protected: TObjPtr numberFont; TObjPtr indexFont; TObjPtr miniFont; TObjPtr digiFont; double scale = 1; std::array ammo_sprites; std::array item_icons; DDukeCommonStatusBar(); std::pair ontext(struct player_struct *p); void DrawInventory(const struct player_struct* p, double x, double y, int align); PalEntry LightForShade(int shade); public: void PrintLevelStats(int bottomy); }; void DrawBorder(); END_DUKE_NS