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:
parent
5c352e1bed
commit
8a04e598e7
|
@ -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.
|
||||
|
|
2
init.lua
2
init.lua
|
@ -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
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