Skip to content

Commit d3cabed

Browse files
numberZerosfan5
authored andcommittedDec 9, 2018
Prevent long error message from covering the button
1 parent df4e880 commit d3cabed

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎mesecons_luacontroller/init.lua

+7-6
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,13 @@ local function reset_formspec(meta, code, errmsg)
619619
meta:mark_as_private("code")
620620
code = minetest.formspec_escape(code or "")
621621
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
622-
meta:set_string("formspec", "size[12,10]"..
623-
"background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"..
624-
"textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"..
625-
"image_button[4.75,8.75;2.5,1;jeija_luac_runbutton.png;program;]"..
626-
"image_button_exit[11.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"..
627-
"label[0.1,9;"..errmsg.."]")
622+
meta:set_string("formspec", "size[12,10]"
623+
.."background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"
624+
.."label[0.1,8.3;"..errmsg.."]"
625+
.."textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"
626+
.."image_button[4.75,8.75;2.5,1;jeija_luac_runbutton.png;program;]"
627+
.."image_button_exit[11.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"
628+
)
628629
end
629630

630631
local function reset_meta(pos, code, errmsg)

0 commit comments

Comments
 (0)