1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use player:set_hotbar_image() instead of hardcoded hotbar.png

This commit is contained in:
PilzAdam 2013-09-03 19:51:40 +02:00
parent 5b518ed2fe
commit 7860097eda
10 changed files with 98 additions and 10 deletions

View file

@ -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,