aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2020-12-23 11:29:07 +0100
committerywang <yw05@forksworld.de>2020-12-23 11:29:07 +0100
commit5a0a6fa96d448210571a7faf490711995af8e05c (patch)
treed3ae0d93bf561a3e5ebbb583a80e4f40a84e8b5b
parentf4e2277f32c5ed2419bed607e0d48a040db8b865 (diff)
downloadadvtrains-5a0a6fa96d448210571a7faf490711995af8e05c.tar.gz
advtrains-5a0a6fa96d448210571a7faf490711995af8e05c.tar.bz2
advtrains-5a0a6fa96d448210571a7faf490711995af8e05c.zip
Minor improvements
-rw-r--r--advtrains/trainhud.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua
index b1683b8..b17a6f6 100644
--- a/advtrains/trainhud.lua
+++ b/advtrains/trainhud.lua
@@ -252,10 +252,10 @@ function advtrains.hud_train_format(train, flip)
ht[#ht+1] = ("%d,100=(advtrains_hud_bg.png^[resize\\:%dx30^[colorize\\:gray\\:255)"):format(10+max*14, 280-max*14)
end
if res and res > 0 then
- ht[#ht+1] = ("%d,95=(advtrains_hud_bg.png^[resize\\:3x40^[colorize\\:red\\:255)"):format(9+res*14)
+ ht[#ht+1] = ("%d,95=(advtrains_hud_bg.png^[resize\\:2x40^[colorize\\:red\\:255)"):format(10+res*14)
end
if train.tarvelocity then
- ht[#ht+1] = ("%d,130=(advtrains_hud_arrow.png^[multiply\\:cyan^[transformFY)"):format(2+train.tarvelocity*14)
+ ht[#ht+1] = ("%d,130=(advtrains_hud_arrow.png^[multiply\\:cyan^[transformFY)"):format(3+train.tarvelocity*14)
end
local lzb = train.lzb
if lzb and lzb.oncoming then
@@ -267,7 +267,7 @@ function advtrains.hud_train_format(train, flip)
ht[#ht+1] = "283,43=(advtrains_hud_bg.png^[resize\\:14x14^[colorize\\:red\\:255)"
else
ht[#ht+1] = "243,43=(advtrains_hud_bg.png^[resize\\:14x14^[colorize\\:orange\\:255)"
- ht[#ht+1] = ("%d,85=(advtrains_hud_arrow.png^[multiply\\:red)"):format(2+k.spd*14)
+ ht[#ht+1] = ("%d,85=(advtrains_hud_arrow.png^[multiply\\:red)"):format(3+k.spd*14)
end
break
end