1
0
mirror of git://repo.or.cz/minetest_mana.git synced 2024-11-15 23:00:20 +01:00

Add background icon

This commit is contained in:
Wuzzy 2015-05-19 23:53:13 +02:00
parent 5c352e1bed
commit 8a04e598e7
3 changed files with 2 additions and 1 deletions

View File

@ -47,5 +47,6 @@ This mod can be configured with minetest.conf! The following settings are accept
License information
===================
* 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.
* Everything else: WTFPL.

View File

@ -261,7 +261,7 @@ end)
]===]
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)
local player = minetest.get_player_by_name(playername)

BIN
textures/mana_bgicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB