Luanti 5.11.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:31
#define HUD_FLAG_BREATHBAR_VISIBLE
Definition hud.h:32
#define HUD_FLAG_MINIMAP_VISIBLE
Definition hud.h:33
#define HUD_FLAG_BASIC_DEBUG
Definition hud.h:35
#define HUD_FLAG_HOTBAR_VISIBLE
Definition hud.h:28
#define HUD_FLAG_HEALTHBAR_VISIBLE
Definition hud.h:29
#define HUD_FLAG_MINIMAP_RADAR_VISIBLE
Definition hud.h:34
#define HUD_FLAG_CROSSHAIR_VISIBLE
Definition hud.h:30
#define HUD_FLAG_CHAT_VISIBLE
Definition hud.h:36

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:70
@ HUD_STAT_TEXT2
Definition hud.h:72
@ HUD_STAT_NUMBER
Definition hud.h:64
@ HUD_STAT_WORLD_POS
Definition hud.h:69
@ HUD_STAT_DIR
Definition hud.h:66
@ HUD_STAT_ITEM
Definition hud.h:65
@ HUD_STAT_NAME
Definition hud.h:61
@ HUD_STAT_STYLE
Definition hud.h:73
@ HUD_STAT_TEXT
Definition hud.h:63
@ HUD_STAT_OFFSET
Definition hud.h:68
@ HUD_STAT_SCALE
Definition hud.h:62
@ HUD_STAT_ALIGN
Definition hud.h:67
@ HUD_STAT_Z_INDEX
Definition hud.h:71
@ HUD_STAT_POS
Definition hud.h:60

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"},
{HUD_ELEM_HOTBAR, "hotbar"},
{0, NULL},
}
@ HUD_ELEM_IMAGE_WAYPOINT
Definition hud.h:53
@ HUD_ELEM_TEXT
Definition hud.h:49
@ HUD_ELEM_MINIMAP
Definition hud.h:55
@ HUD_ELEM_STATBAR
Definition hud.h:50
@ HUD_ELEM_INVENTORY
Definition hud.h:51
@ HUD_ELEM_HOTBAR
Definition hud.h:56
@ HUD_ELEM_IMAGE
Definition hud.h:48
@ HUD_ELEM_COMPASS
Definition hud.h:54
@ HUD_ELEM_WAYPOINT
Definition hud.h:52

Referenced by push_hud_element(), and read_hud_element().