blob: b95783f51571ab42f6c65e6d04e8a8511cf47eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
if event.digiline then
if event.channel ~= "track_control" then return end
local err = 0
if not atc_id then err = 1 end
if not atc_arrow then err = 1 end
if type(event.msg) ~= "table" then err = 1 end
if err == 1 then
digiline_send("lcd","--Error-- | Check Train")
return
end
local i = event.msg
set_rc(i.ars or "")
atc_set_text_inside("Destination: "..(i.name or "Unknown").."\nCargo: "..(i.info or "Unknown"))
atc_set_text_outside(i.outside or "")
end
|