From 956c7e02765edd2bc3262dabc40e9eba25f81e2d Mon Sep 17 00:00:00 2001 From: BrunoMine Date: Tue, 20 Aug 2019 14:04:04 -0300 Subject: [PATCH] Update compatibility with hudbars --- hud.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hud.lua b/hud.lua index 251a0a4..7e9712a 100644 --- a/hud.lua +++ b/hud.lua @@ -83,7 +83,7 @@ if minetest.get_modpath("hudbars") then -- text_color "0xFFFFFF", -- label - S("XP"), + "XP", -- textures { bar = "xpro_hudbars_bar_xp.png", @@ -97,7 +97,12 @@ if minetest.get_modpath("hudbars") then -- default_start_hidden false, -- format_string - "%s: %d%%" + "@1: @2%", + -- format_string_config + { + order = {"label", "value"}, + textdomain = "xpro" + } ) -- Alterar barra ao adicionar XP