forked from mtcontrib/minetest_hbarmor
Update outdated intllib boilerplate
This commit is contained in:
parent
2e3d5b7ca5
commit
dd1bf4e74c
5
init.lua
5
init.lua
|
@ -1,7 +1,6 @@
|
|||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
@ -58,7 +57,7 @@ local function custom_hud(player)
|
|||
end
|
||||
|
||||
--register and define armor HUD bar
|
||||
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, "%s: %d%%")
|
||||
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, S("%s: %d%%"))
|
||||
|
||||
dofile(minetest.get_modpath("hbarmor").."/armor.lua")
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
Armor = Panzerung
|
||||
%s: %d%% = %s: %d%%
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
Armor
|
||||
Armor =
|
||||
|
||||
# Format string for displaying the armor. E.g. "Armor: 100%"
|
||||
%s: %d%% =
|
||||
|
|
Loading…
Reference in New Issue
Block a user