forked from mtcontrib/led_marquee
add "clear" as more readable an alternate to "off_multi"
This commit is contained in:
parent
244b5011a1
commit
57d4c99eb8
2
init.lua
2
init.lua
@ -189,7 +189,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
|
|||||||
minetest.swap_node(pos, { name = "led_marquee:char_144", param2 = fdir + (last_color*8)})
|
minetest.swap_node(pos, { name = "led_marquee:char_144", param2 = fdir + (last_color*8)})
|
||||||
elseif msg == "cursor" then
|
elseif msg == "cursor" then
|
||||||
minetest.swap_node(pos, { name = "led_marquee:char_31", param2 = fdir + (last_color*8)})
|
minetest.swap_node(pos, { name = "led_marquee:char_31", param2 = fdir + (last_color*8)})
|
||||||
elseif msg == "off_multi" then
|
elseif msg == "off_multi" or msg == "clear" then
|
||||||
msg = string.rep(" ", 1024)
|
msg = string.rep(" ", 1024)
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user