From 37204846dc93cc059bbea8cbfc88832a9c72e91c Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:52:42 +0200 Subject: State at 2021-04-11 --- il_timetable/init_code.lua | 6 +++--- il_timetable/nodes/(1020,11,1021).lua | 8 ++++++++ il_timetable/nodes/(662,14,1014).lua | 2 +- il_timetable/nodes/(981,15,1041).lua | 9 +++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 il_timetable/nodes/(1020,11,1021).lua create mode 100644 il_timetable/nodes/(981,15,1041).lua (limited to 'il_timetable') diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua index 2cda3a3..c9acd9e 100644 --- a/il_timetable/init_code.lua +++ b/il_timetable/init_code.lua @@ -435,7 +435,7 @@ local function is_past_station(tstn, stnorder) end return true end -local function add_train(deptime, line, train) +local function add_train(deptime, line, train, tid) local tent = {dep = deptime, text = rwt.to_string(deptime,true).." "..F.ttp[line].stn_display .." +"..train.last_delay} @@ -456,7 +456,7 @@ for _,line in ipairs(p.lines) do if train.timetable == line then if train.location == p.station and not train.actual_dep then -- the train is currently standing at this station - add_train(train.planned_dep, line, train) + add_train(train.planned_dep, line, train, id) elseif not is_past_station(train.location, sttp.station_order) then -- train is still approaching, calculate arrival time local trav_dep = rwt.add(train.initial_dep, (sttp.travel_times[p.station] or 0) + STOP_TIME) @@ -467,7 +467,7 @@ for _,line in ipairs(p.lines) do act_dep = plan_dep end end - add_train(act_dep, line, train) + add_train(act_dep, line, train, id) end end end diff --git a/il_timetable/nodes/(1020,11,1021).lua b/il_timetable/nodes/(1020,11,1021).lua new file mode 100644 index 0000000..dc3083a --- /dev/null +++ b/il_timetable/nodes/(1020,11,1021).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"S12_S"}, + departure = {}, + station = "Ehlodex", + title = "Ehlodex", + interval = 30, + display1 = "d", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(662,14,1014).lua b/il_timetable/nodes/(662,14,1014).lua index 4a62729..0ed504e 100644 --- a/il_timetable/nodes/(662,14,1014).lua +++ b/il_timetable/nodes/(662,14,1014).lua @@ -1,5 +1,5 @@ F.ttp_stop({ stn = "Gardon Street", - doorside = "L", + doorside = "R", only_lines={S12=true}, }) \ No newline at end of file diff --git a/il_timetable/nodes/(981,15,1041).lua b/il_timetable/nodes/(981,15,1041).lua new file mode 100644 index 0000000..ac1112f --- /dev/null +++ b/il_timetable/nodes/(981,15,1041).lua @@ -0,0 +1,9 @@ +F.ttp_station_display({ + lines = {"S12_S", "E1_S"}, + departure = {}, + station = "Ehlodex", + title = "Ehlodex", + interval = 30, + display1 = "d1", + display2 = "d2", +}) \ No newline at end of file -- cgit v1.2.3