7 次程式碼提交

作者 SHA1 備註 日期
fadedbd5ba Merge branch 'master' into nalc-1.2 2019-05-09 22:02:20 +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
Wuzzy
c126114237 Update README 2019-04-01 12:12:59 +02:00
Wuzzy
5634463f01 Fix translation of armor format string 2019-04-01 11:49:59 +02:00
Wuzzy
79e9343331 Update to 5.0.0 translation system 2019-03-30 14:11:17 +01:00
Wuzzy
fa0ed391c6 Move metadata to mod.conf 2019-03-30 13:57:45 +01:00
共有 10 個檔案被更改,包括 17 行新增22 行删除

查看文件

@@ -1,6 +1,6 @@
# HUD bar for `3d_armor` [`hbarmor`] # HUD bar for `3d_armor` [`hbarmor`]
* Version: 0.4.0 * Version: 1.0.0
## Description ## Description
This mod adds a simple HUD bar which displays the current damage This mod adds a simple HUD bar which displays the current damage
@@ -16,8 +16,8 @@ only how worn out it already is.
By default, the armor bar is hidden if the player wears no armor. By default, the armor bar is hidden if the player wears no armor.
## Dependencies ## Dependencies
* HUD bars [`hudbars`], major version 1 * HUD bars [`hudbars`], major version 2
* 3D Armor [`3d_armor`] (tested with Minetest 0.4.14) * 3D Armor [`3d_armor`] (tested with Minetest 5.0.0)
## Licensing ## Licensing
This mod is entirly free softare. This mod is entirly free softare.

查看文件

@@ -1,3 +0,0 @@
hudbars
3d_armor
intllib?

查看文件

@@ -1 +0,0 @@
Adds a HUD bar displaying the current damage of the player's armor.

查看文件

@@ -1,9 +1,5 @@
local S local S = minetest.get_translator("hbarmor")
if (minetest.get_modpath("intllib")) then local N = function(s) return s end
S = intllib.Getter()
else
S = function ( s ) return s end
end
if (not armor) or (not armor.def) then if (not armor) or (not armor.def) then
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!") minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
@@ -65,7 +61,7 @@ local function custom_hud(player)
end end
--register and define armor HUD bar --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("%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, N("@1: @2%"), { order = { "label", "value" }, textdomain = "hbarmor" } )
function hbarmor.get_armor(player) function hbarmor.get_armor(player)
if not player or not armor.def then if not player or not armor.def then

查看文件

@@ -1,2 +0,0 @@
Armor = Panzerung
%s: %d%% = %s: %d%%

3
locale/hbarmor.de.tr 一般檔案
查看文件

@@ -0,0 +1,3 @@
# textdomain:hbarmor
Armor=Panzerung
@1: @2%=@1: @2%

3
locale/hbarmor.it.tr 一般檔案
查看文件

@@ -0,0 +1,3 @@
# textdomain:hbarmor
Armor=Armatura
@1: @2%=@1:@2%

查看文件

@@ -1,4 +0,0 @@
Armor = Armatura
# Format string for displaying the armor. E.g. "Armor: 100%"
%s: %d%% =

查看文件

@@ -1,4 +1,5 @@
Armor = # textdomain:hbarmor
Armor=
# Format string for displaying the armor. E.g. "Armor: 100%" # Format string for displaying the armor. E.g. "Armor: 100%"
%s: %d%% = @1: @2%=

查看文件

@@ -1 +1,3 @@
name = hbarmor name = hbarmor
description = Adds a HUD bar displaying the current damage of the player's armor.
depends = hudbars, 3d_armor