-
Notifications
You must be signed in to change notification settings - Fork 12
/
CHANGES
123 lines (108 loc) · 7.8 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[5.0.0]
- Fixed `RadialGroup#isWithinInnerRadius` so that it takes into account the `totalDegreesDrawn`.
- Added `RadialGroup#isWithinDrawnAngle`.
- Added `RadialGroup#isInnerRadiusBlockingPropagation`.
- (NOT BACKWARD-COMPATIBLE) Added a new flag: `hitThroughInnerRadius` (for `PieWidget`). Default value: `true`. This changes the way `PieWidget#hit` behaves: it isn't based on the presence of a background or background color anymore. If you need your `hit` to reach Actors behind your `innerRadius`, set this value to `true`.
- (NOT BACKWARD-COMPATIBLE) Renamed `PieWidget#isBackgroundHit` to `PieWidget#isInnerRadiusBlockingPropagation`. This is a more appropriate (less misleading) method name based on the new behavior described in the last point.
- Minor optimizations for `#findChildIndexAtStage` (in both `RadialGroup` and `PieMenu`).
- Minor JavaDoc tweaks.
[4.3.0]
- Fixed the pooled classes (`PieMenuHighlightChangeEvent` and `PieMenuHoverChangeEvent`) not working on the GWT platform.
- The `Animated` classes aren't classified as deprecated anymore. It was confusing at best.
- Micro-optimization for the `layout()` function.
- Minor JavaDoc tweaks.
- Non-breaking refactor of the `Animated` classes (extracted interfaces to reduce code duplication).
[4.2.0]
- Fixed a bug related to the `globalAlphaMultiplier` attribute.
- Fixed a bug related to `centerOn` methods and some Viewports.
- Performance improvement: Events (Callbacks/Highlight/Selection/etc.) are now Pooled.
- Added a default Color (black) for the following `PieWidgetStyle` attributes: `separatorColor` and `circumferenceColor`.
- Added a Testing Menu so that Contributors can more easily test their implementations.
- Added the `NO_SELECTION` constant in `PieMenu`.
- Added a new "code example": `NestedClickDrag`.
- Minor JavaDoc tweaks and improvements.
- Updated `ShapeDrawer` version to `v2.3.0`.
[4.1.0]
- Added `AnimatedRadialGroup`.
- Minor fixes in documentation.
- Updated `ShapeDrawer` version to `v2.1.0`.
[4.0.0]
- A `Batch` does not need to be passed to the constructors anymore.
- Introduced `PieWidget` in the new design: the `RadialGroup` now doesn't deal in any way with the `ShapeDrawer`.
- `getMaxDiameter` has been renamed to `getCurrentDiameter`.
- `getMaxRadius` has been renamed to `getCurrentRadius`.
- `minRadius` has been renamed to `preferredRadius`.
- Introduced a new `individuals` demo (named "RadialButtons") to showcase the new `RadialGroup` class.
- Changed the way the scene2d `hit` method works with the widget.
- Fixed the `hit` for when a contained Actor extends beyond the limits of the widget itself.
- Fixed `RadialGroup` containing other `PieMenu`.
- Fixed non-regular width and height values on Animated widgets.
- Fixed `centerOnActor` method used on an Actor that was contained within a `Group`.
[3.1.0]
- Fixed the "floating" `Group` that contained `RadialGroup`.
- More efficient evaluation for the reset of the hover on mouse-exit.
- The `background` image can now be a `Drawable` as well (but keep in mind that `Drawable` cannot be rotated).
[3.0.0]
- Hotfix for `rotateBy()`.
- Hotfix for overlapping menus.
- Updated `ShapeDrawer` to v2.0.3 (fixes some crashes).
- Shorter way of integrating the library for GWT.
- Renamed `PieMenuClickListener` to `PieMenuListener`.
[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.
[2.2.0]
- Animated versions of the implementations are now available!
[2.1.0]
- Added a `defaultIndex` flag as a fallback value when an invalid index is being selected.
- Minor fix on the `PieMenu`'s `hit` method.
[2.0.0]
- The default of `infiniteSelectionRange` is now `false`.
- Removed the PieMenu.SuggestedClickListener inner class and made it its own class: `PieMenuSuggestedClickListener`.
- Removed the `manualVisibility` flag: it wasn't consistent enough and forced users to learn or guess about some internal workings.
- Removed the `highlightIsSelection` flag: it complexified the API despite there being the Highlight callback.
- Fixed a bug with the `selectIndex(int)` method.
- Preparing HTML-GWT set up.
- Multisampling from the DesktopLauncher for smoother recordings.
[1.0.0]
- Image child-Actors are now properly sized to remain within their sector.
- All of the examples are separated in different test classes for easy copy-paste.
- Even more API methods available to the public.
- Finished writing the JavaDoc.
[0.2.1-alpha]
- Refactoring the project's structure to resemble to other usual libGDX libraries.
- Opening up the API (more public methods accessible to users of the library).
- Including ShapeDrawer as a dependency by-default.
[0.1.1-alpha]
- JitPack deployment properly integrated.
[0.1.0-alpha]
- Initial code
- 5 different types of PieMenu are integrated and demonstrated.