Improvements for transform gizmos (relative values and QOL improvements) #8371
+158
−71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PREVIEW
TODO
• Match code changes with source
• highlight axis color on rotation gizmo while relative rotation buttons hovered like on position gizmo
COMPARISON
Before

• Window dimensions and layouts changing each time it makes hard to track values
After

• Window dimensions and layouts stays consistent and it makes easy to track values
CHANGES
• Adds relative positioning for move gizmo

• Adds predefined relative rotation for rotate gizmo (selective as 30/45 degree). This will reduce dealing gumball / rotation orbit greatly for basic rotations like 90 degree rotation

• Reduces mouse movements. It cuts distance for X input by half. Improvement came from using "World" instead "World Coordinates" and centering gizmo

• Moves reset button after axis texts to reduce gizmo width. Since there are many input boxes on bottom using it on header makes much more sense. Reduces width by 22px

• Used "World" / "Object" instead "World Coordinates" / "Object Coordinates" to reduce window width. Reduces width by 52px

• Used "World" / "Object" as colored text to create differentiation with Position/Rotation/Scale
• Adds "World" / "Object" to scale gizmo to increase consistency
• Fixes all gizmos to center of canvas and creates all all widgets with same layout. Check comparison section on top
• Added axis highlighting for relative position input box and relative rotation buttons (while hover)


ABOUT CODE CHANGES
• It requires a bit changes on code. I checked BBL code and it already different then ours
• Most of change coming from using fixed layout. I have to move space_size, unit_size, caption_max to top of each render function
• Moving reset button to top also requires repositioning on code but using fixed window width eliminates requirement of invincible button
EXISTING BUGS
• Values giving weird results while using relative rotation. But i can replicate this input values manually. I assume there is a problem using PI on calculations

bug on existing build. checked BBL and they have same problem

• Rotation gumball axes colored wrong that makes confusion

• Rotation axis highlighting shows on wrong angle if values changed
