aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainhud.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-12-08 17:12:57 +0100
committerorwell96 <orwell@bleipb.de>2018-12-08 17:12:57 +0100
commitc3c5431412ddb65e08f55e56e1f51fb442b746b0 (patch)
tree03e15e99f6044427b093ffaf94779e1f22e9d874 /advtrains/trainhud.lua
parente37f4f9188808c3a91be55ba90b9b666341af3cf (diff)
downloadadvtrains-c3c5431412ddb65e08f55e56e1f51fb442b746b0.tar.gz
advtrains-c3c5431412ddb65e08f55e56e1f51fb442b746b0.tar.bz2
advtrains-c3c5431412ddb65e08f55e56e1f51fb442b746b0.zip
Shunt signals (not exactly Ks), along with fixes in other components that those rely on
Diffstat (limited to 'advtrains/trainhud.lua')
-rw-r--r--advtrains/trainhud.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua
index 407518f..8630d62 100644
--- a/advtrains/trainhud.lua
+++ b/advtrains/trainhud.lua
@@ -197,13 +197,14 @@ function advtrains.hud_train_format(train, flip)
secondLine="ATC"..b..": "..tvels..ad..(train.atc_command or "")
else
secondLine = "Manual operation"
+ if train.ctrl.lzb then
+ secondLine = "-!- Safety override -!-"
+ end
end
- if train.ctrl.lzb then
- secondLine = "-!- Safety override -!-"
- end
+ local shtind = train.is_shunt and "S" or ">"
topLine=" ["..mletter[fct].."] {"..levers.."} "..doorstr[(train.door_open or 0) * fct].." "..(train.line and "L: "..train.line or "")
- firstLine=attrans("Speed:").." |"..string.rep("+", vel)..string.rep("_", res-vel).."|"..string.rep("_", max-res).."> "..vel_kmh.." km/h"
+ firstLine=attrans("Speed:").." |"..string.rep("+", vel)..string.rep("_", res-vel).."|"..string.rep("_", max-res)..shtind.." "..vel_kmh.." km/h"
if train.speed_restriction == 0 then
firstLine = "OVERRUN RED SIGNAL! Examine situation and reverse train to move again."
end