Closed kianzarrin closed 2 years ago
this is how it looks like. I can tweak the size
this is also possible. Also I can make it triangle. I can also easily play with angles.
Could the arrowhead be solid triangle in same colour as the connector line?
@aubergine10 , I can make them triangle but not solid triangle. Also if it is the same color as the line then it will be harder to detect.
@aubergine10 , I can make them triangle but not solid triangle. Also if it is the same color as the line then it will be harder to detect.
Hmm, why not use solid triangle texture and render it rotated as quad? Check out NetTool.RenderRoadAccessArrow
@krzychu124 As I said my code does has alternate to use quads. its just that its empty inside. I suspect CS quads are smaller and therefore the borders fill in the whole lane. Since our lanes has sheath, using quad for us might get a big complicated. I give it another try
meanwhile that I am playing with shapes. it would be nice to review the rest of the code. it does not have to wait.
meanwhile that I am playing with shapes. it would be nice to review the rest of the code. it does not have to wait.
The thing is you don't need to build the shape... Use texture decal and just rotate it to face correct direction similar to what you already done with arrows.
Does the triangle need to be so large (256x256) ?
complicated UI improvements will be tracked in: https://github.com/CitiesSkylinesMods/TMPE/issues/1500 I don't want to make this PR too big.
fixes #1214 fixes #762
VectorUtil
to rotate by +-90 degreeDrawArrowHead()
toHighlight
IsBidirectional
toLaneEnd
class (see code comments). this helps me decide if I need to draw arrow heads or not.DrawLaneCurve()
now can draw arrow head at 2/3rd of the way.