From 1076047ad36b46935b6ad71624adadc83f4f0b43 Mon Sep 17 00:00:00 2001 From: philipmi Date: Fri, 12 Nov 2021 21:41:13 +0100 Subject: [PATCH] Make formspec bigger to ensure everthing can be read --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 95a768b..64557a0 100644 --- a/init.lua +++ b/init.lua @@ -51,7 +51,7 @@ if minetest.global_exists("sfinv") then title = "Rules", get = function(self, player, context) return sfinv.make_formspec(player, context, - "textlist[0,0;7.85,8.5;help;" .. rules.txt .. "]", false) + "textlist[0,0;12,8;help;" .. rules.txt .. "]", false, "size[12,8]") end }) end @@ -70,8 +70,8 @@ end function rules.show(player) local pname = player:get_player_name() - local fs = "size[8,8.6]bgcolor[#080808BB;true]" .. - "textlist[0.1,0.1;7.8,7.9;msg;" .. rules.txt .. ";-1;true]" + local fs = "size[12,8.6]bgcolor[#080808BB;true]" .. + "textlist[0,0;12,7.9;msg;" .. rules.txt .. ";-1;true]" if not has_password(pname) then fs = fs .. "box[4,8.1;3.1,0.7;#900]"