Fix awards tab size

master
Solebull 2019-08-10 04:37:38 +02:00
parent 75ce720070
commit af2d3bc735
3 changed files with 2 additions and 2 deletions

View File

@ -364,6 +364,7 @@ function awards.getFormspec(name, to, sid)
if def and def.secret and not item.got then
formspec = formspec .. "label[1,2.75;"..minetest.formspec_escape(S("(Secret Award)")).."]"..
"image[1,0;3,3;awards_unknown.png]"
if def and def.description then
formspec = formspec .. "textarea[0.25,3.25;4.8,1.7;;"..minetest.formspec_escape(S("Unlock this award to find out what it is."))..";]"
end

View File

@ -10,7 +10,7 @@ if minetest.get_modpath("sfinv") then
local name = player:get_player_name()
return sfinv.make_formspec(player, context,
awards.getFormspec(name, name, context.awards_idx or 1),
false, "size[11,5]")
false)
end,
on_player_receive_fields = function(self, player, context, fields)
if fields.awards then

View File

@ -31,7 +31,6 @@ get_factions_ui = function(faction_id)
label[0,0.75;Membres :] label[2,0.75;]]..members..[[]
textlist[0,2;7,4;faclist;]]..facnames..[[]
]]
minetest.log("error", formspec)
return formspec
end