Skip to content

Commit

Permalink
Merge pull request #2 from payne911/dev
Browse files Browse the repository at this point in the history
v4.0.0 integration
  • Loading branch information
payne911 authored Nov 12, 2019
2 parents 833197f + 7418651 commit 616c697
Show file tree
Hide file tree
Showing 26 changed files with 1,741 additions and 981 deletions.
11 changes: 9 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
(UPCOMING) [4.0.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]
- Hotfix for "floating" `Group` that contained `RadialGroup`.
- 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).

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

---

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

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

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

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

### [Wiki](https://github.com/payne911/PieMenu/wiki)
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.
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.

More specifically, you might be interested in:
* [Complete examples of code](https://github.com/payne911/PieMenu/wiki/Examples), along with textual descriptions of the expected behavior
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply from: 'publish.gradle'
sourceCompatibility = 1.8

def projectName = 'pie-menu'
version '3.1.0'
version '4.0.0'
group 'com.payne.games'

def gdxVersion = '1.9.10'
Expand Down
123 changes: 61 additions & 62 deletions src/main/java/com/payne/games/piemenu/AnimatedPieMenu.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

179 changes: 65 additions & 114 deletions src/main/java/com/payne/games/piemenu/PieMenu.java

Large diffs are not rendered by default.

Loading

0 comments on commit 616c697

Please sign in to comment.