From c007f4c21cf79a02474f582dc68d85e89da25380 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 25 Feb 2021 02:14:58 -0500 Subject: [PATCH] Don't allow engine to add the implicit "Proceed" button (this change makes it possible to theme the formspec) --- simple.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simple.lua b/simple.lua index bf659bb..7ae984d 100644 --- a/simple.lua +++ b/simple.lua @@ -41,7 +41,10 @@ if enable_digilines then function ilights.digiline_on_use(itemstack, user, pointed_thing) if user and user:get_player_control().sneak then local name = user:get_player_name() - local form = "field[channel;Set a channel for future streetlights;]" + 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 for future streetlights;]" minetest.show_formspec(name, "simple_streetlights:set_channel", form) end end