Builtin UI: Move box element to ensure correct draw order

This commit is contained in:
SmallJoker 2019-08-01 14:43:31 +02:00 committed by Nils Dagsson Moskopp
parent 6002b4e6e7
commit 3c0c3e0084
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 2 additions and 2 deletions

View File

@ -64,9 +64,9 @@ function ui.update()
formspec = { formspec = {
"size[14,8]", "size[14,8]",
"real_coordinates[true]", "real_coordinates[true]",
"box[0.5,1.2;13,5;#000]",
("textarea[0.5,1.2;13,5;;%s;%s]"):format( ("textarea[0.5,1.2;13,5;;%s;%s]"):format(
fgettext("The server has requested a reconnect:"), error_message), fgettext("The server has requested a reconnect:"), error_message),
"box[0.5,1.2;13,5;#000]",
"button[2,6.6;4,1;btn_reconnect_yes;" .. fgettext("Reconnect") .. "]", "button[2,6.6;4,1;btn_reconnect_yes;" .. fgettext("Reconnect") .. "]",
"button[8,6.6;4,1;btn_reconnect_no;" .. fgettext("Main menu") .. "]" "button[8,6.6;4,1;btn_reconnect_no;" .. fgettext("Main menu") .. "]"
} }
@ -82,9 +82,9 @@ function ui.update()
formspec = { formspec = {
"size[14,8]", "size[14,8]",
"real_coordinates[true]", "real_coordinates[true]",
"box[0.5,1.2;13,5;#000]",
("textarea[0.5,1.2;13,5;;%s;%s]"):format( ("textarea[0.5,1.2;13,5;;%s;%s]"):format(
error_title, error_message), error_title, error_message),
"box[0.5,1.2;13,5;#000]",
"button[5,6.6;4,1;btn_error_confirm;" .. fgettext("Ok") .. "]" "button[5,6.6;4,1;btn_error_confirm;" .. fgettext("Ok") .. "]"
} }
else else