mirror of
https://github.com/mt-mods/nixie_tubes.git
synced 2024-12-04 21:23:47 +01:00
Don't allow engine to add the implicit "Proceed" button
(this change makes it possible to theme the formspec)
This commit is contained in:
parent
dddb52c454
commit
d5cd8c776f
7
init.lua
7
init.lua
@ -34,7 +34,12 @@ local tube_cbox = {
|
|||||||
-- the following functions based on the so-named ones in Jeija's digilines mod
|
-- the following functions based on the so-named ones in Jeija's digilines mod
|
||||||
|
|
||||||
local reset_meta = function(pos)
|
local reset_meta = function(pos)
|
||||||
minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]")
|
minetest.get_meta(pos):set_string("formspec",
|
||||||
|
"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;${channel}]"
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
local on_digiline_receive_std = function(pos, node, channel, msg)
|
local on_digiline_receive_std = function(pos, node, channel, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user