added size fields to statbar hud elements (not doing so is deprecated)

This commit is contained in:
Pascal Abresch 2019-04-01 02:31:13 +02:00
parent 05e692a0d5
commit 0958632969
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,8 @@ minetest.register_on_joinplayer(function(player)
offset = {x =-100, y = -40},
text = "bar_red.png",
direction = 0,
number = 20
number = 20,
size = { x=2, y=20 }
})
local idy = player:hud_add({
hud_elem_type = "text",

View File

@ -26,6 +26,7 @@ minetest.register_on_joinplayer(function(player)
offset = {x =-100, y = -40},
text = "bar_red.png",
direction = 0,
size = { x=2, y=20 }, -- looks correct with 2, less is invisble, more is too big :/
number = 20
})
local idy = player:hud_add({