Skip to content

Commit

Permalink
Don't allow engine to add the implicit "Proceed" button
Browse files Browse the repository at this point in the history
(this change makes it possible to theme the formspec)
  • Loading branch information
VanessaE committed Feb 25, 2021
1 parent a9ee197 commit 8c2b9d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c2b9d8

Please sign in to comment.