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 booleanalwaysBackbooleananchorBottombooleananchorLeftbooleananchorRightbooleananchorTopbooleanbScrollChildrenbooleanbScrollWithParentbooleancapturejava.lang.StringclickedValuejava.util.ArrayListControlsbooleandefaultDrawbooleanfollowGameWorldfloatheightbooleanIgnoreLossControlUIElementParentintplayerContextKahluaTabletablebooleanvisiblefloatwidthfloatxfloaty -
Constructor Summary
Constructors Constructor Description UIElement()UIElement(KahluaTable table) -
Method Summary
Modifier and Type Method Description voidAddChild(UIElement el)voidbackMost()voidbringToTop()voidButtonClicked(java.lang.String name)intclampToParentX(int x)intclampToParentY(int y)voidClearChildren()voidclearMaxDrawHeight()voidclearStencilRect()voidDrawText(java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawText(java.lang.String text, double x, double y, int width, int height, double r, double g, double b, double alpha)voidDrawText(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawText(UIFont font, java.lang.String text, double x, double y, float zoom, double r, double g, double b, double alpha)voidDrawTextCentre(java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawTextCentre(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawTextRight(java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawTextRight(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawTextUntrimmed(UIFont font, java.lang.String text, double x, double y, double r, double g, double b, double alpha)voidDrawTexture(Texture tex, double x, double y, double alpha)voidDrawTexture(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)voidDrawTexture_FlippedX(Texture tex, double x, double y, int width, int height, Color col)voidDrawTexture_FlippedXIgnoreOffset(Texture tex, double x, double y, int width, int height, Color col)voidDrawTextureAngle(Texture tex, int width, double angle)voidDrawTextureCol(Texture tex, double x, double y, Color col)voidDrawTextureColor(Texture tex, double x, double y, double r, double g, double b, double a)voidDrawTextureIgnoreOffset(Texture tex, double x, double y, int width, int height, Color col)voidDrawTextureScaled(Texture tex, double x, double y, double width, double height, double alpha)voidDrawTextureScaledAspect(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha)voidDrawTextureScaledAspect2(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha)voidDrawTextureScaledCol(Texture tex, double x, double y, double width, double height, double r, double g, double b, double a)voidDrawTextureScaledCol(Texture tex, double x, double y, double width, double height, Color col)voidDrawTextureScaledColor(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)voidDrawTextureScaledUniform(Texture tex, double x, double y, double scale, double r, double g, double b, double alpha)voidDrawUVSliceTexture(Texture tex, double x, double y, double width, double height, Color col, double xStart, double yStart, double xEnd, double yEnd)intgetAbsoluteX()intgetAbsoluteY()java.lang.StringgetClickedValue()java.util.ArrayListgetControls()floatgetHeight()intgetMaxDrawHeight()UIElementgetParent()intgetPlayerContext()booleangetScrollChildren()intgetScrollHeight()booleangetScrollWithParent()KahluaTablegetTable()java.lang.StringgetUIName()floatgetWidth()floatgetX()floatgetXScroll()floatgetXScrolled(UIElement parent)floatgetY()floatgetYScroll()floatgetYScrolled(UIElement parent)voidignoreHeightChange()voidignoreWidthChange()booleanisAnchorBottom()booleanisAnchorLeft()booleanisAnchorRight()booleanisAnchorTop()booleanisCapture()booleanisDefaultDraw()booleanisFollowGameWorld()booleanisIgnoreLossControl()booleanisMouseOver()booleanisPointOver(int screenX, int screenY)booleanisVisible()booleanonMouseDown(int x, int y)booleanonMouseMove(int dx, int dy)voidonMouseMoveOutside(int dx, int dy)booleanonMouseUp(int x, int y)booleanonMouseWheel(int del)voidonresize()voidonResize()booleanonRightMouseDown(int x, int y)booleanonRightMouseUp(int x, int y)voidRemoveChild(UIElement el)voidRemoveControl(UIElement el)voidrender()voidrepaintStencilRect(int x, int y, int width, int height)voidresumeStencil()voidsetAlwaysOnTop(boolean b)voidsetAnchorBottom(boolean anchorBottom)voidsetAnchorLeft(boolean anchorLeft)voidsetAnchorRight(boolean anchorRight)voidsetAnchorTop(boolean anchorTop)voidsetCapture(boolean capture)voidsetClickedValue(java.lang.String clickedValue)voidsetConsumeMouseEvents(boolean bConsume)voidsetControls(java.util.Vector Controls)voidsetDefaultDraw(boolean defaultDraw)voidsetFollowGameWorld(boolean followGameWorld)voidsetHeight(double height)voidsetHeightOnly(double height)voidsetHeightSilent(double height)voidsetIgnoreLossControl(boolean IgnoreLossControl)voidsetMaxDrawHeight(double height)voidsetParent(UIElement Parent)voidsetPlayerContext(int nPlayer)voidsetScrollChildren(boolean bScroll)voidsetScrollHeight(int h)voidsetScrollWithParent(boolean bScroll)voidsetStencilRect(int x, int y, int width, int height)voidsetTable(KahluaTable table)voidsetUIName(java.lang.String name)voidsetVisible(boolean visible)voidsetWidth(double width)voidsetWidthOnly(double width)voidsetWidthSilent(double width)voidsetX(double x)voidsetXScroll(double x)voidsetY(double y)voidsetYScroll(double y)voidsuspendStencil()voidupdate()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()
-