forked from mtcontrib/minetest_mana
Add background icon
This commit is contained in:
parent
5c352e1bed
commit
8a04e598e7
@ -47,5 +47,6 @@ This mod can be configured with minetest.conf! The following settings are accept
|
|||||||
License information
|
License information
|
||||||
===================
|
===================
|
||||||
* textures/mana_icon.png: CC-BY by Buch <http://opengameart.org/users/Buch>.
|
* textures/mana_icon.png: CC-BY by Buch <http://opengameart.org/users/Buch>.
|
||||||
|
* textures/mana_bgicon.png: CC-BY, originally by Buch <http://opengameart.org/users/Buch>, modified by Wuzzy.
|
||||||
* textures/mana_bar.png: WTFPL by Wuzzy.
|
* textures/mana_bar.png: WTFPL by Wuzzy.
|
||||||
* Everything else: WTFPL.
|
* Everything else: WTFPL.
|
||||||
|
2
init.lua
2
init.lua
@ -261,7 +261,7 @@ end)
|
|||||||
]===]
|
]===]
|
||||||
|
|
||||||
if minetest.get_modpath("hudbars") ~= nil then
|
if minetest.get_modpath("hudbars") ~= nil then
|
||||||
hb.register_hudbar("mana", 0xFFFFFF, "Mana", { bar = "mana_bar.png", icon = "mana_icon.png" }, 0, mana.settings.default_max, false)
|
hb.register_hudbar("mana", 0xFFFFFF, "Mana", { bar = "mana_bar.png", icon = "mana_icon.png", bgicon = "mana_bgicon.png" }, 0, mana.settings.default_max, false)
|
||||||
|
|
||||||
function mana.hud_update(playername)
|
function mana.hud_update(playername)
|
||||||
local player = minetest.get_player_by_name(playername)
|
local player = minetest.get_player_by_name(playername)
|
||||||
|
BIN
textures/mana_bgicon.png
Normal file
BIN
textures/mana_bgicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Loading…
Reference in New Issue
Block a user