-
Notifications
You must be signed in to change notification settings - Fork 12
RadialGroup vs PieWidget vs PieMenu
There are three different main classes provided by the library, and choosing which one to use might be confusing to you at first. This page aims at clarifying when to use each one.
It is highly probable that you are looking for a Pie Menu
, but keep reading if you're curious. Keep in mind: the Pie Menu
includes everything the Pie Widget
provides, and the Pie Widget
includes everything the Radial Group
provides.
This library comes with a generic RadialGroup
class (source code) which extends WidgetGroup
(the libGDX class).
It is meant to provide the most basic form of a container which would lay out its children Actors in a circular fashion, and nothing else.
The PieWidget
implementation (source code) wraps the RadialGroup
with a PieWidgetStyle
that will allow you to draw things that will delimit certain boundaries such as the circumference. That style also allows you to have a background image drawn behind, for example.
The PieMenu
implementation (source code) wraps the PieWidget
and aims at providing callback functionalities for things like highlight or selection of a contained item. Most probably, if you've found this library, you're looking for this.