Skip to content

RadialGroup vs PieWidget vs PieMenu

payne911 edited this page Jul 16, 2020 · 4 revisions

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.

Quick-links


Radial Group

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.

Pie Widget

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.

Pie Menu

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.