Compare commits
5 Commits
c126114237
...
a231a5fb82
Author | SHA1 | Date |
---|---|---|
Wuzzy | a231a5fb82 | |
Duvalon | d6fe732528 | |
Wuzzy | 3d53b43696 | |
Wuzzy | 93d994cbad | |
Wuzzy | e9568ccdae |
|
@ -0,0 +1,2 @@
|
|||
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
|
||||
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>
|
|
@ -1,6 +1,6 @@
|
|||
# HUD bar for `3d_armor` [`hbarmor`]
|
||||
|
||||
* Version: 0.4.0
|
||||
* Version: 1.0.1
|
||||
|
||||
## Description
|
||||
This mod adds a simple HUD bar which displays the current damage
|
||||
|
@ -16,7 +16,7 @@ only how worn out it already is.
|
|||
By default, the armor bar is hidden if the player wears no armor.
|
||||
|
||||
## Dependencies
|
||||
* HUD bars [`hudbars`], major version 1
|
||||
* HUD bars [`hudbars`], major version 2
|
||||
* 3D Armor [`3d_armor`] (tested with Minetest 5.0.0)
|
||||
|
||||
## Licensing
|
||||
|
|
2
init.lua
2
init.lua
|
@ -61,7 +61,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, N("@1: @2%"), { "label", "value" }, "hbarmor" )
|
||||
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, N("@1: @2%"), { order = { "label", "value" }, textdomain = "hbarmor" } )
|
||||
|
||||
function hbarmor.get_armor(player)
|
||||
if not player or not armor.def then
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# textdomain:hbarmor
|
||||
Armor=Armure
|
Loading…
Reference in New Issue