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 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

      public UIElement Parent
    • visible

      public boolean visible
    • width

      public float width
    • x

      public float x
    • y

      public float y
    • table

      public KahluaTable 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

      public UIElement​(KahluaTable table)
  • 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

      public void AddChild​(UIElement el)
    • RemoveChild

      public void RemoveChild​(UIElement el)
    • 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

      public void DrawTextureAngle​(Texture tex, int width, double angle)
    • 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

      public void DrawTexture​(Texture tex, double x, double y, double alpha)
    • DrawTextureCol

      public void DrawTextureCol​(Texture tex, double x, double y, Color col)
    • 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

      public void DrawTextureScaledCol​(Texture tex, double x, double y, double width, double height, Color col)
    • 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

      public void DrawTextureIgnoreOffset​(Texture tex, double x, double y, int width, int height, Color col)
    • DrawTexture_FlippedX

      public void DrawTexture_FlippedX​(Texture tex, double x, double y, int width, int height, Color col)
    • DrawTexture_FlippedXIgnoreOffset

      public void DrawTexture_FlippedXIgnoreOffset​(Texture tex, double x, double y, int width, int height, Color col)
    • DrawUVSliceTexture

      public void DrawUVSliceTexture​(Texture tex, double x, double y, double width, double height, Color col, double xStart, double yStart, double xEnd, double yEnd)
    • 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

      public void RemoveControl​(UIElement el)
    • 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

      public UIElement getParent()
    • setParent

      public void setParent​(UIElement Parent)
    • 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

      public float getXScrolled​(UIElement parent)
    • getYScrolled

      public float getYScrolled​(UIElement parent)
    • 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

      public KahluaTable getTable()
    • setTable

      public void setTable​(KahluaTable table)
    • 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()