Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [3.0.0-rc2]
- - Introduced a new behavior-flag: `middleCancel` determines if releasing a click from within the inner-radius will trigger the extended selection or the `defaultIndex` selection.
- - `ChildRegion` is now referred to as `Slice` throughout the API.
- - Style variables now have shorter names that resemble the `ButtonStyle` naming.
- - `setDefaultIndex` now changes the `selectedIndex` if it isn't a valid index.
- - The complementary callbacks (highlight and hover) are now regrouped within `PieMenuCallbacks`.
- - Integrated rotations: scene2d's `rotateBy()` method is now supported.
- - `radius` has been renamed to `minRadius` since it is now a suggested radius for the minimal radius value. In case `setFillParent(true)` or other size-changing methods are used (Table's `fill`, for example), the widget will now expand as a scene2d user would expect it to.
- - `innerRadius` now designates a percentage of the radius, instead of an amount of pixels.
- - Fixed the flicker resulting from hovering out of a contained Actor.
- - `selectedColor` now used by default if no `downColor` was set: this is to prevent a flicker when clicking.
- - Fixed a few `Animated` constructors.
- - The `ShapeDrawer` is now instantiated internally.
- - The default rules used by `ShapeDrawer` to determine the amount of sides to draw is now internally overridden with an improved algorithm.
- - Added an example for adding Keyboard-Key-Mapping (selection through keyboard) on a `PieMenu`.
- [3.0.0-rc1]
- - Refactored the Style so that most of the `float` values (`radius` and the likes) have become class-attributes instead.
- - Many more constructors available. Basic `float` properties (`radius` and the likes) are now integrated in the constructors.
- - `PieMenuSuggestedClickListener` renamed to `PieMenuClickListener` and is now added by default. A setter is provided to change this `ClickListener` to a custom one.
- - Added callbacks for mouse-over. Added the corresponding `hoveredChildRegionColor` and `hoveredAndSelectedChildRegionColor` to the `PieMenuStyle`.
- - Added `highlightedChildRegionColor` in the `PieMenuStyle`.
- - The `PieMenuClickListener` now triggers a highlight on `touchDown` rather than waiting for the mouse to move after the initial click.
- - `HighlightChangeListener` renamed to `PieMenuHighlightChangeListener` and now extends EventListener. Removed the associated getter and setter: now `addListener()` should be used for that too.
- - Widgets now start with their visibility set to `true` (it used to be `false`): this is to remain closer to scene2d's expected behavior.
- - Changed the Actor-sizing algorithm (and thus fixed it for low `innerRadius` values).
- - Integrated the propagation of the alpha from parent to children. Use the `setGlobalAlphaMultiplier(float)` method to do so.
- - Fix for Widgets contained within a Table.
- - Fix of the PieMenuStyle Colors-duplication.
- - Style's `Circumference` values now include the `innerRadius` value.
- - New API methods to allow more customization: `getActorDistanceFromCenter`, `getEstimatedRadiusAt` and `modifyActor` can be changed to be whatever you want.
- - Removed from the API the `@Deprecated` methods which should have been implemented by the users themselves anyway. This is reflected in the corresponding code-examples.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement