Add background icon

This commit is contained in:
Wuzzy 2015-05-19 23:53:41 +02:00
parent 4daf0f829d
commit 4e955bef42
3 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ Dependencies:
License of textures:
--------------------
hbarmor_icon.png - Stu (CC BY-SA 3.0), modified by BlockMen
hbarmor_bgicon.png - Stu (CC BY-SA 3.0), modified by BlockMen
hbarmor_bar.png - Wuzzy (WTFPL)

View File

@ -50,7 +50,7 @@ local function custom_hud(player)
end
--register and define armor HUD bar
hb.register_hudbar("armor", 0xFFFFFF, "Armor", { icon = "hbarmor_icon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%")
hb.register_hudbar("armor", 0xFFFFFF, "Armor", { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%")
dofile(minetest.get_modpath("hbarmor").."/armor.lua")

BIN
textures/hbarmor_bgicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B