Stations set train colour

by ccooke

Set a trains colour when it stops at a station using R, G and B signals

Content
3 years ago
1.1
284
Trains

FAQ

Stations Set Train Colour

Setting the colour

Connect a circuit network to a station and set the signal.
When a train stops, the R, G, B and A signals will be read and used to set the colour and transparency. They default to 0,0,0,128.

Resetting the colour

Connect a circuit network to a station and set the signal.
When a train stops, the train's colour will be reset to the default.

You can also set the module option Default Reset, which causes all stations to reset colour unless the signal is set.

Precedence

If the signal is set, the station will always reset the train's colour to default.

Module Options

  • Default Reset - Reset train colours by default
  • Default Red, Green, Blue and Alpha - The default colour for trains. Initially set to the vanilla standard of [234,17,0,128]
  • Debug - Generate debug messages
  • Red, Green, Blue and Alpha signals - The names of the signals to use for colour. Do not change these unless you know what you are doing