Increase size
This commit is contained in:
parent
04dbe4b347
commit
c4bf9f2514
1 changed files with 8 additions and 10 deletions
18
init.lua
18
init.lua
|
@ -7,8 +7,6 @@ rules = {}
|
||||||
-- Kpenguin, Thomas-S, Dragonop, stormchaser3000, Calinou, sparky/ircSparky.
|
-- Kpenguin, Thomas-S, Dragonop, stormchaser3000, Calinou, sparky/ircSparky.
|
||||||
|
|
||||||
local items = {
|
local items = {
|
||||||
"Welcome to Capture the Flag!",
|
|
||||||
"",
|
|
||||||
"By playing on this server you agree to these rules:",
|
"By playing on this server you agree to these rules:",
|
||||||
"",
|
"",
|
||||||
"1. No swearing, dating, or other inappriopriate behaviour..",
|
"1. No swearing, dating, or other inappriopriate behaviour..",
|
||||||
|
@ -68,23 +66,23 @@ end
|
||||||
|
|
||||||
function rules.show(player)
|
function rules.show(player)
|
||||||
local pname = player:get_player_name()
|
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 ..
|
||||||
default.gui_bg_img ..
|
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
|
if not has_password(pname) then
|
||||||
fs = fs .. "box[4,6.5;3.1,0.7;#900]"
|
fs = fs .. "box[4,8.1;3.1,0.7;#900]"
|
||||||
fs = fs .. "label[4.2,6.6;Please set a password]"
|
fs = fs .. "label[4.2,8.2;Please set a password]"
|
||||||
fs = fs .. "button_exit[0.5,6;3.5,2;ok;Okay]"
|
fs = fs .. "button_exit[0.5,7.6;3.5,2;ok;Okay]"
|
||||||
elseif not can_grant_interact(player) then
|
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
|
else
|
||||||
local yes = minetest.formspec_escape("Yes, let me play!")
|
local yes = minetest.formspec_escape("Yes, let me play!")
|
||||||
local no = minetest.formspec_escape("No, get me out of here!")
|
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[0.5,7.6;3.5,2;no;" .. no .. "]"
|
||||||
fs = fs .. "button_exit[4,6;3.5,2;yes;" .. yes .. "]"
|
fs = fs .. "button_exit[4,7.6;3.5,2;yes;" .. yes .. "]"
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.show_formspec(pname, "rules:rules", fs)
|
minetest.show_formspec(pname, "rules:rules", fs)
|
||||||
|
|
Loading…
Reference in a new issue