diff options
author | RealBadAngel <maciej.kasatkin@yahoo.com> | 2014-01-26 21:31:59 +0100 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@yahoo.com> | 2014-01-26 21:31:59 +0100 |
commit | 21f1bec72433748e220d19e97a846df83340518e (patch) | |
tree | a4b45526ca5f21a63a5075de17b1911c662eb656 /src/hud.h | |
parent | 3f0ee5d6800302f0ad7e56f0aa4ddddddae86823 (diff) | |
download | minetest-21f1bec72433748e220d19e97a846df83340518e.tar.gz minetest-21f1bec72433748e220d19e97a846df83340518e.tar.bz2 minetest-21f1bec72433748e220d19e97a846df83340518e.zip |
New HUD element - waypoint.
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -49,7 +49,8 @@ enum HudElementType { HUD_ELEM_IMAGE = 0, HUD_ELEM_TEXT = 1, HUD_ELEM_STATBAR = 2, - HUD_ELEM_INVENTORY = 3 + HUD_ELEM_INVENTORY = 3, + HUD_ELEM_WAYPOINT = 4, }; enum HudElementStat { @@ -61,7 +62,8 @@ enum HudElementStat { HUD_STAT_ITEM, HUD_STAT_DIR, HUD_STAT_ALIGN, - HUD_STAT_OFFSET + HUD_STAT_OFFSET, + HUD_STAT_WORLD_POS }; struct HudElement { @@ -75,6 +77,7 @@ struct HudElement { u32 dir; v2f align; v2f offset; + v3f world_pos; }; #ifndef SERVER @@ -93,6 +96,7 @@ struct ItemStack; class Hud { public: video::IVideoDriver *driver; + scene::ISceneManager* smgr; gui::IGUIEnvironment *guienv; gui::IGUIFont *font; u32 text_height; @@ -113,8 +117,9 @@ public: std::string hotbar_selected_image; bool use_hotbar_selected_image; - Hud(video::IVideoDriver *driver, gui::IGUIEnvironment* guienv, - gui::IGUIFont *font, u32 text_height, IGameDef *gamedef, + Hud(video::IVideoDriver *driver,scene::ISceneManager* smgr, + gui::IGUIEnvironment* guienv, gui::IGUIFont *font, + u32 text_height, IGameDef *gamedef, LocalPlayer *player, Inventory *inventory); void drawItem(v2s32 upperleftpos, s32 imgsize, s32 itemcount, |