-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add radial menu #2721
Add radial menu #2721
Conversation
Hooray Jenkins reported success with all tests good! |
Hooray Jenkins reported success with all tests good! |
Hooray Jenkins reported success with all tests good! |
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.
Finally got a chance to take this for a spin - but I wonder if UIRadialMenuScreen
is missing? It is the type used in the paste example, but not in the PR.
Code could use some javadoc more than anything, eager to put it to use. Some commented out stuff and things still to do, but I can imagine it working!
Submitted Terasology/TutorialNui#3 to get a matching example, that might also be a good way to get the sample code out of a paste and into a working module :-)
mousePos.y -= radius; | ||
|
||
logger.info(mousePos.toString()); | ||
double angle = Math.atan2(mousePos.y(), mousePos.y()); logger.info(angle + " ang"); |
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.
Might have accidentally lost a newline here?
import org.terasology.rendering.assets.texture.TextureRegion; | ||
import org.terasology.rendering.nui.Canvas; | ||
|
||
public class UIRadialEmpty extends UIRadialSection { |
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.
Would be great with class-level Javadoc on this and similar :-)
- Remove wedge images - Remove empty section class - Add circle images - Add support for varying number of section - Add javadoc
Hooray Jenkins reported success with all tests good! |
Linking to request Terasology/TutorialNui#3 for example sometime :-) |
Added a new radial menu as per issue #2713.
This needs more testing done on it before it should be merged. An example and documented .ui orefab is here.
Todo: