mirror of
git://repo.or.cz/minetest_hbhunger.git
synced 2024-12-23 00:20:16 +01:00
Add background icon
This commit is contained in:
parent
030c9f489f
commit
d257362ef0
@ -63,6 +63,7 @@ eating a bread (from the default Minetest game) increases your satiation by 4.
|
||||
License of textures:
|
||||
--------------------
|
||||
hunger_icon.png - PilzAdam (WTFPL), modified by BlockMen
|
||||
hunger_bgicon.png - PilzAdam (WTFPL), modified by BlockMen
|
||||
hunger_bar.png - Wuzzy (WTFPL)
|
||||
|
||||
everything else is WTFPL:
|
||||
|
2
init.lua
2
init.lua
@ -35,7 +35,7 @@ end
|
||||
dofile(minetest.get_modpath("hbhunger").."/hunger.lua")
|
||||
|
||||
-- register satiation hudbar
|
||||
hb.register_hudbar("satiation", 0xFFFFFF, "Satiation", { icon = "hbhunger_icon.png", bar = "hbhunger_bar.png" }, 20, 30, false)
|
||||
hb.register_hudbar("satiation", 0xFFFFFF, "Satiation", { icon = "hbhunger_icon.png", bgicon = "hbhunger_bgicon.png", bar = "hbhunger_bar.png" }, 20, 30, false)
|
||||
|
||||
-- update hud elemtens if value has changed
|
||||
local function update_hud(player)
|
||||
|
BIN
textures/hbhunger_bgicon.png
Normal file
BIN
textures/hbhunger_bgicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 417 B |
Loading…
Reference in New Issue
Block a user