]> git.lizzy.rs Git - minetest.git/blobdiff - src/hud.h
Revert "Fix short 180 degree rotation when using set_bone_position (#10405)" (#10534)
[minetest.git] / src / hud.h
index 23f189dff5cd9c9001081509d360f598cf731d0a..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>
@@ -52,7 +51,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define HUD_HOTBAR_ITEMCOUNT_DEFAULT 8
 #define HUD_HOTBAR_ITEMCOUNT_MAX     32
 
-
 #define HOTBAR_IMAGE_SIZE 48
 
 enum HudElementType {
@@ -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 {
@@ -76,6 +77,14 @@ enum HudElementStat {
        HUD_STAT_WORLD_POS,
        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 {
@@ -92,10 +101,19 @@ struct HudElement {
        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,
+};
+