From c4bf9f2514cbc8e6b9a3191be8c8a6b0e0a912a1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 20 Jan 2019 00:07:26 +0000 Subject: [PATCH] Increase size --- init.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/init.lua b/init.lua index 5a80b29..ad3d38f 100644 --- a/init.lua +++ b/init.lua @@ -7,8 +7,6 @@ rules = {} -- Kpenguin, Thomas-S, Dragonop, stormchaser3000, Calinou, sparky/ircSparky. local items = { - "Welcome to Capture the Flag!", - "", "By playing on this server you agree to these rules:", "", "1. No swearing, dating, or other inappriopriate behaviour..", @@ -68,23 +66,23 @@ end function rules.show(player) local pname = player:get_player_name() - local fs = "size[8,7]bgcolor[#080808BB;true]" .. + local fs = "size[8,8.6]bgcolor[#080808BB;true]" .. default.gui_bg .. default.gui_bg_img .. - "textlist[0.1,0.1;7.8,6.3;msg;" .. rules.txt .. ";-1;true]" + "textlist[0.1,0.1;7.8,7.9;msg;" .. rules.txt .. ";-1;true]" if not has_password(pname) then - fs = fs .. "box[4,6.5;3.1,0.7;#900]" - fs = fs .. "label[4.2,6.6;Please set a password]" - fs = fs .. "button_exit[0.5,6;3.5,2;ok;Okay]" + fs = fs .. "box[4,8.1;3.1,0.7;#900]" + fs = fs .. "label[4.2,8.2;Please set a password]" + fs = fs .. "button_exit[0.5,7.6;3.5,2;ok;Okay]" elseif not can_grant_interact(player) then - fs = fs .. "button_exit[0.5,6;7,2;ok;Okay]" + fs = fs .. "button_exit[0.5,7.6;7,2;ok;Okay]" else local yes = minetest.formspec_escape("Yes, let me play!") local no = minetest.formspec_escape("No, get me out of here!") - fs = fs .. "button_exit[0.5,6;3.5,2;no;" .. no .. "]" - fs = fs .. "button_exit[4,6;3.5,2;yes;" .. yes .. "]" + fs = fs .. "button_exit[0.5,7.6;3.5,2;no;" .. no .. "]" + fs = fs .. "button_exit[4,7.6;3.5,2;yes;" .. yes .. "]" end minetest.show_formspec(pname, "rules:rules", fs)