summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 15:03:29 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 15:03:29 +0200
commitd296ce57f83607ae5aec841e9b3c75b3403e1899 (patch)
treef9b6b928183bb1257ca3269c6a6979e315592d1e
parent39068d9b4c43f2ccec4fc2634a862c1f01bc0135 (diff)
downloadil_timetable-d296ce57f83607ae5aec841e9b3c75b3403e1899.tar.gz
il_timetable-d296ce57f83607ae5aec841e9b3c75b3403e1899.tar.bz2
il_timetable-d296ce57f83607ae5aec841e9b3c75b3403e1899.zip
State at 2023-11-28
-rw-r--r--init_code.lua14
-rw-r--r--nodes/(-614,15,-411).lua7
-rw-r--r--nodes/(1236,3,1016).lua2
3 files changed, 20 insertions, 3 deletions
diff --git a/init_code.lua b/init_code.lua
index a4aee4e..15c760e 100644
--- a/init_code.lua
+++ b/init_code.lua
@@ -445,8 +445,9 @@ end
station = "The Cube",
title = "The Cube (Track 2)",
interval = 30,
- display1 = "display1",
- display2 = "display2",
+ display1 = "d1",
+ display2 = "d2",
+ display3 = "d3"
}]]
function F.ttp_station_display(p)
--L425
@@ -515,6 +516,15 @@ if p.display2 then
end
digiline_send(p.display2, text2)
end
+if p.display3 then
+ local text3 = ""
+ for i=8,11 do
+ if next_trains[i] then
+ text3 = text3 .. next_trains[i].text .. "\n"
+ end
+ end
+ digiline_send(p.display3, text3)
+end
--if not p.notimer then
-- schedule_in(p.interval or 30,"foo")
--end
diff --git a/nodes/(-614,15,-411).lua b/nodes/(-614,15,-411).lua
new file mode 100644
index 0000000..e077d42
--- /dev/null
+++ b/nodes/(-614,15,-411).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"S12_N", "S12_S"},
+ departure = {},
+ station = "Spawn Main",
+ title = "Spawn Main T3",
+ display1 = "d1",
+}) \ No newline at end of file
diff --git a/nodes/(1236,3,1016).lua b/nodes/(1236,3,1016).lua
index 2a4682b..fb19feb 100644
--- a/nodes/(1236,3,1016).lua
+++ b/nodes/(1236,3,1016).lua
@@ -2,7 +2,7 @@ F.ttp_begin({
stn = "Silver Coast Central Siding",
tt = "S12_S", -- timetable ID
depint = "05;00", --departure slot interval
- depoff = "00;00", --departure slot offset
+ depoff = "01;40", --departure slot offset
doorside = "C",
reverse = false,
only_lines = {S12=true},