1
0
mirror of https://github.com/pyrollo/digiterms.git synced 2025-09-05 23:55:22 +02:00

4 Commits
dev ... master

Author SHA1 Message Date
Pierre-Yves Rollo
04d32581d3 Fixed bug preventing one char lines from being displayed 2019-02-01 10:26:49 +01:00
Pierre-Yves Rollo
77b60b607d Fixed typo in keyboard form 2019-02-01 10:06:31 +01:00
Pierre-Yves Rollo
b61dd3872f Fixed typo in Readme 2019-02-01 09:59:39 +01:00
Pierre-Yves Rollo
10a45c2ca1 Updated readme 2018-12-13 21:58:51 +01:00
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