Fix awards tab size
parent
75ce720070
commit
af2d3bc735
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue