Package zombie.ui
Class UIElement
java.lang.Object
zombie.ui.UIElement
- Direct Known Subclasses:
ActionProgressBar
,Clock
,DialogButton
,DirectionSwitcher
,DoubleSizer
,DraggableWindow
,EmotionPanel
,EnduranceWidget
,FPSGraph
,GenericButton
,HelpIcon
,HUDButton
,InventoryFlowControl
,LevelUpCategory
,ListBox
,MoodlesUI
,MovementBlender
,NewContainerPanel
,NewWindow
,ObjectTooltip
,PerkButton
,PZConsole
,QuestControl
,QuestHUD
,RadarPanel
,ScrollBar
,ServerPulseGraph
,Sidebar
,SpeedControls
,StatBar
,TextBox
,TutorialPanel
,UI_BodyPart
,UIDialoguePanel
,UINineGrid
,UITextBox2
,VirtualItemSlot
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
float
x
float
y
-
Constructor Summary
Constructors Constructor Description UIElement()
UIElement(KahluaTable table)
-
Method Summary
Modifier and Type Method Description void
AddChild(UIElement el)
void
backMost()
void
bringToTop()
void
ButtonClicked(java.lang.String name)
int
clampToParentX(int x)
int
clampToParentY(int y)
void
ClearChildren()
void
clearMaxDrawHeight()
void
clearStencilRect()
void
DrawText(java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawText(java.lang.String text, double x, double y, int width, int height, double r, double g, double b, double alpha)
void
DrawText(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawText(UIFont font, java.lang.String text, double x, double y, float zoom, double r, double g, double b, double alpha)
void
DrawTextCentre(java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawTextCentre(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawTextRight(java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawTextRight(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawTextUntrimmed(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)
void
DrawTexture(Texture tex, double x, double y, double alpha)
void
DrawTexture(Texture tex, int tlx, int tly, int trx, int try2, int brx, int bry, int blx, int bly, float r, float g, float b, float a)
void
DrawTexture_FlippedX(Texture tex, double x, double y, int width, int height, Color col)
void
DrawTexture_FlippedXIgnoreOffset(Texture tex, double x, double y, int width, int height, Color col)
void
DrawTextureAngle(Texture tex, int width, double angle)
void
DrawTextureCol(Texture tex, double x, double y, Color col)
void
DrawTextureColor(Texture tex, double x, double y, double r, double g, double b, double a)
void
DrawTextureIgnoreOffset(Texture tex, double x, double y, int width, int height, Color col)
void
DrawTextureScaled(Texture tex, double x, double y, double width, double height, double alpha)
void
DrawTextureScaledAspect(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha)
void
DrawTextureScaledAspect2(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha)
void
DrawTextureScaledCol(Texture tex, double x, double y, double width, double height, double r, double g, double b, double a)
void
DrawTextureScaledCol(Texture tex, double x, double y, double width, double height, Color col)
void
DrawTextureScaledColor(Texture tex, java.lang.Double x, java.lang.Double y, java.lang.Double width, java.lang.Double height, java.lang.Double r, java.lang.Double g, java.lang.Double b, java.lang.Double a)
void
DrawTextureScaledUniform(Texture tex, double x, double y, double scale, double r, double g, double b, double alpha)
void
DrawUVSliceTexture(Texture tex, double x, double y, double width, double height, Color col, double xStart, double yStart, double xEnd, double yEnd)
int
getAbsoluteX()
int
getAbsoluteY()
java.lang.String
getClickedValue()
java.util.ArrayList
getControls()
float
getHeight()
int
getMaxDrawHeight()
UIElement
getParent()
int
getPlayerContext()
boolean
getScrollChildren()
int
getScrollHeight()
boolean
getScrollWithParent()
KahluaTable
getTable()
java.lang.String
getUIName()
float
getWidth()
float
getX()
float
getXScroll()
float
getXScrolled(UIElement parent)
float
getY()
float
getYScroll()
float
getYScrolled(UIElement parent)
void
ignoreHeightChange()
void
ignoreWidthChange()
boolean
isAnchorBottom()
boolean
isAnchorLeft()
boolean
isAnchorRight()
boolean
isAnchorTop()
boolean
isCapture()
boolean
isDefaultDraw()
boolean
isFollowGameWorld()
boolean
isIgnoreLossControl()
boolean
isMouseOver()
boolean
isPointOver(int screenX, int screenY)
boolean
isVisible()
boolean
onMouseDown(int x, int y)
boolean
onMouseMove(int dx, int dy)
void
onMouseMoveOutside(int dx, int dy)
boolean
onMouseUp(int x, int y)
boolean
onMouseWheel(int del)
void
onresize()
void
onResize()
boolean
onRightMouseDown(int x, int y)
boolean
onRightMouseUp(int x, int y)
void
RemoveChild(UIElement el)
void
RemoveControl(UIElement el)
void
render()
void
repaintStencilRect(int x, int y, int width, int height)
void
resumeStencil()
void
setAlwaysOnTop(boolean b)
void
setAnchorBottom(boolean anchorBottom)
void
setAnchorLeft(boolean anchorLeft)
void
setAnchorRight(boolean anchorRight)
void
setAnchorTop(boolean anchorTop)
void
setCapture(boolean capture)
void
setClickedValue(java.lang.String clickedValue)
void
setConsumeMouseEvents(boolean bConsume)
void
setControls(java.util.Vector Controls)
void
setDefaultDraw(boolean defaultDraw)
void
setFollowGameWorld(boolean followGameWorld)
void
setHeight(double height)
void
setHeightOnly(double height)
void
setHeightSilent(double height)
void
setIgnoreLossControl(boolean IgnoreLossControl)
void
setMaxDrawHeight(double height)
void
setParent(UIElement Parent)
void
setPlayerContext(int nPlayer)
void
setScrollChildren(boolean bScroll)
void
setScrollHeight(int h)
void
setScrollWithParent(boolean bScroll)
void
setStencilRect(int x, int y, int width, int height)
void
setTable(KahluaTable table)
void
setUIName(java.lang.String name)
void
setVisible(boolean visible)
void
setWidth(double width)
void
setWidthOnly(double width)
void
setWidthSilent(double width)
void
setX(double x)
void
setXScroll(double x)
void
setY(double y)
void
setYScroll(double y)
void
suspendStencil()
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 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 float x -
y
public float 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 int getMaxDrawHeight() -
setMaxDrawHeight
public void setMaxDrawHeight(double height) -
clearMaxDrawHeight
public void clearMaxDrawHeight() -
getXScroll
public float getXScroll() -
getYScroll
public float getYScroll() -
setAlwaysOnTop
public void setAlwaysOnTop(boolean b) -
backMost
public void backMost() -
AddChild
-
RemoveChild
-
setXScroll
public void setXScroll(double x) -
setYScroll
public void setYScroll(double y) -
setScrollHeight
public void setScrollHeight(int h) -
getScrollHeight
public int getScrollHeight() -
setConsumeMouseEvents
public void setConsumeMouseEvents(boolean bConsume) -
ClearChildren
public void ClearChildren() -
ButtonClicked
public void ButtonClicked(java.lang.String name) -
DrawText
public void DrawText(UIFont font, java.lang.String text, double x, double y, float zoom, double r, double g, double b, double alpha) -
DrawText
public void DrawText(java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawText
public void DrawText(java.lang.String text, double x, double y, int width, int height, double r, double g, double b, double alpha) -
DrawText
public void DrawText(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextUntrimmed
public void DrawTextUntrimmed(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextCentre
public void DrawTextCentre(java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextCentre
public void DrawTextCentre(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextRight
public void DrawTextRight(java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextRight
public void DrawTextRight(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha) -
DrawTextureAngle
-
DrawTexture
public void DrawTexture(Texture tex, int tlx, int tly, int trx, int try2, int brx, int bry, int blx, int bly, float r, float g, float b, float a) -
DrawTexture
-
DrawTextureCol
-
DrawTextureScaled
public void DrawTextureScaled(Texture tex, double x, double y, double width, double height, double alpha) -
DrawTextureScaledUniform
public void DrawTextureScaledUniform(Texture tex, double x, double y, double scale, double r, double g, double b, double alpha) -
DrawTextureScaledAspect
public void DrawTextureScaledAspect(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha) -
DrawTextureScaledAspect2
public void DrawTextureScaledAspect2(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha) -
DrawTextureScaledCol
public void DrawTextureScaledCol(Texture tex, double x, double y, double width, double height, double r, double g, double b, double a) -
DrawTextureScaledCol
-
DrawTextureScaledColor
public void DrawTextureScaledColor(Texture tex, java.lang.Double x, java.lang.Double y, java.lang.Double width, java.lang.Double height, java.lang.Double r, java.lang.Double g, java.lang.Double b, java.lang.Double a) -
DrawTextureColor
public void DrawTextureColor(Texture tex, double x, double y, double r, double g, double b, double a) -
DrawTextureIgnoreOffset
-
DrawTexture_FlippedX
-
DrawTexture_FlippedXIgnoreOffset
-
DrawUVSliceTexture
-
getScrollChildren
public boolean getScrollChildren() -
setScrollChildren
public void setScrollChildren(boolean bScroll) -
getScrollWithParent
public boolean getScrollWithParent() -
setScrollWithParent
public void setScrollWithParent(boolean bScroll) -
getAbsoluteX
public int getAbsoluteX() -
getAbsoluteY
public int getAbsoluteY() -
getClickedValue
public java.lang.String getClickedValue() -
bringToTop
public void bringToTop() -
onMouseDown
public boolean onMouseDown(int x, int y) -
onMouseWheel
public boolean onMouseWheel(int del) -
onMouseMove
public boolean onMouseMove(int dx, int dy) -
onMouseMoveOutside
public void onMouseMoveOutside(int dx, int dy) -
onMouseUp
public boolean onMouseUp(int x, int y) -
onresize
public void onresize() -
onResize
public void onResize() -
onRightMouseDown
public boolean onRightMouseDown(int x, int y) -
onRightMouseUp
public boolean onRightMouseUp(int x, int y) -
RemoveControl
-
render
public void render() -
update
public void update() -
isCapture
public boolean isCapture() -
setCapture
public void setCapture(boolean capture) -
isIgnoreLossControl
public boolean isIgnoreLossControl() -
setIgnoreLossControl
public void setIgnoreLossControl(boolean IgnoreLossControl) -
setClickedValue
public void setClickedValue(java.lang.String clickedValue) -
getControls
public java.util.ArrayList getControls() -
setControls
public void setControls(java.util.Vector Controls) -
isDefaultDraw
public boolean isDefaultDraw() -
setDefaultDraw
public void setDefaultDraw(boolean defaultDraw) -
isFollowGameWorld
public boolean isFollowGameWorld() -
setFollowGameWorld
public void setFollowGameWorld(boolean followGameWorld) -
getHeight
public float getHeight() -
getParent
-
setParent
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
getWidth
public float getWidth() -
setWidth
public void setWidth(double width) -
getX
public float getX() -
getXScrolled
-
getYScrolled
-
setX
public void setX(double x) -
getY
public float getY() -
setY
public void setY(double y) -
suspendStencil
public void suspendStencil() -
resumeStencil
public void resumeStencil() -
setStencilRect
public void setStencilRect(int x, int y, int width, int height) -
clearStencilRect
public void clearStencilRect() -
repaintStencilRect
public void repaintStencilRect(int x, int y, int width, int height) -
getTable
-
setTable
-
setHeight
public void setHeight(double height) -
setHeightSilent
public void setHeightSilent(double height) -
setWidthSilent
public void setWidthSilent(double width) -
setHeightOnly
public void setHeightOnly(double height) -
setWidthOnly
public void setWidthOnly(double width) -
isAnchorTop
public boolean isAnchorTop() -
ignoreWidthChange
public void ignoreWidthChange() -
ignoreHeightChange
public void ignoreHeightChange() -
setAnchorTop
public void setAnchorTop(boolean anchorTop) -
isAnchorLeft
public boolean isAnchorLeft() -
setAnchorLeft
public void setAnchorLeft(boolean anchorLeft) -
isAnchorRight
public boolean isAnchorRight() -
setAnchorRight
public void setAnchorRight(boolean anchorRight) -
isAnchorBottom
public boolean isAnchorBottom() -
setAnchorBottom
public void setAnchorBottom(boolean anchorBottom) -
getPlayerContext
public int getPlayerContext() -
setPlayerContext
public void setPlayerContext(int nPlayer) -
getUIName
public java.lang.String getUIName() -
setUIName
public void setUIName(java.lang.String name) -
clampToParentX
public int clampToParentX(int x) -
clampToParentY
public int clampToParentY(int y) -
isPointOver
public boolean isPointOver(int screenX, int screenY) -
isMouseOver
public boolean isMouseOver()
-