mirror of
git://repo.or.cz/minetest_hbhunger.git
synced 2025-06-28 21:06:01 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
564413a871 | |||
96f05c4e73 |
@ -1,6 +1,6 @@
|
||||
# Hunger with HUD bar [`hbhunger`]
|
||||
|
||||
* Version: 1.0.0
|
||||
* Version: 1.0.1
|
||||
|
||||
## Using the mod
|
||||
|
||||
|
2
init.lua
2
init.lua
@ -41,7 +41,7 @@ end
|
||||
dofile(minetest.get_modpath("hbhunger").."/hunger.lua")
|
||||
|
||||
-- register satiation hudbar
|
||||
hb.register_hudbar("satiation", 0xFFFFFF, S("Satiation"), { icon = "hbhunger_icon.png", bgicon = "hbhunger_bgicon.png", bar = "hbhunger_bar.png" }, 20, 30, false)
|
||||
hb.register_hudbar("satiation", 0xFFFFFF, S("Satiation"), { icon = "hbhunger_icon.png", bgicon = "hbhunger_bgicon.png", bar = "hbhunger_bar.png" }, 20, 30, false, nil, { format_value = "%.1f", format_max_value = "%d" })
|
||||
|
||||
-- update hud elemtens if value has changed
|
||||
local function update_hud(player)
|
||||
|
Reference in New Issue
Block a user