Skip to content

Commit 616c697

Browse files
authored
Merge pull request #2 from payne911/dev
v4.0.0 integration
2 parents 833197f + 7418651 commit 616c697

26 files changed

+1741
-981
lines changed

CHANGES

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
(UPCOMING) [4.0.0]
1+
[4.0.0]
22
- A `Batch` does not need to be passed to the constructors anymore.
33
- Introduced `PieWidget` in the new design: the `RadialGroup` now doesn't deal in any way with the `ShapeDrawer`.
44
- `getMaxDiameter` has been renamed to `getCurrentDiameter`.
55
- `getMaxRadius` has been renamed to `getCurrentRadius`.
6+
- `minRadius` has been renamed to `preferredRadius`.
7+
- Introduced a new `individuals` demo (named "RadialButtons") to showcase the new `RadialGroup` class.
8+
- Changed the way the scene2d `hit` method works with the widget.
9+
- Fixed the `hit` for when a contained Actor extends beyond the limits of the widget itself.
10+
- Fixed `RadialGroup` containing other `PieMenu`.
11+
- Fixed non-regular width and height values on Animated widgets.
12+
- Fixed `centerOnActor` method used on an Actor that was contained within a `Group`.
613

714
[3.1.0]
8-
- Hotfix for "floating" `Group` that contained `RadialGroup`.
15+
- Fixed the "floating" `Group` that contained `RadialGroup`.
916
- More efficient evaluation for the reset of the hover on mouse-exit.
1017
- The `background` image can now be a `Drawable` as well (but keep in mind that `Drawable` cannot be rotated).
1118

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
---
88

9-
A library for [libGDX](https://libgdx.badlogicgames.com/), an open-source game development application framework written in Java.
9+
A library to obtain a circular WidgetGroup within [libGDX](https://libgdx.badlogicgames.com/), an open-source game development application framework written in Java.
1010

1111
Aims at providing users with the so-called `RadialGroup`: it is a simple container that places its children `Actors` in a circular fashion.
1212

@@ -63,7 +63,7 @@ allprojects {
6363
6464
ext {
6565
...
66-
pieMenuVersion = '3.1.0'
66+
pieMenuVersion = '4.0.0'
6767
}
6868
6969
repositories {
@@ -99,7 +99,7 @@ The basic idea looks like this:
9999
/* Setting up and creating the widget. */
100100
PieMenu.PieMenuStyle style = new PieMenu.PieMenuStyle();
101101
style.sliceColor = new Color(.33f,.33f,.33f,1); // "style" variables affect the way the widget looks
102-
PieMenu menu = new PieMenu(batch, skin.getRegion("white"), style, 80); // "white" would be a 1x1 white pixel
102+
PieMenu menu = new PieMenu(skin.getRegion("white"), style, 80); // "white" would be a 1x1 white pixel
103103

104104
/* Adding a listener. */
105105
menu.addListener(new ChangeListener() {
@@ -122,7 +122,7 @@ stage.addActor(menu);
122122
And *voilà*!
123123

124124
### [Wiki](https://github.com/payne911/PieMenu/wiki)
125-
This library offers you many types of behaviors related to pie menus. Many of those are well-documented in the Wiki (with description, code and gif), so make sure to check it out.
125+
This library offers you many types of behaviors related to pie-menus. Many of those are well-documented in the Wiki (with description, code and gif), so make sure to check it out.
126126

127127
More specifically, you might be interested in:
128128
* [Complete examples of code](https://github.com/payne911/PieMenu/wiki/Examples), along with textual descriptions of the expected behavior

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply from: 'publish.gradle'
1919
sourceCompatibility = 1.8
2020

2121
def projectName = 'pie-menu'
22-
version '3.1.0'
22+
version '4.0.0'
2323
group 'com.payne.games'
2424

2525
def gdxVersion = '1.9.10'

src/main/java/com/payne/games/piemenu/AnimatedPieMenu.java

Lines changed: 61 additions & 62 deletions
Large diffs are not rendered by default.

src/main/java/com/payne/games/piemenu/AnimatedRadialGroup.java renamed to src/main/java/com/payne/games/piemenu/AnimatedPieWidget.java

Lines changed: 83 additions & 84 deletions
Large diffs are not rendered by default.

src/main/java/com/payne/games/piemenu/PieMenu.java

Lines changed: 65 additions & 114 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)