mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 12:43:42 +01:00
Fix string concatenation in UI form, resolves #104
This commit is contained in:
parent
888fbacb49
commit
b4283f6e60
@ -28,10 +28,10 @@ unified_inventory.register_page("armor", {
|
||||
local fy = perplayer_formspec.formspec_y
|
||||
local name = player:get_player_name()
|
||||
local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]"..
|
||||
"label[0,0;Armor]"..
|
||||
"label[0,0;Armor]"
|
||||
if armor.def[name] then
|
||||
formspec = formspec..
|
||||
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"
|
||||
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"..
|
||||
"image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]"..
|
||||
"label[5.0,"..(fy + 0.0)..";"..S("Level")..": "..armor.def[name].level.."]"..
|
||||
"label[5.0,"..(fy + 0.5)..";"..S("Heal")..": "..armor.def[name].heal.."]"..
|
||||
|
Loading…
Reference in New Issue
Block a user