[CSM] Add basic HUD manipulation. (#6067)
[oweals/minetest.git] / src / hud.cpp
1 #include "hud.h"
2
3
4 const struct EnumString es_HudElementType[] =
5 {
6         {HUD_ELEM_IMAGE,     "image"},
7         {HUD_ELEM_TEXT,      "text"},
8         {HUD_ELEM_STATBAR,   "statbar"},
9         {HUD_ELEM_INVENTORY, "inventory"},
10         {HUD_ELEM_WAYPOINT,  "waypoint"},
11         {0, NULL},
12 };
13
14 const struct EnumString es_HudElementStat[] =
15 {
16         {HUD_STAT_POS,    "position"},
17         {HUD_STAT_POS,    "pos"}, /* Deprecated, only for compatibility's sake */
18         {HUD_STAT_NAME,   "name"},
19         {HUD_STAT_SCALE,  "scale"},
20         {HUD_STAT_TEXT,   "text"},
21         {HUD_STAT_NUMBER, "number"},
22         {HUD_STAT_ITEM,   "item"},
23         {HUD_STAT_DIR,    "direction"},
24         {HUD_STAT_ALIGN,  "alignment"},
25         {HUD_STAT_OFFSET, "offset"},
26         {HUD_STAT_WORLD_POS, "world_pos"},
27         {0, NULL},
28 };
29
30 const struct EnumString es_HudBuiltinElement[] =
31 {
32         {HUD_FLAG_HOTBAR_VISIBLE,    "hotbar"},
33         {HUD_FLAG_HEALTHBAR_VISIBLE, "healthbar"},
34         {HUD_FLAG_CROSSHAIR_VISIBLE, "crosshair"},
35         {HUD_FLAG_WIELDITEM_VISIBLE, "wielditem"},
36         {HUD_FLAG_BREATHBAR_VISIBLE, "breathbar"},
37         {HUD_FLAG_MINIMAP_VISIBLE,   "minimap"},
38         {0, NULL},
39 };