Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_joinplayer(function(player)
minetest.after(1, function(player)
player:hud_add({
hud_elem_type = "image",
position = {x=0.5,y=0.5},
scale = 1,
text = "hud.png",
alignment = {x=0,y=0},
})
end, player)
end)
No errors but no image is displayed (hud.png definitely does exist)
If I change element type to "text" I see hud.png written in the center of the window
If I change the image name to something non-existent then it reports that a dummy
image was generated but this is not displayed either.
Tested with 0.4.9 and 0.4.10