From 7860097eda449f0bb99971a037967bd338441133 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Tue, 3 Sep 2013 19:51:40 +0200 Subject: Use player:set_hotbar_image() instead of hardcoded hotbar.png --- src/hud.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/hud.h') 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, -- cgit v1.2.3