Package zombie.ui
Class UIElement
java.lang.Object
zombie.ui.UIElement
- Direct Known Subclasses:
ActionProgressBar
,Clock
,DialogButton
,FPSGraph
,GenericButton
,HUDButton
,MoodlesUI
,NewWindow
,ObjectTooltip
,RadarPanel
,RadialMenu
,RadialProgressBar
,ScrollBar
,ServerPulseGraph
,SpeedControls
,TextBox
,UI_BodyPart
,UI3DModel
,UI3DScene
,UIDialoguePanel
,UINineGrid
,UITextBox2
,UIWorldMap
,VehicleGauge
public class UIElement
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
alwaysBack
boolean
anchorBottom
boolean
anchorLeft
boolean
anchorRight
boolean
anchorTop
boolean
bScrollChildren
boolean
bScrollWithParent
boolean
capture
java.lang.String
clickedValue
java.util.ArrayList
Controls
boolean
defaultDraw
boolean
followGameWorld
float
height
boolean
IgnoreLossControl
UIElement
Parent
int
playerContext
KahluaTable
table
boolean
visible
float
width
double
x
double
y
-
Constructor Summary
Constructors Constructor Description UIElement()
UIElement(KahluaTable kahluaTable)
-
Method Summary
Modifier and Type Method Description void
AddChild(UIElement uIElement)
void
backMost()
void
bringToTop()
void
BringToTop(UIElement uIElement)
void
ButtonClicked(java.lang.String string)
java.lang.Double
clampToParentX(double double1)
java.lang.Double
clampToParentY(double double1)
void
ClearChildren()
void
clearMaxDrawHeight()
void
clearStencilRect()
void
DrawSubTextureRGBA(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12)
void
DrawText(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawText(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawText(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawText(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6, double double7)
void
DrawTextCentre(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTextCentre(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTextRight(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTextRight(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTextUntrimmed(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTexture(Texture texture, double double1, double double2, double double3)
void
DrawTexture(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12)
void
DrawTexture_FlippedX(Texture texture, double double1, double double2, int int1, int int2, Color color)
void
DrawTexture_FlippedXIgnoreOffset(Texture texture, double double1, double double2, int int1, int int2, Color color)
void
DrawTextureAngle(Texture texture, double double1, double double2, double double3)
void
DrawTextureAngle(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7)
void
DrawTextureCol(Texture texture, double double1, double double2, Color color)
void
DrawTextureColor(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6)
void
DrawTextureIgnoreOffset(Texture texture, double double1, double double2, int int1, int int2, Color color)
void
DrawTextureScaled(Texture texture, double double1, double double2, double double3, double double4, double double5)
void
DrawTextureScaledAspect(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawTextureScaledAspect2(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawTextureScaledCol(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawTextureScaledCol(Texture texture, double double1, double double2, double double3, double double4, Color color)
void
DrawTextureScaledColor(Texture texture, java.lang.Double Double1, java.lang.Double Double2, java.lang.Double Double3, java.lang.Double Double4, java.lang.Double Double5, java.lang.Double Double6, java.lang.Double Double7, java.lang.Double Double8)
void
DrawTextureScaledUniform(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7)
void
DrawTextureTiled(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawTextureTiledX(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawTextureTiledY(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
void
DrawUVSliceTexture(Texture texture, double double1, double double2, double double3, double double4, Color color, double double5, double double6, double double7, double double8)
java.lang.Double
getAbsoluteX()
java.lang.Double
getAbsoluteY()
java.lang.String
getClickedValue()
java.util.ArrayList
getControls()
java.lang.Double
getHeight()
java.lang.Double
getMaxDrawHeight()
UIElement
getParent()
int
getPlayerContext()
int
getRenderThisPlayerOnly()
java.lang.Boolean
getScrollChildren()
java.lang.Double
getScrollHeight()
java.lang.Boolean
getScrollWithParent()
KahluaTable
getTable()
java.lang.String
getUIName()
java.lang.Double
getWidth()
java.lang.Double
getX()
java.lang.Double
getXScroll()
java.lang.Double
getXScrolled(UIElement uIElement)
java.lang.Double
getY()
java.lang.Double
getYScroll()
java.lang.Double
getYScrolled(UIElement uIElement)
void
ignoreHeightChange()
void
ignoreWidthChange()
java.lang.Boolean
isAnchorBottom()
java.lang.Boolean
isAnchorLeft()
java.lang.Boolean
isAnchorRight()
boolean
isAnchorTop()
java.lang.Boolean
isCapture()
boolean
isConsumeMouseEvents()
java.lang.Boolean
isDefaultDraw()
boolean
isEnabled()
java.lang.Boolean
isFollowGameWorld()
boolean
isForceCursorVisible()
java.lang.Boolean
isIgnoreLossControl()
boolean
isKeyConsumed(int int1)
java.lang.Boolean
isMouseOver()
java.lang.Boolean
isPointOver(double double1, double double2)
java.lang.Boolean
isVisible()
boolean
isWantKeyEvents()
void
onKeyPress(int int1)
void
onKeyRelease(int int1)
void
onKeyRepeat(int int1)
java.lang.Boolean
onMouseDown(double double1, double double2)
java.lang.Boolean
onMouseMove(double double1, double double2)
void
onMouseMoveOutside(double double1, double double2)
java.lang.Boolean
onMouseUp(double double1, double double2)
void
onMouseUpOutside(double double1, double double2)
java.lang.Boolean
onMouseWheel(double double1)
void
onresize()
void
onResize()
java.lang.Boolean
onRightMouseDown(double double1, double double2)
java.lang.Boolean
onRightMouseUp(double double1, double double2)
void
RemoveChild(UIElement uIElement)
void
RemoveControl(UIElement uIElement)
void
render()
void
repaintStencilRect(double double1, double double2, double double3, double double4)
void
resumeStencil()
void
setAlwaysOnTop(boolean boolean1)
void
setAnchorBottom(boolean boolean1)
void
setAnchorLeft(boolean boolean1)
void
setAnchorRight(boolean boolean1)
void
setAnchorTop(boolean boolean1)
void
setCapture(boolean boolean1)
void
setClickedValue(java.lang.String string)
void
setConsumeMouseEvents(boolean boolean1)
void
setControls(java.util.Vector vector)
void
setDefaultDraw(boolean boolean1)
void
setEnabled(boolean boolean1)
void
setFollowGameWorld(boolean boolean1)
void
setForceCursorVisible(boolean boolean1)
void
setHeight(double double1)
void
setHeightOnly(double double1)
void
setHeightSilent(double double1)
void
setIgnoreLossControl(boolean boolean1)
void
setMaxDrawHeight(double double1)
void
setParent(UIElement uIElement)
void
setPlayerContext(int int1)
void
setRenderClippedChildren(boolean boolean1)
void
setRenderThisPlayerOnly(int int1)
void
setScrollChildren(boolean boolean1)
void
setScrollHeight(double double1)
void
setScrollWithParent(boolean boolean1)
void
setStencilRect(double double1, double double2, double double3, double double4)
void
setTable(KahluaTable kahluaTable)
void
setUIName(java.lang.String string)
void
setVisible(boolean boolean1)
void
setWantKeyEvents(boolean boolean1)
void
setWidth(double double1)
void
setWidthOnly(double double1)
void
setWidthSilent(double double1)
void
setX(double double1)
void
setXScroll(double double1)
void
setY(double double1)
void
setYScroll(double double1)
void
suspendStencil()
protected java.lang.Object
tryGetTableValue(java.lang.String string)
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
capture
public boolean capture -
IgnoreLossControl
public boolean IgnoreLossControl -
clickedValue
public java.lang.String clickedValue -
Controls
public final java.util.ArrayList Controls -
defaultDraw
public boolean defaultDraw -
followGameWorld
public boolean followGameWorld -
height
public float height -
Parent
-
visible
public boolean visible -
width
public float width -
x
public double x -
y
public double y -
table
-
alwaysBack
public boolean alwaysBack -
bScrollChildren
public boolean bScrollChildren -
bScrollWithParent
public boolean bScrollWithParent -
anchorTop
public boolean anchorTop -
anchorLeft
public boolean anchorLeft -
anchorRight
public boolean anchorRight -
anchorBottom
public boolean anchorBottom -
playerContext
public int playerContext
-
-
Constructor Details
-
UIElement
public UIElement() -
UIElement
-
-
Method Details
-
getMaxDrawHeight
public java.lang.Double getMaxDrawHeight() -
setMaxDrawHeight
public void setMaxDrawHeight(double double1) -
clearMaxDrawHeight
public void clearMaxDrawHeight() -
getXScroll
public java.lang.Double getXScroll() -
setXScroll
public void setXScroll(double double1) -
getYScroll
public java.lang.Double getYScroll() -
setYScroll
public void setYScroll(double double1) -
setAlwaysOnTop
public void setAlwaysOnTop(boolean boolean1) -
backMost
public void backMost() -
AddChild
-
RemoveChild
-
getScrollHeight
public java.lang.Double getScrollHeight() -
setScrollHeight
public void setScrollHeight(double double1) -
isConsumeMouseEvents
public boolean isConsumeMouseEvents() -
setConsumeMouseEvents
public void setConsumeMouseEvents(boolean boolean1) -
ClearChildren
public void ClearChildren() -
ButtonClicked
public void ButtonClicked(java.lang.String string) -
DrawText
public void DrawText(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6, double double7) -
DrawText
public void DrawText(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawText
public void DrawText(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawText
public void DrawText(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextUntrimmed
public void DrawTextUntrimmed(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextCentre
public void DrawTextCentre(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextCentre
public void DrawTextCentre(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextRight
public void DrawTextRight(java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextRight
public void DrawTextRight(UIFont uIFont, java.lang.String string, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawTextureAngle
public void DrawTextureAngle(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7) -
DrawTextureAngle
-
DrawTexture
public void DrawTexture(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12) -
DrawTexture
-
DrawTextureCol
-
DrawTextureScaled
public void DrawTextureScaled(Texture texture, double double1, double double2, double double3, double double4, double double5) -
DrawTextureScaledUniform
public void DrawTextureScaledUniform(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7) -
DrawTextureScaledAspect
public void DrawTextureScaledAspect(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureScaledAspect2
public void DrawTextureScaledAspect2(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureScaledCol
public void DrawTextureScaledCol(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureScaledCol
-
DrawTextureScaledColor
public void DrawTextureScaledColor(Texture texture, java.lang.Double Double1, java.lang.Double Double2, java.lang.Double Double3, java.lang.Double Double4, java.lang.Double Double5, java.lang.Double Double6, java.lang.Double Double7, java.lang.Double Double8) -
DrawTextureColor
public void DrawTextureColor(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6) -
DrawSubTextureRGBA
public void DrawSubTextureRGBA(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12) -
DrawTextureTiled
public void DrawTextureTiled(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureTiledX
public void DrawTextureTiledX(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureTiledY
public void DrawTextureTiledY(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
DrawTextureIgnoreOffset
-
DrawTexture_FlippedX
-
DrawTexture_FlippedXIgnoreOffset
-
DrawUVSliceTexture
-
getScrollChildren
public java.lang.Boolean getScrollChildren() -
setScrollChildren
public void setScrollChildren(boolean boolean1) -
getScrollWithParent
public java.lang.Boolean getScrollWithParent() -
setScrollWithParent
public void setScrollWithParent(boolean boolean1) -
setRenderClippedChildren
public void setRenderClippedChildren(boolean boolean1) -
getAbsoluteX
public java.lang.Double getAbsoluteX() -
getAbsoluteY
public java.lang.Double getAbsoluteY() -
getClickedValue
public java.lang.String getClickedValue() -
setClickedValue
public void setClickedValue(java.lang.String string) -
bringToTop
public void bringToTop() -
onMouseUpOutside
public void onMouseUpOutside(double double1, double double2) -
onMouseDown
public java.lang.Boolean onMouseDown(double double1, double double2) -
onMouseWheel
public java.lang.Boolean onMouseWheel(double double1) -
onMouseMove
public java.lang.Boolean onMouseMove(double double1, double double2) -
onMouseMoveOutside
public void onMouseMoveOutside(double double1, double double2) -
onMouseUp
public java.lang.Boolean onMouseUp(double double1, double double2) -
onresize
public void onresize() -
onResize
public void onResize() -
onRightMouseDown
public java.lang.Boolean onRightMouseDown(double double1, double double2) -
onRightMouseUp
public java.lang.Boolean onRightMouseUp(double double1, double double2) -
RemoveControl
-
render
public void render() -
update
public void update() -
BringToTop
-
isCapture
public java.lang.Boolean isCapture() -
setCapture
public void setCapture(boolean boolean1) -
isIgnoreLossControl
public java.lang.Boolean isIgnoreLossControl() -
setIgnoreLossControl
public void setIgnoreLossControl(boolean boolean1) -
getControls
public java.util.ArrayList getControls() -
setControls
public void setControls(java.util.Vector vector) -
isDefaultDraw
public java.lang.Boolean isDefaultDraw() -
setDefaultDraw
public void setDefaultDraw(boolean boolean1) -
isFollowGameWorld
public java.lang.Boolean isFollowGameWorld() -
setFollowGameWorld
public void setFollowGameWorld(boolean boolean1) -
getRenderThisPlayerOnly
public int getRenderThisPlayerOnly() -
setRenderThisPlayerOnly
public void setRenderThisPlayerOnly(int int1) -
getHeight
public java.lang.Double getHeight() -
setHeight
public void setHeight(double double1) -
getParent
-
setParent
-
isVisible
public java.lang.Boolean isVisible() -
setVisible
public void setVisible(boolean boolean1) -
getWidth
public java.lang.Double getWidth() -
setWidth
public void setWidth(double double1) -
getX
public java.lang.Double getX() -
setX
public void setX(double double1) -
getXScrolled
-
getYScrolled
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean boolean1) -
getY
public java.lang.Double getY() -
setY
public void setY(double double1) -
suspendStencil
public void suspendStencil() -
resumeStencil
public void resumeStencil() -
setStencilRect
public void setStencilRect(double double1, double double2, double double3, double double4) -
clearStencilRect
public void clearStencilRect() -
repaintStencilRect
public void repaintStencilRect(double double1, double double2, double double3, double double4) -
getTable
-
setTable
-
setHeightSilent
public void setHeightSilent(double double1) -
setWidthSilent
public void setWidthSilent(double double1) -
setHeightOnly
public void setHeightOnly(double double1) -
setWidthOnly
public void setWidthOnly(double double1) -
isAnchorTop
public boolean isAnchorTop() -
setAnchorTop
public void setAnchorTop(boolean boolean1) -
ignoreWidthChange
public void ignoreWidthChange() -
ignoreHeightChange
public void ignoreHeightChange() -
isAnchorLeft
public java.lang.Boolean isAnchorLeft() -
setAnchorLeft
public void setAnchorLeft(boolean boolean1) -
isAnchorRight
public java.lang.Boolean isAnchorRight() -
setAnchorRight
public void setAnchorRight(boolean boolean1) -
isAnchorBottom
public java.lang.Boolean isAnchorBottom() -
setAnchorBottom
public void setAnchorBottom(boolean boolean1) -
getPlayerContext
public int getPlayerContext() -
setPlayerContext
public void setPlayerContext(int int1) -
getUIName
public java.lang.String getUIName() -
setUIName
public void setUIName(java.lang.String string) -
clampToParentX
public java.lang.Double clampToParentX(double double1) -
clampToParentY
public java.lang.Double clampToParentY(double double1) -
isPointOver
public java.lang.Boolean isPointOver(double double1, double double2) -
isMouseOver
public java.lang.Boolean isMouseOver() -
tryGetTableValue
protected java.lang.Object tryGetTableValue(java.lang.String string) -
setWantKeyEvents
public void setWantKeyEvents(boolean boolean1) -
isWantKeyEvents
public boolean isWantKeyEvents() -
isKeyConsumed
public boolean isKeyConsumed(int int1) -
onKeyPress
public void onKeyPress(int int1) -
onKeyRepeat
public void onKeyRepeat(int int1) -
onKeyRelease
public void onKeyRelease(int int1) -
isForceCursorVisible
public boolean isForceCursorVisible() -
setForceCursorVisible
public void setForceCursorVisible(boolean boolean1)
-