4 Commits
dev ... master

3 changed files with 10 additions and 4 deletions

View File

@ -1,11 +1,14 @@
# Digiterms - Digilines Terminals
Version 0.1
Version 0.2
Digilines monitors mod for Minetest using Display API / Font API.
Digilines monitors and keyboards mod for Minetest using Display API / Font API.
![Presentation image of Digiterms](screenshot.png)
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.
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).
@ -20,6 +23,9 @@ If `scifi_nodes` mod is enabled, scifi monitors can be turned into digiterms by
## Changelog
### 2018-12-13 (Version 0.2)
- Keyboards (Beige, white and black).
- Third cathodic monitor, the black one.
### 2018-12-09 (Version 0.1)
- Cathodic (2) and LCD monitors and corresponding craft recipes.
- Scifi nodes monitors : tallscreen, widescreen, glassscreen and keysmonitor

View File

@ -77,7 +77,7 @@ local function push_text(lines, text, maxlines, maxcolumns)
elseif b >= 0xC2 then pos = pos + 2
else pos = pos + 1 end-- Invalid char
end
if pos - 1 > start then
if pos - 1 >= start then
push_line(lines, text:sub(start, pos - 1), maxlines)
end
end

View File

@ -198,7 +198,7 @@ local keyboard_on_rightclick = function(pos, node, player, itemstack, pointed_th
if owned then
local fs = "size[8,5]"..
default.gui_bg..default.gui_bg_img..default.gui_slots..
"field[1,1;3,1;channel;Chanel;"..channel.."]"..
"field[1,1;3,1;channel;Channel;"..channel.."]"..
"field[1,3;6.5,1;text;Type text:;]"..
"field_close_on_enter[text;true]button_exit[2.5,4;3,1;send;Send]"
if protected then