Class RadialMenu
java.lang.Object
zombie.ui.UIElement
zombie.ui.RadialMenu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UITransition
protected int
protected int
protected int
protected int
protected int
protected UITransition
protected int
protected ArrayList
<RadialMenu.Slice> protected UITransition
Fields inherited from class zombie.ui.UIElement
alwaysBack, alwaysOnTop, anchorBottom, anchorLeft, anchorRight, anchorTop, bScrollChildren, bScrollWithParent, capture, clickedValue, Controls, defaultDraw, followGameWorld, height, IgnoreLossControl, maxDrawHeight, Parent, playerContext, table, visible, width, x, y
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
int
getSliceIndexFromJoypad
(int _joypad) int
getSliceIndexFromMouse
(int mx, int my) void
render()
void
setJoypad
(int _joypad) void
setSliceText
(int sliceIndex, String text) void
setSliceTexture
(int sliceIndex, Texture texture) void
update()
Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawItemIcon, DrawLine, DrawScriptItemIcon, DrawSubTextureRGBA, DrawText, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIcon, DrawTextureIconMask, DrawTextureIgnoreOffset, DrawTexturePercentage, DrawTexturePercentageBottomUp, DrawTextureScaled, DrawTextureScaledAspect, DrawTextureScaledAspect2, DrawTextureScaledAspect3, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawTextureTiled, DrawTextureTiledX, DrawTextureTiledY, DrawTextureTiledYOffset, DrawUVSliceTexture, EndOutline, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getRenderThisPlayerOnly, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAlwaysOnTop, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isBackMost, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isForceCursorVisible, isIgnoreLossControl, isKeyConsumed, isMouseOver, isOverElement, isPointOver, isReallyVisible, isVisible, isWantExtraMouseEvents, isWantKeyEvents, onConsumeKeyPress, onConsumeKeyRelease, onConsumeKeyRepeat, onConsumeMouseButtonDown, onConsumeMouseButtonUp, onConsumeMouseMove, onConsumeMouseWheel, onExtendMouseMoveOutside, onKeyPress, onKeyRelease, onKeyRepeat, onMouseButtonDown, onMouseButtonDownOutside, onMouseButtonUpOutside, onMouseDown, onMouseMove, onMouseMoveOutside, onMouseUp, onMouseUpOutside, onMouseWheel, onresize, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setForceCursorVisible, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setRenderClippedChildren, setRenderThisPlayerOnly, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWantExtraMouseEvents, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, StartOutline, suspendStencil, tryGetTableValue
-
Field Details
-
outerRadius
protected int outerRadius -
innerRadius
protected int innerRadius -
slices
-
highlight
protected int highlight -
joypad
protected int joypad -
transition
-
select
-
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 interfaceUIElementInterface
- Overrides:
update
in classUIElement
-
render
public void render()- Specified by:
render
in interfaceUIElementInterface
- Overrides:
render
in classUIElement
-
clear
public void clear() -
addSlice
-
setSliceText
-
setSliceTexture
-
getSliceIndexFromMouse
public int getSliceIndexFromMouse(int mx, int my) -
getSliceIndexFromJoypad
public int getSliceIndexFromJoypad(int _joypad) -
setJoypad
public void setJoypad(int _joypad)
-