forked from LizzyFleckenstein03/Memeclone
Enlarge sleep message area
This commit is contained in:
parent
41a1a3167d
commit
51085fd6b8
|
@ -210,11 +210,11 @@ end
|
||||||
|
|
||||||
local function update_formspecs(finished, ges)
|
local function update_formspecs(finished, ges)
|
||||||
local ges = ges or #minetest.get_connected_players()
|
local ges = ges or #minetest.get_connected_players()
|
||||||
local form_n = "size[6,5;true]"
|
local form_n = "size[12,5;true]"
|
||||||
local all_in_bed = ges == player_in_bed
|
local all_in_bed = ges == player_in_bed
|
||||||
local night_skip = is_night_skip_enabled()
|
local night_skip = is_night_skip_enabled()
|
||||||
local button_leave = "button_exit[1,3;4,0.75;leave;"..F(S("Leave bed")).."]"
|
local button_leave = "button_exit[4,3;4,0.75;leave;"..F(S("Leave bed")).."]"
|
||||||
local button_abort = "button_exit[1,3;4,0.75;leave;"..F(S("Abort sleep")).."]"
|
local button_abort = "button_exit[4,3;4,0.75;leave;"..F(S("Abort sleep")).."]"
|
||||||
local bg_presleep = "bgcolor[#00000080;true]"
|
local bg_presleep = "bgcolor[#00000080;true]"
|
||||||
local bg_sleep = "bgcolor[#000000FF;true]"
|
local bg_sleep = "bgcolor[#000000FF;true]"
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ local function update_formspecs(finished, ges)
|
||||||
form_n = form_n .. bg_presleep
|
form_n = form_n .. bg_presleep
|
||||||
form_n = form_n .. button_leave
|
form_n = form_n .. button_leave
|
||||||
end
|
end
|
||||||
form_n = form_n .. "label[1,1;"..F(text).."]"
|
form_n = form_n .. "label[0.5,1;"..F(text).."]"
|
||||||
else
|
else
|
||||||
local text
|
local text
|
||||||
if night_skip then
|
if night_skip then
|
||||||
|
@ -250,7 +250,7 @@ local function update_formspecs(finished, ges)
|
||||||
form_n = form_n .. bg_presleep
|
form_n = form_n .. bg_presleep
|
||||||
form_n = form_n .. button_leave
|
form_n = form_n .. button_leave
|
||||||
end
|
end
|
||||||
form_n = form_n .. "label[1,1;"..F(text).."]"
|
form_n = form_n .. "label[0.5,1;"..F(text).."]"
|
||||||
end
|
end
|
||||||
|
|
||||||
for name,_ in pairs(mcl_beds.player) do
|
for name,_ in pairs(mcl_beds.player) do
|
||||||
|
|
Loading…
Reference in New Issue