summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorDiego Martínez <kaeza@users.sf.net>2013-04-22 20:47:59 -0300
committerPerttu Ahola <celeron55@gmail.com>2013-04-23 09:34:11 +0300
commit9894167bbf516c40bf2b8577179ff8f13b8b54e2 (patch)
tree245d10d35d9adbe9883394cfa7b6c4f8a5950486 /src/hud.h
parent7c37b1891adcddc0e7d11e5faafddaa554443318 (diff)
downloadminetest-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hud.h b/src/hud.h
index 7a1dff3d8..104a2f00d 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -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();