mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02: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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user