"Lights" container
From TrainzOnline
(Difference between revisions)
(One intermediate revision by one user not shown) | |||
Line 15: | Line 15: | ||
In this case, light '0' will be shown with file 'corona_green.tga' (found in the asset directory) attached to attachment point 'a.light0' in the signal mesh. The [[Signals_container|signals container]] will refer to it as '0'. | In this case, light '0' will be shown with file 'corona_green.tga' (found in the asset directory) attached to attachment point 'a.light0' in the signal mesh. The [[Signals_container|signals container]] will refer to it as '0'. | ||
− | |||
+ | '''Note:''' To comply with TANE onwards creators need to reference the corona via a texture.txt file for example "corona_red.tga" in the config file would need to read "corana_red.texture" So the above example would read | ||
− | lights{ | + | lights { |
0 { | 0 { | ||
− | + | corona "corona_green.texture" | |
} | } | ||
1 { | 1 { | ||
− | + | corona "corona_yellow.texture" | |
} | } | ||
2 { | 2 { | ||
− | + | corona "corona_red.texture" | |
} | } | ||
− | } | + | } |
An example of the corona_red.texture.txt file would be | An example of the corona_red.texture.txt file would be | ||
Line 37: | Line 37: | ||
This style of referencing will also work with TS12. Each of the coronas must have a solid background and not transparent. | This style of referencing will also work with TS12. Each of the coronas must have a solid background and not transparent. | ||
− | See also: [[ | + | See also: [[KIND_MOSignal|Kind MOSignal]] |
[[Category:Config Container|L]] | [[Category:Config Container|L]] |
Latest revision as of 10:03, 15 May 2024
lights { 0 { corona "corona_green.tga" } 1 { corona "corona_yellow.tga" } 2 { corona "corona_red.tga" } }
Defines what coronas are attached to what light attachment points.
In this case, light '0' will be shown with file 'corona_green.tga' (found in the asset directory) attached to attachment point 'a.light0' in the signal mesh. The signals container will refer to it as '0'.
Note: To comply with TANE onwards creators need to reference the corona via a texture.txt file for example "corona_red.tga" in the config file would need to read "corana_red.texture" So the above example would read
lights { 0 { corona "corona_green.texture" } 1 { corona "corona_yellow.texture" } 2 { corona "corona_red.texture" } }
An example of the corona_red.texture.txt file would be
Primary=red_corona.tga
Tile=st
This style of referencing will also work with TS12. Each of the coronas must have a solid background and not transparent. See also: Kind MOSignal