diff options
author | ywang <yw05@forksworld.de> | 2021-01-07 21:05:05 +0100 |
---|---|---|
committer | ywang <yw05@forksworld.de> | 2021-01-07 21:05:05 +0100 |
commit | 8655eebc5fe8bf484ea2d96041b7b1bf70242e1b (patch) | |
tree | e7a61440faacc3ebaddd8f2dacbdf16ce2e7fa5c /advtrains | |
parent | 6575b3dac7773aff72ed3dbc126fa0a48ec58c4f (diff) | |
download | advtrains-8655eebc5fe8bf484ea2d96041b7b1bf70242e1b.tar.gz advtrains-8655eebc5fe8bf484ea2d96041b7b1bf70242e1b.tar.bz2 advtrains-8655eebc5fe8bf484ea2d96041b7b1bf70242e1b.zip |
Change color of max speed indication
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/trainhud.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index 4697952..7d0b423 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -252,7 +252,7 @@ function advtrains.hud_train_format(train, flip) ht[#ht+1] = sformat("%d,100=(advtrains_hud_bg.png^[resize\\:11x30^[colorize\\:white)", i*14-3) end for i = max+1, 20, 1 do - ht[#ht+1] = sformat("%d,100=(advtrains_hud_bg.png^[resize\\:11x30^[colorize\\:lightgray)", i*14-3) + ht[#ht+1] = sformat("%d,100=(advtrains_hud_bg.png^[resize\\:11x30^[colorize\\:darkslategray)", i*14-3) end if res and res > 0 then ht[#ht+1] = sformat("%d,95=(advtrains_hud_bg.png^[resize\\:3x40^[colorize\\:red\\:255)", 8+res*14) @@ -289,7 +289,7 @@ function advtrains.hud_train_format(train, flip) end local _, texture = advtrains.hud_train_format { -- dummy train object to demonstrate the train hud - max_speed = 15, speed_restriction = 12, velocity = 12, tarvelocity = 15, + max_speed = 15, speed_restriction = 15, velocity = 15, tarvelocity = 12, active_control = true, lever = 3, ctrl = {lzb = true}, is_shunt = true, door_open = 1, lzb = {oncoming = {{spd=6}}} } |