mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 01:40:18 +01:00
Prevent long error message from covering the button
This commit is contained in:
parent
df4e880d8b
commit
d3cabedbb0
@ -619,12 +619,13 @@ local function reset_formspec(meta, code, errmsg)
|
|||||||
meta:mark_as_private("code")
|
meta:mark_as_private("code")
|
||||||
code = minetest.formspec_escape(code or "")
|
code = minetest.formspec_escape(code or "")
|
||||||
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
|
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
|
||||||
meta:set_string("formspec", "size[12,10]"..
|
meta:set_string("formspec", "size[12,10]"
|
||||||
"background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"..
|
.."background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"
|
||||||
"textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"..
|
.."label[0.1,8.3;"..errmsg.."]"
|
||||||
"image_button[4.75,8.75;2.5,1;jeija_luac_runbutton.png;program;]"..
|
.."textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"
|
||||||
"image_button_exit[11.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"..
|
.."image_button[4.75,8.75;2.5,1;jeija_luac_runbutton.png;program;]"
|
||||||
"label[0.1,9;"..errmsg.."]")
|
.."image_button_exit[11.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function reset_meta(pos, code, errmsg)
|
local function reset_meta(pos, code, errmsg)
|
||||||
|
Loading…
Reference in New Issue
Block a user