Class RadialMenu

All Implemented Interfaces:
UIElementInterface

public final class RadialMenu extends UIElement
  • Field Details

    • outerRadius

      protected int outerRadius
    • innerRadius

      protected int innerRadius
    • slices

      protected ArrayList<RadialMenu.Slice> slices
    • highlight

      protected int highlight
    • joypad

      protected int joypad
    • transition

      protected UITransition transition
    • select

      protected UITransition select
    • deselect

      protected UITransition deselect
    • selectIndex

      protected int selectIndex
    • deselectIndex

      protected int deselectIndex
  • Constructor Details

    • RadialMenu

      public RadialMenu(int x, int y, int _innerRadius, int _outerRadius)
  • Method Details

    • update

      public void update()
      Specified by:
      update in interface UIElementInterface
      Overrides:
      update in class UIElement
    • render

      public void render()
      Specified by:
      render in interface UIElementInterface
      Overrides:
      render in class UIElement
    • clear

      public void clear()
    • addSlice

      public void addSlice(String text, Texture texture)
    • setSliceText

      public void setSliceText(int sliceIndex, String text)
    • setSliceTexture

      public void setSliceTexture(int sliceIndex, Texture texture)
    • getSliceIndexFromMouse

      public int getSliceIndexFromMouse(int mx, int my)
    • getSliceIndexFromJoypad

      public int getSliceIndexFromJoypad(int _joypad)
    • setJoypad

      public void setJoypad(int _joypad)