mirror of
https://github.com/Sokomine/cottages.git
synced 2026-01-10 19:15:45 +01:00
adjusted anvil hud to changes and fixed bug
This commit is contained in:
@@ -217,7 +217,10 @@ minetest.register_node("cottages:anvil", {
|
||||
end
|
||||
|
||||
local hud1 = puncher:hud_add({
|
||||
hud_elem_type = "image",
|
||||
name = "cottages_anvil_broken_tool_img",
|
||||
direction = 0,
|
||||
z_index = 90,
|
||||
type = "image",
|
||||
scale = {x = 15, y = 15},
|
||||
text = hud_image,
|
||||
position = {x = 0.5, y = 0.5},
|
||||
@@ -227,7 +230,9 @@ minetest.register_node("cottages:anvil", {
|
||||
local hud3 = nil;
|
||||
if( input:get_wear()>0 ) then
|
||||
hud2 = puncher:hud_add({
|
||||
hud_elem_type = "statbar",
|
||||
name = "cottages_anvil_wear_red",
|
||||
z_index = 111,
|
||||
type = "statbar",
|
||||
text = "default_cloud.png^[colorize:#ff0000:256",
|
||||
number = 40,
|
||||
direction = 0, -- left to right
|
||||
@@ -237,7 +242,9 @@ minetest.register_node("cottages:anvil", {
|
||||
size = {x=32, y=32},
|
||||
})
|
||||
hud3 = puncher:hud_add({
|
||||
hud_elem_type = "statbar",
|
||||
name = "cottages_anvil_wear_green",
|
||||
z_index = 112,
|
||||
type = "statbar",
|
||||
text = "default_cloud.png^[colorize:#00ff00:256",
|
||||
number = damage_state,
|
||||
direction = 0, -- left to right
|
||||
|
||||
Reference in New Issue
Block a user