Don't allow engine to add the implicit "Proceed" button

(on lights anyway;
this change makes it possible to theme the formspec)
This commit is contained in:
Vanessa Dannenberg 2021-02-25 02:13:21 -05:00
parent bc55cde65c
commit 968d706e9b

View File

@ -162,7 +162,10 @@ if minetest.get_modpath("digilines") then
if puncher:get_player_control().sneak then if puncher:get_player_control().sneak then
local name = puncher:get_player_name() local name = puncher:get_player_name()
player_last_clicked[name] = pos player_last_clicked[name] = 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, "homedecor:lamp_set_channel", form) minetest.show_formspec(name, "homedecor:lamp_set_channel", form)
end end
end end