zombie.ui
Class UIElement
java.lang.Object
zombie.ui.UIElement
- Direct Known Subclasses:
- ActionProgressBar, Clock, DialogButton, DirectionSwitcher, DoubleSizer, DraggableWindow, EmotionPanel, EnduranceWidget, GenericButton, HelpIcon, HUDButton, InventoryFlowControl, LevelUpCategory, ListBox, MoodlesUI, MovementBlender, NewContainerPanel, NewWindow, ObjectTooltip, PerkButton, PZConsole, QuestControl, QuestHUD, RadialMenu, ScrollBar, Sidebar, SpeedControls, StatBar, TextBox, TutorialPanel, UI_BodyPart, UIDialoguePanel, UINineGrid, UITextBox2, VirtualItemSlot
public class UIElement
- extends java.lang.Object
- Author:
- LEMMY
Method Summary |
void |
AddChild(UIElement el)
|
void |
bringToTop()
|
void |
ButtonClicked(java.lang.String name)
|
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(UIFont font,
java.lang.String text,
double x,
double y,
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 |
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 |
DrawTexture(Texture tex,
double x,
double y,
double alpha)
|
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 |
DrawTextureScaledCol(Texture tex,
double x,
double y,
double width,
double height,
Color col)
|
void |
DrawTextureScaledCol(Texture tex,
double x,
double y,
double width,
double height,
double r,
double g,
double b,
double a)
|
void |
DrawTextureScaledColor(Texture tex,
double x,
double y,
double width,
double height,
double r,
double g,
double b,
double a)
|
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<UIElement> |
getControls()
|
float |
getHeight()
|
UIElement |
getParent()
|
int |
getPlayerContext()
|
boolean |
getScrollChildren()
|
boolean |
getScrollWithParent()
|
se.krka.kahlua.vm.KahluaTable |
getTable()
|
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 |
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 |
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<UIElement> Controls)
|
void |
setDefaultDraw(boolean defaultDraw)
|
void |
setFollowGameWorld(boolean followGameWorld)
|
void |
setHeight(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 |
setScrollWithParent(boolean bScroll)
|
void |
setStencilRect(int x,
int y,
int width,
int height)
|
void |
setTable(se.krka.kahlua.vm.KahluaTable table)
|
void |
setVisible(boolean visible)
|
void |
setWidth(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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
capture
public boolean capture
IgnoreLossControl
public boolean IgnoreLossControl
clickedValue
public java.lang.String clickedValue
Controls
public java.util.ArrayList<UIElement> 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 se.krka.kahlua.vm.KahluaTable table
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
UIElement
public UIElement()
UIElement
public UIElement(se.krka.kahlua.vm.KahluaTable table)
setMaxDrawHeight
public void setMaxDrawHeight(double height)
clearMaxDrawHeight
public void clearMaxDrawHeight()
getXScroll
public float getXScroll()
getYScroll
public float getYScroll()
setAlwaysOnTop
public void setAlwaysOnTop(boolean b)
AddChild
public void AddChild(UIElement el)
RemoveChild
public void RemoveChild(UIElement el)
setXScroll
public void setXScroll(double x)
setYScroll
public void setYScroll(double y)
setConsumeMouseEvents
public void setConsumeMouseEvents(boolean bConsume)
ClearChildren
public void ClearChildren()
ButtonClicked
public void ButtonClicked(java.lang.String name)
DrawText
public void DrawText(java.lang.String text,
double x,
double y,
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)
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)
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)
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,
double x,
double y,
double width,
double height,
double r,
double g,
double b,
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()
- Returns:
- the capture
setCapture
public void setCapture(boolean capture)
- Parameters:
capture
- the capture to set
isIgnoreLossControl
public boolean isIgnoreLossControl()
- Returns:
- the IgnoreLossControl
setIgnoreLossControl
public void setIgnoreLossControl(boolean IgnoreLossControl)
- Parameters:
IgnoreLossControl
- the IgnoreLossControl to set
setClickedValue
public void setClickedValue(java.lang.String clickedValue)
- Parameters:
clickedValue
- the clickedValue to set
getControls
public java.util.ArrayList<UIElement> getControls()
- Returns:
- the Controls
setControls
public void setControls(java.util.Vector<UIElement> Controls)
- Parameters:
Controls
- the Controls to set
isDefaultDraw
public boolean isDefaultDraw()
- Returns:
- the defaultDraw
setDefaultDraw
public void setDefaultDraw(boolean defaultDraw)
- Parameters:
defaultDraw
- the defaultDraw to set
isFollowGameWorld
public boolean isFollowGameWorld()
- Returns:
- the followGameWorld
setFollowGameWorld
public void setFollowGameWorld(boolean followGameWorld)
- Parameters:
followGameWorld
- the followGameWorld to set
getHeight
public float getHeight()
- Returns:
- the height
getParent
public UIElement getParent()
- Returns:
- the Parent
setParent
public void setParent(UIElement Parent)
- Parameters:
Parent
- the Parent to set
isVisible
public boolean isVisible()
- Returns:
- the visible
setVisible
public void setVisible(boolean visible)
- Parameters:
visible
- the visible to set
getWidth
public float getWidth()
- Returns:
- the width
setWidth
public void setWidth(double width)
- Parameters:
width
- the width to set
getX
public float getX()
- Returns:
- the x
getXScrolled
public float getXScrolled(UIElement parent)
getYScrolled
public float getYScrolled(UIElement parent)
setX
public void setX(double x)
- Parameters:
x
- the x to set
getY
public float getY()
- Returns:
- the y
setY
public void setY(double y)
- Parameters:
y
- the y to set
suspendStencil
public void suspendStencil()
resumeStencil
public void resumeStencil()
setStencilRect
public void setStencilRect(int x,
int y,
int width,
int height)
clearStencilRect
public void clearStencilRect()
getTable
public se.krka.kahlua.vm.KahluaTable getTable()
- Returns:
- the table
setTable
public void setTable(se.krka.kahlua.vm.KahluaTable table)
- Parameters:
table
- the table to set
setHeight
public void setHeight(double height)
- Parameters:
height
- the height to set
setHeightSilent
public void setHeightSilent(double height)
setWidthSilent
public void setWidthSilent(double width)
isAnchorTop
public boolean isAnchorTop()
- Returns:
- the anchorTop
ignoreWidthChange
public void ignoreWidthChange()
ignoreHeightChange
public void ignoreHeightChange()
setAnchorTop
public void setAnchorTop(boolean anchorTop)
- Parameters:
anchorTop
- the anchorTop to set
isAnchorLeft
public boolean isAnchorLeft()
- Returns:
- the anchorLeft
setAnchorLeft
public void setAnchorLeft(boolean anchorLeft)
- Parameters:
anchorLeft
- the anchorLeft to set
isAnchorRight
public boolean isAnchorRight()
- Returns:
- the anchorRight
setAnchorRight
public void setAnchorRight(boolean anchorRight)
- Parameters:
anchorRight
- the anchorRight to set
isAnchorBottom
public boolean isAnchorBottom()
- Returns:
- the anchorBottom
setAnchorBottom
public void setAnchorBottom(boolean anchorBottom)
- Parameters:
anchorBottom
- the anchorBottom to set
getPlayerContext
public int getPlayerContext()
setPlayerContext
public void setPlayerContext(int nPlayer)