Add '_gone' textures for statbar images

This commit is contained in:
Wuzzy 2024-03-22 13:42:01 +01:00
parent e3b3465690
commit 669af62345
5 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ local health_bar_definition = {
hud_elem_type = "statbar",
position = { x=0.5, y=1 },
text = "heart.png",
text2 = "heart.png^[colorize:#666666:255",
text2 = "heart_gone.png",
number = minetest.PLAYER_MAX_HP_DEFAULT,
item = minetest.PLAYER_MAX_HP_DEFAULT,
direction = 0,
@ -22,7 +22,7 @@ local breath_bar_definition = {
hud_elem_type = "statbar",
position = { x=0.5, y=1 },
text = "bubble.png",
text2 = "bubble.png^[colorize:#666666:255",
text2 = "bubble_gone.png",
number = minetest.PLAYER_MAX_BREATH_DEFAULT*2,
item = minetest.PLAYER_MAX_BREATH_DEFAULT*2,
dir = 0,

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

View File

@ -203,7 +203,7 @@ local function update_bar(player)
hud_elem_type = "statbar",
position = {x=0.5,y=1.0},
text = "hunger.png",
text2 = "hunger.png^[colorize:#666666:255",
text2 = "hunger_gone.png",
number = userdata[name].hunger,
item = hunger.MAX_HUNGER,
dir = 0,

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 B