Compare commits

...

5 Commits

Author SHA1 Message Date
Wuzzy a231a5fb82 Version 1.0.1 2022-08-01 14:21:57 +02:00
Duvalon d6fe732528 Add French translation 2022-08-01 14:21:10 +02:00
Wuzzy 3d53b43696 Add Wuzzy to mailmap 2022-08-01 13:59:05 +02:00
Wuzzy 93d994cbad Version 1.0.0 2019-04-01 13:13:58 +02:00
Wuzzy e9568ccdae Update function call again 2019-04-01 12:42:17 +02:00
4 changed files with 7 additions and 3 deletions

2
.mailmap Normal file
View File

@ -0,0 +1,2 @@
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>

View File

@ -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

View File

@ -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

2
locale/hbarmor.fr.tr Normal file
View File

@ -0,0 +1,2 @@
# textdomain:hbarmor
Armor=Armure