Transport Fever 2

Transport Fever 2

Create your own game world!
Give your game a personal touch and change it to your liking. Create, share and install mods. Customize the game with new landscapes, vehicles, stations, assets and more.
robvkuk 9 Mar, 2024 @ 1:21am
Show line number without showing the number in the line name
I'm using the Citaro C2 bus mod which has a line number display separate from the line name and destination. In the screenshots (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2027045851&searchtext=citaro) it shows the line number 1 with the line name "Line". How do you do this? The only way I can get a number to show up is to add a number to the line name (e.g. "Line 1") but then the line name still shows "Line 1" with the number.
< >
Showing 1-4 of 4 comments
RadiKyle 6 9 Mar, 2024 @ 8:42am 
Hi, I wonder if they are using one of the line name/number mods? Here's one:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2528202101
doug 29 9 Mar, 2024 @ 8:54am 
You would need to set the labelText entry up something like this:

{
type = "LINE_NAME",
transf = {
0, .1, 0, 0,
0, 0, .1, 0,
0.1, 0, 0, 0,
0, 0, 0, 1,
},
size = { 24, 4 },
color = { .85, .85, .85, },
fitting = "SCALE",
alignment = "CENTER",
verticalAlignment = "CENTER",
renderMode = "STD",
params = {expr = ".*", replace = "Line \\0",},
filter = "NUMBER",
childId = "RootNode",

},
doug 29 9 Mar, 2024 @ 8:55am 
Using the params entry, you can insert custom text into the display, along with the value being captured by the filter.
https://www.transportfever2.com/wiki/doku.php?id=modding:resourcetypes:mdl#label_list
robvkuk 10 Mar, 2024 @ 12:40pm 
Originally posted by RadiKyle:
Hi, I wonder if they are using one of the line name/number mods? Here's one:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2528202101

I think you're right, that seems to do already what doug suggests. Thanks for the suggestions both!
< >
Showing 1-4 of 4 comments
Per page: 1530 50