forked from thunderdog1138/star_wars
Beds: Fix formspec size, no prepend
This commit is contained in:
parent
a2c9523bce
commit
2ff9058a62
|
@ -109,12 +109,12 @@ local function update_formspecs(finished)
|
||||||
local is_majority = (ges / 2) < player_in_bed
|
local is_majority = (ges / 2) < player_in_bed
|
||||||
|
|
||||||
if finished then
|
if finished then
|
||||||
form_n = beds.formspec .. "label[2.7,11; Good morning.]"
|
form_n = beds.formspec .. "label[2.7,9; Good morning.]"
|
||||||
else
|
else
|
||||||
form_n = beds.formspec .. "label[2.2,11;" .. tostring(player_in_bed) ..
|
form_n = beds.formspec .. "label[2.2,9;" .. tostring(player_in_bed) ..
|
||||||
" of " .. tostring(ges) .. " players are in bed]"
|
" of " .. tostring(ges) .. " players are in bed]"
|
||||||
if is_majority and is_night_skip_enabled() then
|
if is_majority and is_night_skip_enabled() then
|
||||||
form_n = form_n .. "button_exit[2,8;4,0.75;force;Force night skip]"
|
form_n = form_n .. "button_exit[2,6;4,0.75;force;Force night skip]"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,10 @@ beds.bed_position = {}
|
||||||
beds.pos = {}
|
beds.pos = {}
|
||||||
beds.spawn = {}
|
beds.spawn = {}
|
||||||
|
|
||||||
beds.formspec = "size[8,15;true]" ..
|
beds.formspec = "size[8,11;true]" ..
|
||||||
"bgcolor[#080808BB; true]" ..
|
"no_prepend[]" ..
|
||||||
"button_exit[2,12;4,0.75;leave;Leave Bed]"
|
"bgcolor[#080808BB;true]" ..
|
||||||
|
"button_exit[2,10;4,0.75;leave;Leave Bed]"
|
||||||
|
|
||||||
local modpath = minetest.get_modpath("beds")
|
local modpath = minetest.get_modpath("beds")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue