1 minetest.register_on_joinplayer(function(player)
4 hud_elem_type = "text", -- See HUD element types
5 -- Type of element, can be "image", "text", "statbar", or "inventory"
8 -- Left corner position of element
12 --scale = {x = 2, y = 2},
16 number = 0x000000,--0xFFFFFF,
19 -- Selected item in inventory. 0 for no item selected.
22 -- Direction: 0: left-right, 1: right-left, 2: top-bottom, 3: bottom-top
24 offset = {x = -98, y = 20},
27 -- Size of element in pixels
30 -- Z index : lower z-index HUDs are displayed behind higher z-index HUDs
33 hud_elem_type = "text", -- See HUD element types
34 -- Type of element, can be "image", "text", "statbar", or "inventory"
36 position = {x=1, y=0},
37 -- Left corner position of element
41 --scale = {x = 2, y = 2},
48 -- Selected item in inventory. 0 for no item selected.
51 -- Direction: 0: left-right, 1: right-left, 2: top-bottom, 3: bottom-top
53 offset = {x = -100, y = 18},
56 -- Size of element in pixels
59 -- Z index : lower z-index HUDs are displayed behind higher z-index HUDs