-
Notifications
You must be signed in to change notification settings - Fork 123
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
CCMenuItem and CCMenuItemToggle differing positions #433
Comments
What does this do: labelTtf.AddStroke |
FYI:
|
Can we put this into the framework? |
Absolutely! |
If you were going to add it, you might want to pass that 60 constant I use in as an argument instead of being hardcoded. It really equates to number of strokes made in a circle, so the closer to 360, the higher the quality of stroke. |
Oops, I mean the smaller the number, the higher the quality! |
The fix I provided does not work. The touch location of the toggle menu is incorrect with the change I made. |
This may well be down to my own usage, but it seems odd if it is.
I have a method which create a CCMenuItem for me. It is a common way of creating my specially designed buttons complete with background sprites, label and label stroke.
In my menus, I sometimes use CCMenuItemToggles and sometimes use just the CCMenuItem alone.
The odd thing is that the positioning and anchoring seems to be different depending on whether I add the to a CCMenu directly or as part of a CCMenuItemToggle. When added directly to the CCMenu, it appears on the left and its anchor point is no longer in the middle (easy to tell as there is CCRotateBy actions running on them).
Here's a sample of my code in case it is due to my implementation:
This is used here to see the different behaviours:
The text was updated successfully, but these errors were encountered: