-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Which IMT are you using? Stable, BETA, BETA with Early Access
Stable
What computer OS are you using? (ex: Linux (version), MACOS, Windows (version))
Windows 10
Describe the bug
When you draw a lane decoration and make it Text style, the 0° angle and start/end alignments always, unfailingly, assume that every lane is to the right of the centerline in the direction of travel. This happens even on left-hand-drive maps, even on roads with unbalanced lanes, or roads with backwards lanes. It doesn't matter in which direction you actually draw the lane, and the endpoints of the lane cannot be reversed.
To Reproduce
Steps to reproduce the behavior:
- Create any road that has at least one lane left of its center (in the direction of travel). This can be any (vanilla) road in a left-hand-drive map, or any one-way road at all.
- Open the Intersection Marking Tool
- Draw a lane (line) along the lanes left of the centerline
- Set the style to Text
- Enter some text
Expected behavior
The text should be readable in the lane's direction of travel.
Screenshots
This screenshot demonstrates the problem in a city set to left-hand drive. From left to right, the roads are:
- Two-Lane Road (vanilla)
- Two-Lane One-Way Road with Trees (vanilla)
- 1+1 Reverse Lane Road (Ryancat)
- Four-Lane Asym Road (1+3) (cylis)
- Basic Road with Turning Lane (cylis)
In all cases, the settings for the text are as follows:

(Note that the left-hand drive and the reverse lane road actually cancel each other out and the texts work as expected on that one. For the road with the bidirectional lane, maybe it'd be nice if the text could show up both ways?)
Additional information
It occurs to me that one could work around this by selecting the opposite alignment and an angle of 180°, but the behavior should be consistent in the first place and the fix may actually have to be mindful of this workaround. A potential non-breaking fix is a simple option to reverse the lane decoration regardless of its style, opt-in for any existing lanes, and future lanes after the fix should start out in the direction actually drawn.
