summaryrefslogtreecommitdiff
path: root/il_timetable/init_code.lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-11-14 00:00:02 +0100
committerautocommitter <autocommitter@linux-forks.de>2024-11-14 00:00:02 +0100
commit659d0af30c8433b96aad397351e218ca7e825c99 (patch)
tree686c0f2aef87d92777b0fbeff562641e87145bd2 /il_timetable/init_code.lua
parent35d4f5460ec81ce82edfe8576012836c6e73c259 (diff)
downloadluaatc_envs-659d0af30c8433b96aad397351e218ca7e825c99.tar.gz
luaatc_envs-659d0af30c8433b96aad397351e218ca7e825c99.tar.bz2
luaatc_envs-659d0af30c8433b96aad397351e218ca7e825c99.zip
State at 2024-11-14
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