mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Add hotbar Lua HUD element and replace hardcoded hotbar
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user