aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-05-24 21:34:21 +0200
committerY. Wang <yw05@forksworld.de>2022-03-12 18:23:30 +0100
commita936324cee7ef76908f1452f0a7503153d692474 (patch)
treea1afad974569656e64fbfb8fad686628a7a74ab3
parent9a19d8222d193bd9784325176b24ed94c10d95ab (diff)
downloadadvtrains-a936324cee7ef76908f1452f0a7503153d692474.tar.gz
advtrains-a936324cee7ef76908f1452f0a7503153d692474.tar.bz2
advtrains-a936324cee7ef76908f1452f0a7503153d692474.zip
Display train ID in the text HUD
-rw-r--r--advtrains/trainhud.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua
index c4a7427..00627f4 100644
--- a/advtrains/trainhud.lua
+++ b/advtrains/trainhud.lua
@@ -181,6 +181,8 @@ Value Disp Control Meaning
function advtrains.hud.dtext(train, flip)
local st = {}
if train.debug then st = {train.debug} end
+
+ st[#st+1] = attrans("Train ID: @1", train.id)
if res and res == 0 then
st[#st+1] = attrans("OVERRUN RED SIGNAL! Examine situation and reverse train to move again.")