summaryrefslogtreecommitdiff
path: root/il_timetable/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'il_timetable/init_code.lua')
-rw-r--r--il_timetable/init_code.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua
index 5be7317..2915a6d 100644
--- a/il_timetable/init_code.lua
+++ b/il_timetable/init_code.lua
@@ -507,7 +507,8 @@ end
interval = 30,
display1 = "d1",
display2 = "d2",
- display3 = "d3"
+ display3 = "d3",
+ show_trainid = false,
}]]
function F.ttp_station_display(p)
--L425
@@ -522,7 +523,9 @@ local function is_past_station(tstn, stnorder)
end
local function add_train(deptime, line, train, tid)
local tent = {dep = deptime, text =
- rwt.to_string(deptime,true).." "..F.ttp[line].stn_display
+ rwt.to_string(deptime,true)
+ .." "..(p.show_trainid and tid or "")
+ ..F.ttp[line].stn_display
.." +"..train.last_delay}
for i,ntrn in ipairs(next_trains) do
if rwt.diff(ntrn.dep, deptime)<0 then