2 Commits

Author SHA1 Message Date
2aa9e37e12 remove depends 2022-07-12 13:44:38 +02:00
Vanessa Dannenberg
d5cd8c776f Don't allow engine to add the implicit "Proceed" button
(this change makes it possible to theme the formspec)
2021-02-25 02:25:55 -05:00
2 changed files with 9 additions and 5 deletions

View File

@@ -1,2 +1 @@
default
digilines digilines

View File

@@ -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)
@@ -88,8 +93,8 @@ end
for _,tube in ipairs(nixie_types) do for _,tube in ipairs(nixie_types) do
local groups = { cracky = 2, not_in_creative_inventory = 1} local groups = { cracky = 2, not_in_creative_inventory = 1}
local light = LIGHT_MAX-4 local light = 10
local light2 = LIGHT_MAX-5 local light2 = 9
local description = S("Nixie Tube ("..tube..")") local description = S("Nixie Tube ("..tube..")")
local description2 = S("Decatron ("..tube..")") local description2 = S("Decatron ("..tube..")")
local description3 = S("Numitron Tube") local description3 = S("Numitron Tube")
@@ -432,7 +437,7 @@ for i in ipairs(alnum_chars) do
local bits = alnum_chars[i][2] local bits = alnum_chars[i][2]
local groups = { cracky = 2, not_in_creative_inventory = 1} local groups = { cracky = 2, not_in_creative_inventory = 1}
local light = LIGHT_MAX-4 local light = 10
local description = S("Alphanumeric Nixie Tube ("..char..")") local description = S("Alphanumeric Nixie Tube ("..char..")")
local wires = "nixie_tube_alnum_wires.png" local wires = "nixie_tube_alnum_wires.png"