Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
hud.cpp File Reference
#include "hud.h"
#include <cmath>
+ Include dependency graph for hud.cpp:

Variables

const struct EnumString es_HudElementType []
 
const struct EnumString es_HudElementStat []
 
const struct EnumString es_HudBuiltinElement []
 

Variable Documentation

◆ es_HudBuiltinElement

const struct EnumString es_HudBuiltinElement[]
Initial value:
=
{
{HUD_FLAG_MINIMAP_RADAR_VISIBLE, "minimap_radar"},
{HUD_FLAG_BASIC_DEBUG, "basic_debug"},
{0, NULL},
}
#define HUD_FLAG_WIELDITEM_VISIBLE
Definition: hud.h:46
#define HUD_FLAG_BREATHBAR_VISIBLE
Definition: hud.h:47
#define HUD_FLAG_MINIMAP_VISIBLE
Definition: hud.h:48
#define HUD_FLAG_BASIC_DEBUG
Definition: hud.h:50
#define HUD_FLAG_HOTBAR_VISIBLE
Definition: hud.h:43
#define HUD_FLAG_HEALTHBAR_VISIBLE
Definition: hud.h:44
#define HUD_FLAG_MINIMAP_RADAR_VISIBLE
Definition: hud.h:49
#define HUD_FLAG_CROSSHAIR_VISIBLE
Definition: hud.h:45
#define HUD_FLAG_CHAT_VISIBLE
Definition: hud.h:51

Referenced by ObjectRef::l_hud_get_flags(), and ObjectRef::l_hud_set_flags().

◆ es_HudElementStat

const struct EnumString es_HudElementStat[]
Initial value:
=
{
{HUD_STAT_POS, "position"},
{HUD_STAT_POS, "pos"},
{HUD_STAT_NAME, "name"},
{HUD_STAT_SCALE, "scale"},
{HUD_STAT_TEXT, "text"},
{HUD_STAT_NUMBER, "number"},
{HUD_STAT_ITEM, "item"},
{HUD_STAT_ITEM, "precision"},
{HUD_STAT_DIR, "direction"},
{HUD_STAT_ALIGN, "alignment"},
{HUD_STAT_OFFSET, "offset"},
{HUD_STAT_WORLD_POS, "world_pos"},
{HUD_STAT_SIZE, "size"},
{HUD_STAT_Z_INDEX, "z_index"},
{HUD_STAT_TEXT2, "text2"},
{HUD_STAT_STYLE, "style"},
{0, NULL},
}
@ HUD_STAT_SIZE
Definition: hud.h:84
@ HUD_STAT_TEXT2
Definition: hud.h:86
@ HUD_STAT_NUMBER
Definition: hud.h:78
@ HUD_STAT_WORLD_POS
Definition: hud.h:83
@ HUD_STAT_DIR
Definition: hud.h:80
@ HUD_STAT_ITEM
Definition: hud.h:79
@ HUD_STAT_NAME
Definition: hud.h:75
@ HUD_STAT_STYLE
Definition: hud.h:87
@ HUD_STAT_TEXT
Definition: hud.h:77
@ HUD_STAT_OFFSET
Definition: hud.h:82
@ HUD_STAT_SCALE
Definition: hud.h:76
@ HUD_STAT_ALIGN
Definition: hud.h:81
@ HUD_STAT_Z_INDEX
Definition: hud.h:85
@ HUD_STAT_POS
Definition: hud.h:74

Referenced by read_hud_change().

◆ es_HudElementType

const struct EnumString es_HudElementType[]
Initial value:
=
{
{HUD_ELEM_IMAGE, "image"},
{HUD_ELEM_TEXT, "text"},
{HUD_ELEM_STATBAR, "statbar"},
{HUD_ELEM_INVENTORY, "inventory"},
{HUD_ELEM_WAYPOINT, "waypoint"},
{HUD_ELEM_IMAGE_WAYPOINT, "image_waypoint"},
{HUD_ELEM_COMPASS, "compass"},
{HUD_ELEM_MINIMAP, "minimap"},
{0, NULL},
}
@ HUD_ELEM_IMAGE_WAYPOINT
Definition: hud.h:68
@ HUD_ELEM_TEXT
Definition: hud.h:64
@ HUD_ELEM_MINIMAP
Definition: hud.h:70
@ HUD_ELEM_STATBAR
Definition: hud.h:65
@ HUD_ELEM_INVENTORY
Definition: hud.h:66
@ HUD_ELEM_IMAGE
Definition: hud.h:63
@ HUD_ELEM_COMPASS
Definition: hud.h:69
@ HUD_ELEM_WAYPOINT
Definition: hud.h:67

Referenced by push_hud_element(), and read_hud_element().