]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/hud.h
Mark additional locales as broken
[dragonfireclient.git] / src / hud.h
index 699313980ee8ab337f76689d314717d9b553c55a..a0613ae98335e9e3ae09924fe5c34fbee613ea64 100644 (file)
--- a/src/hud.h
+++ b/src/hud.h
@@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef HUD_HEADER
-#define HUD_HEADER
+#pragma once
 
 #include "irrlichttypes_extrabloated.h"
 #include <string>
@@ -50,8 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define HUD_PARAM_HOTBAR_SELECTED_IMAGE 3
 
 #define HUD_HOTBAR_ITEMCOUNT_DEFAULT 8
-#define HUD_HOTBAR_ITEMCOUNT_MAX     23
-
+#define HUD_HOTBAR_ITEMCOUNT_MAX     32
 
 #define HOTBAR_IMAGE_SIZE 48
 
@@ -61,6 +59,9 @@ enum HudElementType {
        HUD_ELEM_STATBAR   = 2,
        HUD_ELEM_INVENTORY = 3,
        HUD_ELEM_WAYPOINT  = 4,
+       HUD_ELEM_IMAGE_WAYPOINT = 5,
+       HUD_ELEM_COMPASS   = 6,
+       HUD_ELEM_MINIMAP   = 7
 };
 
 enum HudElementStat {
@@ -74,7 +75,16 @@ enum HudElementStat {
        HUD_STAT_ALIGN,
        HUD_STAT_OFFSET,
        HUD_STAT_WORLD_POS,
-       HUD_STAT_SIZE
+       HUD_STAT_SIZE,
+       HUD_STAT_Z_INDEX,
+       HUD_STAT_TEXT2,
+};
+
+enum HudCompassDir {
+       HUD_COMPASS_ROTATE = 0,
+       HUD_COMPASS_ROTATE_REVERSE,
+       HUD_COMPASS_TRANSLATE,
+       HUD_COMPASS_TRANSLATE_REVERSE,
 };
 
 struct HudElement {
@@ -90,10 +100,20 @@ struct HudElement {
        v2f offset;
        v3f world_pos;
        v2s32 size;
+       s16 z_index = 0;
+       std::string text2;
 };
 
 extern const EnumString es_HudElementType[];
 extern const EnumString es_HudElementStat[];
 extern const EnumString es_HudBuiltinElement[];
 
-#endif
+// Minimap stuff
+
+enum MinimapType {
+       MINIMAP_TYPE_OFF,
+       MINIMAP_TYPE_SURFACE,
+       MINIMAP_TYPE_RADAR,
+       MINIMAP_TYPE_TEXTURE,
+};
+