[Patch] Transparent and invisible transport ways

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

[Patch] Transparent and invisible transport ways

Post by Wolf01 »

I was thinking for this feature since the transparency options got introduced.

I think roads and rails might be made transparent and fully invisible to ease the building of connections (an example is shown in the picture attached) and maybe to see why there's an edge around which don't allow to terraform in the middle of a city.

I usually build trenches like the one in the screenshot to make highways without placing the one way sign in every single tile, or between the rail and the road to deny level crossings, especially in cities.

In the screenshot, made before last modifications, you can see that transparent roads cannot be made since the road draws a full tile and is not possible to make only the road part transparent to show the slope under it.

Oh, I forgot to tell that the transparency works only for slopes, since there is nothing to show under a plain tile road, and this behaviour can be seen on the screenshot.

I think I'm not be able to finish it because it will get more complicate, if somebody have a better idea or wants to take it, here is the patch of all the work I've done.
Attachments
why_transparent_roads.png
transp_roads_rails_slopes_r20083.diff
(5.06 KiB) Downloaded 181 times
User avatar
Vaulter
Traffic Manager
Traffic Manager
Posts: 185
Joined: 21 Dec 2004 05:35
Skype: andrey-zaharov
Location: St. Petersburg, Russia
Contact:

Re: [Patch] Transparent and invisible transport ways

Post by Vaulter »

Nice
But have such pic on coast lines
Attachments
on water
on water
tr2.png (52.08 KiB) Viewed 3137 times
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Re: [Patch] Transparent and invisible transport ways

Post by Wolf01 »

With that patch you will have this behaviour everywhere, I changed a little thing at the last moment after the screenshot.
The problem is that the transparent tile is 1 step over the non-transparent tile ('cause of optimisation), but since I need to change other things to make it work really as intended, I'll fix it later.
example: draw only the road overlay as transparent and not also the ground under it, but with original graphics I think it's not possible, I'll try to do something in the next days
User avatar
Vaulter
Traffic Manager
Traffic Manager
Posts: 185
Joined: 21 Dec 2004 05:35
Skype: andrey-zaharov
Location: St. Petersburg, Russia
Contact:

Re: [Patch] Transparent and invisible transport ways

Post by Vaulter »

constantly after save-load game - overmess transparent options
:(
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google [Bot] and 21 guests