4 Commits

Author SHA1 Message Date
39790cec4d _ 2022-08-13 09:21:24 +02:00
524ce1cf77 remove crafts 2022-08-13 09:01:33 +02:00
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
3 changed files with 13 additions and 42 deletions

View File

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

View File

@@ -1 +0,0 @@
This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod.

View File

@@ -34,7 +34,12 @@ local tube_cbox = {
-- the following functions based on the so-named ones in Jeija's digilines mod
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
local on_digiline_receive_std = function(pos, node, channel, msg)
@@ -88,8 +93,8 @@ end
for _,tube in ipairs(nixie_types) do
local groups = { cracky = 2, not_in_creative_inventory = 1}
local light = LIGHT_MAX-4
local light2 = LIGHT_MAX-5
local light = 10
local light2 = 9
local description = S("Nixie Tube ("..tube..")")
local description2 = S("Decatron ("..tube..")")
local description3 = S("Numitron Tube")
@@ -119,7 +124,7 @@ for _,tube in ipairs(nixie_types) do
"nixie_tube_anode.png",
"nixie_tube_glass.png",
},
use_texture_alpha = true,
use_texture_alpha = "blend",
groups = groups,
paramtype = "light",
paramtype2 = "facedir",
@@ -154,7 +159,7 @@ for _,tube in ipairs(nixie_types) do
"nixie_tube_anode.png",
"nixie_tube_glass.png",
},
use_texture_alpha = true,
use_texture_alpha = "blend",
groups = groups,
paramtype = "light",
paramtype2 = "facedir",
@@ -191,7 +196,7 @@ for _,tube in ipairs(nixie_types) do
cathode2,
"nixie_tube_glass.png",
},
use_texture_alpha = true,
use_texture_alpha = "blend",
groups = groups,
paramtype = "light",
paramtype2 = "facedir",
@@ -432,7 +437,7 @@ for i in ipairs(alnum_chars) do
local bits = alnum_chars[i][2]
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 wires = "nixie_tube_alnum_wires.png"
@@ -460,7 +465,7 @@ for i in ipairs(alnum_chars) do
"nixie_tube_anode.png",
"nixie_tube_glass.png",
},
use_texture_alpha = true,
use_texture_alpha = "blend",
groups = groups,
paramtype = "light",
paramtype2 = "facedir",
@@ -484,34 +489,3 @@ for i in ipairs(alnum_chars) do
drop = "nixie_tubes:alnum_32"
})
end
-- crafts
minetest.register_craft({
output = "nixie_tubes:tube_off 4",
recipe = {
{ "", "default:glass", "" },
{ "default:glass", "default:sign_wall", "default:glass" },
{ "default:glass", "default:mese_crystal_fragment", "default:glass" }
},
})
minetest.register_craft({
output = "nixie_tubes:numitron_off 4",
recipe = {
{ "", "default:glass", "" },
{ "default:glass", "default:copper_ingot", "default:glass" },
{ "default:glass", "default:mese_crystal_fragment", "default:glass" }
},
})
minetest.register_craft({
output = "nixie_tubes:alnum_32 4",
recipe = {
{ "", "default:glass", "" },
{ "default:glass", "default:sign_wall", "default:glass" },
{ "default:glass", "default:mese_crystal", "default:glass" }
},
})