From 4e955bef428731b0ebca6a083080025afd17b195 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 19 May 2015 23:53:41 +0200 Subject: [PATCH] Add background icon --- README.txt | 1 + init.lua | 2 +- textures/hbarmor_bgicon.png | Bin 0 -> 424 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 textures/hbarmor_bgicon.png diff --git a/README.txt b/README.txt index 4424cde..3e9f77d 100644 --- a/README.txt +++ b/README.txt @@ -35,6 +35,7 @@ Dependencies: License of textures: -------------------- hbarmor_icon.png - Stu (CC BY-SA 3.0), modified by BlockMen +hbarmor_bgicon.png - Stu (CC BY-SA 3.0), modified by BlockMen hbarmor_bar.png - Wuzzy (WTFPL) diff --git a/init.lua b/init.lua index f752ad0..4aba3bd 100644 --- a/init.lua +++ b/init.lua @@ -50,7 +50,7 @@ local function custom_hud(player) end --register and define armor HUD bar -hb.register_hudbar("armor", 0xFFFFFF, "Armor", { icon = "hbarmor_icon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%") +hb.register_hudbar("armor", 0xFFFFFF, "Armor", { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%") dofile(minetest.get_modpath("hbarmor").."/armor.lua") diff --git a/textures/hbarmor_bgicon.png b/textures/hbarmor_bgicon.png new file mode 100644 index 0000000000000000000000000000000000000000..32401003a8f42a81bb123e03be086fdda348c159 GIT binary patch literal 424 zcmV;Z0ayNsP)paFLO0b(HqY%<_pLI`0NQ0n~k zCHwvUp@bUP7-M9bCb?WL_ux5z8-{!bui60Cy4YpNUw{yTSZhV!Nt3&<(k!~%@8?sq z#&Im)!CJj6b