mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-06-28 14:26:18 +02:00
Compare commits
3 Commits
20180821-2
...
2018-08-22
Author | SHA1 | Date | |
---|---|---|---|
589ab5f19a | |||
bbb2b57328 | |||
1b2e898615 |
12
init.lua
12
init.lua
@ -184,13 +184,6 @@ led_marquee.scroll_text = function(pos, elapsed, skip)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
print("[LED] msg = "..msg)
|
||||
print("[LED] msg len = "..len)
|
||||
print("[LED] index = "..index)
|
||||
print("[LED] r = "..index)
|
||||
print("[LED] f = "..index)
|
||||
|
||||
led_marquee.display_msg(pos, channel, "/"..colorchar..string.sub(msg, f)..string.rep(" ", skip + 1))
|
||||
|
||||
meta:set_int("index", f)
|
||||
@ -348,9 +341,12 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
|
||||
else
|
||||
msg = string.gsub(msg, "//", string.char(30))
|
||||
led_marquee.set_timer(pos, 0)
|
||||
local last_msg = meta:get_string("last_msg")
|
||||
meta:set_string("last_msg", msg)
|
||||
led_marquee.display_msg(pos, channel, msg)
|
||||
meta:set_int("index", 1)
|
||||
if last_msg ~= msg then
|
||||
meta:set_int("index", 1)
|
||||
end
|
||||
end
|
||||
else
|
||||
local asc = string.byte(msg)
|
||||
|
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 |
Reference in New Issue
Block a user