forked from mtcontrib/minetest_hbarmor
Add background icon
This commit is contained in:
parent
4daf0f829d
commit
4e955bef42
@ -35,6 +35,7 @@ Dependencies:
|
|||||||
License of textures:
|
License of textures:
|
||||||
--------------------
|
--------------------
|
||||||
hbarmor_icon.png - Stu (CC BY-SA 3.0), modified by BlockMen
|
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)
|
hbarmor_bar.png - Wuzzy (WTFPL)
|
||||||
|
|
||||||
|
|
||||||
|
2
init.lua
2
init.lua
@ -50,7 +50,7 @@ local function custom_hud(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--register and define armor HUD bar
|
--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")
|
dofile(minetest.get_modpath("hbarmor").."/armor.lua")
|
||||||
|
|
||||||
|
BIN
textures/hbarmor_bgicon.png
Normal file
BIN
textures/hbarmor_bgicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 424 B |
Loading…
Reference in New Issue
Block a user