summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-09-03 19:51:40 +0200
committerPilzAdam <pilzadam@minetest.net>2013-09-05 00:21:16 +0200
commit7860097eda449f0bb99971a037967bd338441133 (patch)
treebcc66bcb45cb8753f2d82c22973c9fc867774cfa /src/hud.h
parent5b518ed2feff28c9bf21ad940c1b211b72d71bd1 (diff)
downloadminetest-7860097eda449f0bb99971a037967bd338441133.tar.gz
minetest-7860097eda449f0bb99971a037967bd338441133.tar.bz2
minetest-7860097eda449f0bb99971a037967bd338441133.zip
Use player:set_hotbar_image() instead of hardcoded hotbar.png
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hud.h b/src/hud.h
index 92ee9a62c..c69867a23 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -39,6 +39,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define HUD_FLAG_BREATHBAR_VISIBLE (1 << 4)
#define HUD_PARAM_HOTBAR_ITEMCOUNT 1
+#define HUD_PARAM_HOTBAR_IMAGE 2
+#define HUD_PARAM_HOTBAR_SELECTED_IMAGE 3
#define HUD_HOTBAR_ITEMCOUNT_DEFAULT 8
#define HUD_HOTBAR_ITEMCOUNT_MAX 23
@@ -106,8 +108,10 @@ public:
video::SColor crosshair_argb;
video::SColor selectionbox_argb;
bool use_crosshair_image;
- bool use_hotbar_border_img;
- bool use_hotbar_bg_img;
+ std::string hotbar_image;
+ bool use_hotbar_image;
+ 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,