-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bidirectional lane connection UI #1492
Conversation
+/- cursors subtool can override cursor
Could the arrowhead be solid triangle in same colour as the connector line? |
@aubergine10 , I can make them triangle but not solid triangle. |
maxY: maxY, | ||
alphaBlend: true, | ||
renderLimits: underground); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aubergine10 you can play with this part of the code to see what you like most (Hot reload works):
DrawArrowHead() for >
shape
DrawArrowHead2() for triangle shape
length : determines the size of the arms
size: determines the width of the arms (the thickness of the border lines cannot be controlled, increasing width increases the filled in area inside).
Hmm, why not use solid triangle texture and render it rotated as quad? Check out |
@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. |
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: #1500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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.