From d257362ef02169be0100c745d2fe62fbcb6a5cbf Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 19 May 2015 23:53:51 +0200 Subject: [PATCH] Add background icon --- README.txt | 1 + init.lua | 2 +- textures/hbhunger_bgicon.png | Bin 0 -> 417 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 textures/hbhunger_bgicon.png diff --git a/README.txt b/README.txt index 0fc6052..bed458b 100644 --- a/README.txt +++ b/README.txt @@ -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: diff --git a/init.lua b/init.lua index 60808c0..8b7eac0 100644 --- a/init.lua +++ b/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) diff --git a/textures/hbhunger_bgicon.png b/textures/hbhunger_bgicon.png new file mode 100644 index 0000000000000000000000000000000000000000..07e21e7be47ebfe19f972382f6ea5a086a33cbfc GIT binary patch literal 417 zcmV;S0bc%zP)pGQ%OWYRCt`Nlf7=jFcd~Z)s4q-V#j}S9N(Bo9uNaUNQ_8GOc{AB z-maBG`8vgdma0hS*v&hyhZwANsZfiVWoIXLI2s_N})-8TUd zjUfaO5kd%1O2HU|rfFcUg;ENPvG<1pBD&Od4Jjq8wTLldwOXO?dsu5Bgg{xAQ?fA& z_WS*8yWNh)7?foR&N5y3eJB7(IRbzSGHX|2bcfQT;6IdIP5z0X~xln_Ed zN(t{hy!V*u7-N@P!PPkj=Nw{;xm#6LIh9fhA%u(&0=I$>BFd4Sb1=q0YmKI9Af<#c z2Gf8i02IYA470=GaOt`(Prq&3%x%}(!$fqwdxhO@hZrMbjOe-!lkg`V?!kF}D%R^Y zQc6fEVX;^s#)y;>Hk%FlzQ@Bw8iwKJ(MJBpU4rBB`1&Wov!Ce`d<6U`HGiA|00000 LNkvXXu0mjf5NEV} literal 0 HcmV?d00001