Compare commits
No commits in common. "master" and "dev" have entirely different histories.
10
README.md
|
@ -1,14 +1,11 @@
|
||||||
# Digiterms - Digilines Terminals
|
# Digiterms - Digilines Terminals
|
||||||
Version 0.2
|
Version 0.1
|
||||||
|
|
||||||
Digilines monitors and keyboards mod for Minetest using Display API / Font API.
|
Digilines monitors mod for Minetest using Display API / Font API.
|
||||||
|
|
||||||
![Presentation image of Digiterms](screenshot.png)
|
![Presentation image of Digiterms](screenshot.png)
|
||||||
|
|
||||||
Monitors display text received on their digiline channel and works like digilines lcd monitor.
|
Monitors display text received on their digiline channel and works like digilines lcd monitor.
|
||||||
|
|
||||||
Keyboards send text ofer their digiline channel. In protected areas, keyboard can be set to "Public" to be usable by anybody. Else, only players granted rights on the area can use the keyboard.
|
|
||||||
|
|
||||||
Craft recipes depend on installed mods, please refer to craft guide in game.
|
Craft recipes depend on installed mods, please refer to craft guide in game.
|
||||||
|
|
||||||
If `scifi_nodes` mod is enabled, scifi monitors can be turned into digiterms by crafting scifi monitor with a digiline (some texture are derivated from D00Med mod).
|
If `scifi_nodes` mod is enabled, scifi monitors can be turned into digiterms by crafting scifi monitor with a digiline (some texture are derivated from D00Med mod).
|
||||||
|
@ -23,9 +20,6 @@ If `scifi_nodes` mod is enabled, scifi monitors can be turned into digiterms by
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### 2018-12-13 (Version 0.2)
|
|
||||||
- Keyboards (Beige, white and black).
|
|
||||||
- Third cathodic monitor, the black one.
|
|
||||||
### 2018-12-09 (Version 0.1)
|
### 2018-12-09 (Version 0.1)
|
||||||
- Cathodic (2) and LCD monitors and corresponding craft recipes.
|
- Cathodic (2) and LCD monitors and corresponding craft recipes.
|
||||||
- Scifi nodes monitors : tallscreen, widescreen, glassscreen and keysmonitor
|
- Scifi nodes monitors : tallscreen, widescreen, glassscreen and keysmonitor
|
||||||
|
|
13
depends.txt
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
display_api
|
||||||
|
font_api
|
||||||
|
digilines
|
||||||
|
dye
|
||||||
|
default
|
||||||
|
xpane?
|
||||||
|
scifi_nodes?
|
||||||
|
basic_materials?
|
||||||
|
homedecor?
|
||||||
|
mesecons_microcontroller?
|
||||||
|
mesecons_luacontroller?
|
||||||
|
mesecons_button?
|
||||||
|
mesecons_materials?
|
|
@ -77,7 +77,7 @@ local function push_text(lines, text, maxlines, maxcolumns)
|
||||||
elseif b >= 0xC2 then pos = pos + 2
|
elseif b >= 0xC2 then pos = pos + 2
|
||||||
else pos = pos + 1 end-- Invalid char
|
else pos = pos + 1 end-- Invalid char
|
||||||
end
|
end
|
||||||
if pos - 1 >= start then
|
if pos - 1 > start then
|
||||||
push_line(lines, text:sub(start, pos - 1), maxlines)
|
push_line(lines, text:sub(start, pos - 1), maxlines)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
2
init.lua
|
@ -35,5 +35,3 @@ if minetest.get_modpath("scifi_nodes") then
|
||||||
dofile(digiterms.path.."/scifi_nodes.lua")
|
dofile(digiterms.path.."/scifi_nodes.lua")
|
||||||
dofile(digiterms.path.."/scifi_crafts.lua")
|
dofile(digiterms.path.."/scifi_crafts.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("action", "[digiterms] loaded.")
|
|
||||||
|
|
4
mod.conf
|
@ -1,4 +0,0 @@
|
||||||
name = digiterms
|
|
||||||
depends = display_api, font_api, digilines, dye, default
|
|
||||||
optional_depends = xpane, scifi_nodes, basic_materials, homedecor, mesecons_microcontroller, mesecons_luacontroller, mesecons_button, mesecons_materials
|
|
||||||
description = Digilines monitors mod for Minetest using Display API / Font API
|
|
79
nodes.lua
|
@ -105,19 +105,13 @@ digiterms.register_monitor('digiterms:cathodic_beige_monitor', {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_beige_top.png", "digiterms_beige_bottom.png",
|
||||||
"digiterms_white_top.png^[colorize:#FFDF00:48",
|
"digiterms_beige_sides.png", "digiterms_beige_sides.png^[transformFX]",
|
||||||
"digiterms_white_bottom.png^[colorize:#FFDF00:48",
|
"digiterms_beige_back.png", "digiterms_beige_front.png",},
|
||||||
"digiterms_white_sides.png^[colorize:#FFDF00:48",
|
|
||||||
"digiterms_white_sides.png^[colorize:#FFDF00:48^[transformFX",
|
|
||||||
"digiterms_white_back.png^[colorize:#FFDF00:48", "digiterms_beige_front.png",},
|
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_beige_top.png", "digiterms_beige_bottom.png",
|
||||||
"digiterms_white_top.png^[colorize:#FFDF00:48",
|
"digiterms_beige_sides.png", "digiterms_beige_sides.png^[transformFX]",
|
||||||
"digiterms_white_bottom.png^[colorize:#FFDF00:48",
|
"digiterms_beige_back.png", "digiterms_beige_front_off.png",},
|
||||||
"digiterms_white_sides.png^[colorize:#FFDF00:48",
|
|
||||||
"digiterms_white_sides.png^[colorize:#FFDF00:48^[transformFX]",
|
|
||||||
"digiterms_white_back.png^[colorize:#FFDF00:48", "digiterms_beige_front_off.png",},
|
|
||||||
})
|
})
|
||||||
minetest.register_alias('digiterms:cathodic_amber_monitor', 'digiterms:cathodic_beige_monitor')
|
minetest.register_alias('digiterms:cathodic_amber_monitor', 'digiterms:cathodic_beige_monitor')
|
||||||
minetest.register_alias('digiterms:cathodic_amber_monitor_off', 'digiterms:cathodic_beige_monitor_off')
|
minetest.register_alias('digiterms:cathodic_amber_monitor_off', 'digiterms:cathodic_beige_monitor_off')
|
||||||
|
@ -143,15 +137,13 @@ digiterms.register_monitor('digiterms:cathodic_white_monitor', {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_white_top.png", "digiterms_white_bottom.png",
|
||||||
"digiterms_white_top.png", "digiterms_white_bottom.png",
|
"digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]",
|
||||||
"digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]",
|
"digiterms_white_back.png", "digiterms_white_front.png",},
|
||||||
"digiterms_white_back.png", "digiterms_white_front.png",},
|
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_white_top.png", "digiterms_white_bottom.png",
|
||||||
"digiterms_white_top.png", "digiterms_white_bottom.png",
|
"digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]",
|
||||||
"digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]",
|
"digiterms_white_back.png", "digiterms_white_front_off.png",},
|
||||||
"digiterms_white_back.png", "digiterms_white_front_off.png",},
|
|
||||||
})
|
})
|
||||||
minetest.register_alias('digiterms:cathodic_green_monitor', 'digiterms:cathodic_white_monitor')
|
minetest.register_alias('digiterms:cathodic_green_monitor', 'digiterms:cathodic_white_monitor')
|
||||||
minetest.register_alias('digiterms:cathodic_green_monitor_off', 'digiterms:cathodic_white_monitor_off')
|
minetest.register_alias('digiterms:cathodic_green_monitor_off', 'digiterms:cathodic_white_monitor_off')
|
||||||
|
@ -177,19 +169,13 @@ digiterms.register_monitor('digiterms:cathodic_black_monitor', {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_black_top.png", "digiterms_black_bottom.png",
|
||||||
"digiterms_white_top.png^[colorize:#120F02:186",
|
"digiterms_black_sides.png", "digiterms_black_sides.png^[transformFX]",
|
||||||
"digiterms_white_bottom.png^[colorize:#120F02:186",
|
"digiterms_black_back.png", "digiterms_black_front.png",},
|
||||||
"digiterms_white_sides.png^[colorize:#120F02:186",
|
|
||||||
"digiterms_white_sides.png^[colorize:#120F02:186^[transformFX]",
|
|
||||||
"digiterms_white_back.png^[colorize:#120F02:186", "digiterms_black_front.png",},
|
|
||||||
}, {
|
}, {
|
||||||
tiles = {
|
tiles = { "digiterms_black_top.png", "digiterms_black_bottom.png",
|
||||||
"digiterms_white_top.png^[colorize:#120F02:186",
|
"digiterms_black_sides.png", "digiterms_black_sides.png^[transformFX]",
|
||||||
"digiterms_white_bottom.png^[colorize:#120F02:186",
|
"digiterms_black_back.png", "digiterms_black_front_off.png",},
|
||||||
"digiterms_white_sides.png^[colorize:#120F02:186",
|
|
||||||
"digiterms_white_sides.png^[colorize:#120F02:186^[transformFX]",
|
|
||||||
"digiterms_white_back.png^[colorize:#120F02:186", "digiterms_black_front_off.png",},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- KEYBOARDS
|
-- KEYBOARDS
|
||||||
|
@ -212,7 +198,7 @@ local keyboard_on_rightclick = function(pos, node, player, itemstack, pointed_th
|
||||||
if owned then
|
if owned then
|
||||||
local fs = "size[8,5]"..
|
local fs = "size[8,5]"..
|
||||||
default.gui_bg..default.gui_bg_img..default.gui_slots..
|
default.gui_bg..default.gui_bg_img..default.gui_slots..
|
||||||
"field[1,1;3,1;channel;Channel;"..channel.."]"..
|
"field[1,1;3,1;channel;Chanel;"..channel.."]"..
|
||||||
"field[1,3;6.5,1;text;Type text:;]"..
|
"field[1,3;6.5,1;text;Type text:;]"..
|
||||||
"field_close_on_enter[text;true]button_exit[2.5,4;3,1;send;Send]"
|
"field_close_on_enter[text;true]button_exit[2.5,4;3,1;send;Send]"
|
||||||
if protected then
|
if protected then
|
||||||
|
@ -266,13 +252,9 @@ minetest.register_node('digiterms:beige_keyboard', {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
tiles = {
|
tiles = { "digiterms_beige_keyboard_top.png", "digiterms_beige_keyboard_bottom.png",
|
||||||
"digiterms_white_keyboard_top.png^[colorize:#FFDF00:48",
|
"digiterms_beige_keyboard_sides.png", "digiterms_beige_keyboard_sides.png",
|
||||||
"digiterms_white_keyboard_bottom.png^[colorize:#FFDF00:48",
|
"digiterms_beige_keyboard_sides.png", "digiterms_beige_keyboard_sides.png",},
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#FFDF00:48",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#FFDF00:48",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#FFDF00:48",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#FFDF00:48",},
|
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
groups = {oddly_breakable_by_hand = 3},
|
groups = {oddly_breakable_by_hand = 3},
|
||||||
node_box = {
|
node_box = {
|
||||||
|
@ -294,10 +276,9 @@ minetest.register_node('digiterms:white_keyboard', {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
tiles = {
|
tiles = { "digiterms_white_keyboard_top.png", "digiterms_white_keyboard_bottom.png",
|
||||||
"digiterms_white_keyboard_top.png", "digiterms_white_keyboard_bottom.png",
|
"digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png",
|
||||||
"digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png",
|
"digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png",},
|
||||||
"digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png",},
|
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
groups = {oddly_breakable_by_hand = 3},
|
groups = {oddly_breakable_by_hand = 3},
|
||||||
node_box = {
|
node_box = {
|
||||||
|
@ -319,13 +300,9 @@ minetest.register_node('digiterms:black_keyboard', {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
tiles = {
|
tiles = { "digiterms_black_keyboard_top.png", "digiterms_black_keyboard_bottom.png",
|
||||||
"digiterms_white_keyboard_top.png^[colorize:#120F02:186",
|
"digiterms_black_keyboard_sides.png", "digiterms_black_keyboard_sides.png",
|
||||||
"digiterms_white_keyboard_bottom.png^[colorize:#120F02:186",
|
"digiterms_black_keyboard_sides.png", "digiterms_black_keyboard_sides.png",},
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#120F02:186",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#120F02:186",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#120F02:186",
|
|
||||||
"digiterms_white_keyboard_sides.png^[colorize:#120F02:186",},
|
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
groups = {oddly_breakable_by_hand = 3},
|
groups = {oddly_breakable_by_hand = 3},
|
||||||
node_box = {
|
node_box = {
|
||||||
|
|
|
@ -23,23 +23,23 @@ local wire = 'digilines:wire_std_00000000'
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digiterms:scifi_glassscreen",
|
output = "digiterms:scifi_glassscreen",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "scifi_nodes:glassscreen", wire }
|
recipe = { "scifi_nodes:glassscreen", "digilines:wire_std_00000000" }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digiterms:scifi_widescreen",
|
output = "digiterms:scifi_widescreen",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "scifi_nodes:widescreen", wire }
|
recipe = { "scifi_nodes:widescreen", "digilines:wire_std_00000000" }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digiterms:scifi_tallscreen",
|
output = "digiterms:scifi_tallscreen",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "scifi_nodes:tallscreen", wire }
|
recipe = { "scifi_nodes:tallscreen", "digilines:wire_std_00000000" }
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digiterms:scifi_keysmonitor",
|
output = "digiterms:scifi_keysmonitor",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = { "scifi_nodes:keysmonitor", wire }
|
recipe = { "scifi_nodes:keysmonitor", "digilines:wire_std_00000000" }
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,9 +21,9 @@ digiterms.register_monitor("digiterms:scifi_glassscreen", {
|
||||||
description = "Digiline glassscreen",
|
description = "Digiline glassscreen",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = 15,
|
||||||
tiles = {
|
tiles = {
|
||||||
"digiterms_scifi_glscrn.png",
|
"digiterms_scifi_glscrn.png",
|
||||||
"digiterms_scifi_glscrn.png",
|
"digiterms_scifi_glscrn.png",
|
||||||
|
|
BIN
textures/digiterms_beige_back.png
Normal file
After Width: | Height: | Size: 642 B |
BIN
textures/digiterms_beige_bottom.png
Normal file
After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 572 B |
BIN
textures/digiterms_beige_keyboard_bottom.png
Normal file
After Width: | Height: | Size: 421 B |
BIN
textures/digiterms_beige_keyboard_sides.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
textures/digiterms_beige_keyboard_top.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
textures/digiterms_beige_sides.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
textures/digiterms_beige_top.png
Normal file
After Width: | Height: | Size: 590 B |
BIN
textures/digiterms_black_back.png
Normal file
After Width: | Height: | Size: 620 B |
BIN
textures/digiterms_black_bottom.png
Normal file
After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 545 B |
BIN
textures/digiterms_black_keyboard_bottom.png
Normal file
After Width: | Height: | Size: 418 B |
BIN
textures/digiterms_black_keyboard_sides.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
textures/digiterms_black_keyboard_top.png
Normal file
After Width: | Height: | Size: 618 B |
BIN
textures/digiterms_black_sides.png
Normal file
After Width: | Height: | Size: 624 B |
BIN
textures/digiterms_black_top.png
Normal file
After Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 559 B After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 576 B |