mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add support for statbar “off state” icons (#9462)
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
This commit is contained in:
parent
88bb8e57e6
commit
6e1372bd89
15 changed files with 132 additions and 36 deletions
|
@ -82,8 +82,9 @@ public:
|
|||
|
||||
private:
|
||||
bool calculateScreenPos(const v3s16 &camera_offset, HudElement *e, v2s32 *pos);
|
||||
void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, const std::string &texture,
|
||||
s32 count, v2s32 offset, v2s32 size = v2s32());
|
||||
void drawStatbar(v2s32 pos, u16 corner, u16 drawdir,
|
||||
const std::string &texture, const std::string& bgtexture,
|
||||
s32 count, s32 maxcount, v2s32 offset, v2s32 size = v2s32());
|
||||
|
||||
void drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount,
|
||||
s32 inv_offset, InventoryList *mainlist, u16 selectitem,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue