Hello all,
I need some help from any WME API experts to try to implement a helping function for roundabouts. The end result is to be offered to an existing script or released as a standalone script.
The idea is to provide a visual guidance to the roundabout rules at the wiki, so editors can put the nodes at the right place to obtain the right instructions.
The problem is that at the moment I'm trying to change the highlights script and trying to draw some lines when a node is selected, as the node selection binding is already implemented there, but I don't know yet how to draw the lines.
For the first version I'd like to assume the roundabout is a pure circle, and draw 6 lines from the selected node to the opposite directions of the roundabout, marking the 3x2 relevant angles - 90+-30, 180+-30, 270+-30, so one can know where to put the other nodes to obtain the "straight ahead/turn left/turn right" or, when it's not perpendicular, the right "take the nth exit".
For completeness, the context is that in Portugal we have hundreds, if not some thousands of roundabouts, and after struggling with broken roundabouts, now I'm struggling to get the right instructions and have the script help me instead of putting a ruler over the screen.
Any WME script expert out there to help me?
PS: I've already pinged timbone to ask him this feature and offer my help and keep him posted of my progress.



