Resize heart, bubble hunger icons
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 159 B |
@ -42,7 +42,7 @@ minetest.register_entity(
|
|||||||
{
|
{
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x = 1 * headbars_scale, y = 0.1 * headbars_scale, z = 1},
|
visual_size = {x = 1 * headbars_scale, y = 0.1 * headbars_scale, z = 1},
|
||||||
textures = {headbars.get_sprite("heart.png", "blank.png", 20, 20)},
|
textures = {headbars.get_sprite("headbars_heart.png", "blank.png", 20, 20)},
|
||||||
|
|
||||||
glow = 5,
|
glow = 5,
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ minetest.register_entity(
|
|||||||
local hp = ent:get_hp()
|
local hp = ent:get_hp()
|
||||||
|
|
||||||
-- Update displayed hearts
|
-- Update displayed hearts
|
||||||
self.object:set_properties({textures = {headbars.get_sprite("heart.png", "headbars_heart_bg.png", 20, hp)}})
|
self.object:set_properties({textures = {headbars.get_sprite("headbars_heart.png", "headbars_heart_bg.png", 20, hp)}})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
mods/headbars/textures/headbars_heart.png
Normal file
After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 157 B |