diff options
author | Diego MartÃnez <kaeza@users.sf.net> | 2013-04-22 20:47:59 -0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-04-23 09:34:11 +0300 |
commit | 9894167bbf516c40bf2b8577179ff8f13b8b54e2 (patch) | |
tree | 245d10d35d9adbe9883394cfa7b6c4f8a5950486 /src/hud.h | |
parent | 7c37b1891adcddc0e7d11e5faafddaa554443318 (diff) | |
download | minetest-9894167bbf516c40bf2b8577179ff8f13b8b54e2.tar.gz minetest-9894167bbf516c40bf2b8577179ff8f13b8b54e2.tar.bz2 minetest-9894167bbf516c40bf2b8577179ff8f13b8b54e2.zip |
Added offset support for HUD items
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -48,7 +48,8 @@ enum HudElementStat { HUD_STAT_NUMBER, HUD_STAT_ITEM, HUD_STAT_DIR, - HUD_STAT_ALIGN + HUD_STAT_ALIGN, + HUD_STAT_OFFSET }; struct HudElement { @@ -61,6 +62,7 @@ struct HudElement { u32 item; u32 dir; v2f align; + v2f offset; }; @@ -108,7 +110,7 @@ public: void drawItem(v2s32 upperleftpos, s32 imgsize, s32 itemcount, InventoryList *mainlist, u16 selectitem, u16 direction); void drawLuaElements(); - void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s32 count); + void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s32 count, v2s32 offset); void drawHotbar(v2s32 centerlowerpos, s32 halfheartcount, u16 playeritem); void resizeHotbar(); |