Builtin UI: Move box element to ensure correct draw order
authorSmallJoker <SmallJoker@users.noreply.github.com>
Thu, 1 Aug 2019 12:43:31 +0000 (14:43 +0200)
committerSmallJoker <mk939@ymail.com>
Thu, 8 Aug 2019 17:33:43 +0000 (19:33 +0200)
builtin/fstk/ui.lua

index 4e6aa3c4ed352090c7f39da9465d32b5f56706ff..88410054328cbb51b1a7dc2a910ad03c65a96252 100644 (file)
@@ -64,9 +64,9 @@ function ui.update()
                formspec = {
                        "size[14,8]",
                        "real_coordinates[true]",
+                       "box[0.5,1.2;13,5;#000]",
                        ("textarea[0.5,1.2;13,5;;%s;%s]"):format(
                                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[8,6.6;4,1;btn_reconnect_no;" .. fgettext("Main menu") .. "]"
                }
@@ -82,9 +82,9 @@ function ui.update()
                formspec = {
                        "size[14,8]",
                        "real_coordinates[true]",
+                       "box[0.5,1.2;13,5;#000]",
                        ("textarea[0.5,1.2;13,5;;%s;%s]"):format(
                                error_title, error_message),
-                       "box[0.5,1.2;13,5;#000]",
                        "button[5,6.6;4,1;btn_error_confirm;" .. fgettext("Ok") .. "]"
                }
        else