More changes

This commit is contained in:
2022-11-21 20:06:10 -05:00
parent 929a34a41c
commit 30c580fe5d
34 changed files with 32 additions and 336 deletions

View File

@@ -10,32 +10,35 @@ minetest.register_on_joinplayer(function(player)
meta = player:get_meta()
idText = player:hud_add({
hud_elem_type = "text",
position = {x = .5, y = .5},
offset = {x = 0, y = 0},
text = nodesDestroyed,
alignment = {x = 0, y = 0}, -- center aligned
scale = {x = 100, y = 100}, -- covered later
})
player:hud_add({
hud_elem_type = "image",
position = {x = 1, y = .5},
offset = {x = -515, y = 23},
text = "destruction_counter_meter_empty.png",
scale = {x = 4, y = 4},
position = {x = .8, y = .85},
offset = {x = -830, y = 23},
text = "destruction_counter_meter_empty.png",
scale = {x = 4, y = 4},
alignment = {x = 1, y = 0},
})
idMeter = player:hud_add({
hud_elem_type = "image",
position = {x = 1, y = .5},
offset = {x = -510, y = 23},
text = "destruction_counter_meter_full.png",
scale = {x = 0, y = 4},
position = {x = .8, y = .85},
offset = {x = -830, y = 23},
text = "destruction_counter_meter_full.png",
scale = {x = 0, y = 4},
alignment = {x = 1, y = 0},
})
idText = player:hud_add({
hud_elem_type = "text",
position = {x = 0.3, y = 0.7},
scale = {x = 0.3, y = 0.5},
text = "Test",
number = 0xff3c0a,
alignment = {x = 1},
offset = {x = 0, y = 46},
})
end)
minetest.register_on_dignode(function(pos, oldnode, digger)