correct for the doc's Radial Menu (incomplete) #175
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.
doc's are incomplite but better from what is now
ps. read it and run the auto correct on it
my dyslexic brein has some limits
Important
The Allow Change Selection When Inside gives out the math equation for a reason don't remove it
Preview
Radial Menu
Radial menus are useful when making a quick select menu, where normal menu types just do not fit.
this regon is defined with
Center = ((1.0 - EdgeOffset) - Thickness) * uniformSize * 0.5,
keeping value false is useful when creating a stacked menus
Note
The radial menu has two modes
Note
Default background brush is not working, the draw function is overridden by Radial Menu.
background brush is coming from the base class
Control
and is not supported by Radial Menu, yes this is intentional.Warning
Adding more than 127 elements as a child where child is parent of radial menu will cause int8 overflow.
This might have caused unintended behavior
Layout Controller
Any child control added to the radial menu will be automatically layout around its center.
Note
It's recommended to add children by a script in this mode,
index inside RadialMenu.Children array dictates the order of the UI elements,
Material Controller and Layout Controller
Child control added to the radial menu will be automatically layout around its center.
Important
Radial Menu supports only
Image
controls as children. do to mouse ray being blocked by mouse capturing UI events elements,This is intentional and will not be changed
Radial Menu creates instance of the material with can't be accessed yet (this will be changed).
Sample script
Important
Provided Sample script doesn't apply to when mode (Material Controller and Layout Controller) is not active
Abaut Material's
Material assigned to the Radial Menu control can be used to draw the background to display selected and highlighted controls.
Default Material
Important
Radial menu Default material, expect min of 2 children.
Default Radial Menu is fully genereted out of math it is not using any textures
Custom Material
To create a custom UI style.
You can clone the default engine material can be found in Flax/Content/Engine/DefaultRadialMenu.flax used in Radial Menu by default,
or make youre own
Material parameters requaierd
Ensure material is using following parameters, parameters are controlled by the radial menu
If you Ensured material is using correct parameters you can go the same route as Default Material if u are Shader/Material Graph magician or use textures with masks
Adding Custom Material parameters
coming soon
Custom Material Tutorial
coming soon