Package zombie.ui

Class RadialMenu

java.lang.Object
zombie.ui.UIElement
zombie.ui.RadialMenu

public class RadialMenu
extends UIElement
  • Field Details

    • outerRadius

      protected int outerRadius
    • innerRadius

      protected int innerRadius
    • slices

      protected java.util.ArrayList 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()
      Overrides:
      update in class UIElement
    • render

      public void render()
      Overrides:
      render in class UIElement
    • clear

      public void clear()
    • addSlice

      public void addSlice​(java.lang.String text, Texture texture)
    • setSliceText

      public void setSliceText​(int sliceIndex, java.lang.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)