From 8c2b9d844533d4406768d2a53b9bf46a3e23f80a Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 25 Feb 2021 02:12:59 -0500 Subject: [PATCH] Don't allow engine to add the implicit "Proceed" button (this change makes it possible to theme the formspec) --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fe75d4c..d8e8316 100644 --- a/init.lua +++ b/init.lua @@ -141,7 +141,10 @@ if minetest.get_modpath("digilines") then local name = puncher:get_player_name() player_last_clicked[name] = pos local meta = minetest.get_meta(pos) - local form = "field[channel;Channel;]" + local form = "formspec_version[4]".. + "size[8,4]".. + "button_exit[3,2.5;2,0.5;proceed;Proceed]".. + "field[1.75,1.5;4.5,0.5;channel;Channel;]" minetest.show_formspec(name, "ilights:set_channel", form) end end