3 Copyright (C) 2010-2013 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
4 Copyright (C) 2017 red-001 <red-001@outlook.ie>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "irrlichttypes_extrabloated.h"
25 #include "common/c_types.h"
27 #define HUD_DIR_LEFT_RIGHT 0
28 #define HUD_DIR_RIGHT_LEFT 1
29 #define HUD_DIR_TOP_BOTTOM 2
30 #define HUD_DIR_BOTTOM_TOP 3
32 #define HUD_CORNER_UPPER 0
33 #define HUD_CORNER_LOWER 1
34 #define HUD_CORNER_CENTER 2
36 // Note that these visibility flags do not determine if the hud items are
37 // actually drawn, but rather, whether to draw the item should the rest
38 // of the game state permit it.
39 #define HUD_FLAG_HOTBAR_VISIBLE (1 << 0)
40 #define HUD_FLAG_HEALTHBAR_VISIBLE (1 << 1)
41 #define HUD_FLAG_CROSSHAIR_VISIBLE (1 << 2)
42 #define HUD_FLAG_WIELDITEM_VISIBLE (1 << 3)
43 #define HUD_FLAG_BREATHBAR_VISIBLE (1 << 4)
44 #define HUD_FLAG_MINIMAP_VISIBLE (1 << 5)
45 #define HUD_FLAG_MINIMAP_RADAR_VISIBLE (1 << 6)
47 #define HUD_PARAM_HOTBAR_ITEMCOUNT 1
48 #define HUD_PARAM_HOTBAR_IMAGE 2
49 #define HUD_PARAM_HOTBAR_SELECTED_IMAGE 3
51 #define HUD_HOTBAR_ITEMCOUNT_DEFAULT 8
52 #define HUD_HOTBAR_ITEMCOUNT_MAX 32
55 #define HOTBAR_IMAGE_SIZE 48
61 HUD_ELEM_INVENTORY = 3,
62 HUD_ELEM_WAYPOINT = 4,
63 HUD_ELEM_IMAGE_WAYPOINT = 5
99 extern const EnumString es_HudElementType[];
100 extern const EnumString es_HudElementStat[];
101 extern const EnumString es_HudBuiltinElement[];