mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Add hotbar Lua HUD element and replace hardcoded hotbar
This commit is contained in:
parent
efd7792add
commit
52376fd87a
11 changed files with 165 additions and 31 deletions
|
@ -63,7 +63,7 @@ public:
|
|||
void disableBlockBounds();
|
||||
void drawBlockBounds();
|
||||
|
||||
void drawHotbar(u16 playeritem);
|
||||
void drawHotbar(const v2s32 &pos, const v2f &offset, u16 direction, const v2f &align);
|
||||
void resizeHotbar();
|
||||
void drawCrosshair();
|
||||
void drawSelectionMesh();
|
||||
|
@ -99,7 +99,7 @@ private:
|
|||
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,
|
||||
void drawItems(v2s32 screen_pos, v2s32 screen_offset, s32 itemcount, v2f alignment,
|
||||
s32 inv_offset, InventoryList *mainlist, u16 selectitem,
|
||||
u16 direction, bool is_hotbar);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue