1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2025-09-08 09:25:38 +02:00

2 Commits

Author SHA1 Message Date
Vanessa Dannenberg
589ab5f19a don't reset scroll position if re-printing the same message 2018-08-22 18:40:58 -04:00
Vanessa Dannenberg
bbb2b57328 fix shifted block shades (char 143, 144) 2018-08-21 21:14:27 -04:00
3 changed files with 4 additions and 1 deletions

View File

@@ -341,10 +341,13 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
else else
msg = string.gsub(msg, "//", string.char(30)) msg = string.gsub(msg, "//", string.char(30))
led_marquee.set_timer(pos, 0) led_marquee.set_timer(pos, 0)
local last_msg = meta:get_string("last_msg")
meta:set_string("last_msg", msg) meta:set_string("last_msg", msg)
led_marquee.display_msg(pos, channel, msg) led_marquee.display_msg(pos, channel, msg)
if last_msg ~= msg then
meta:set_int("index", 1) meta:set_int("index", 1)
end end
end
else else
local asc = string.byte(msg) local asc = string.byte(msg)
if asc > 29 and asc < 256 then if asc > 29 and asc < 256 then

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 268 B