Package zombie.ui
Class ObjectTooltip
java.lang.Object
zombie.ui.UIElement
zombie.ui.ObjectTooltip
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic float
boolean
int
int
Fields inherited from class zombie.ui.UIElement
alwaysBack, anchorBottom, anchorLeft, anchorRight, anchorTop, bScrollChildren, bScrollWithParent, capture, clickedValue, Controls, defaultDraw, followGameWorld, height, IgnoreLossControl, Parent, playerContext, table, visible, width, x, y
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustWidth
(int textX, String text) static void
void
DrawProgressBar
(int x, int y, int w, int h, float f, double r, double g, double b, double a) void
void
DrawTextCentre
(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) void
DrawTextRight
(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) 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
DrawValueRight
(int value, int x, int y, boolean highGood) void
DrawValueRightNoPlus
(float value, int x, int y) void
DrawValueRightNoPlus
(int value, int x, int y) void
endLayout
(ObjectTooltip.Layout layout) getFont()
int
float
void
hide()
boolean
onMouseMove
(double dx, double dy) void
onMouseMoveOutside
(double dx, double dy) void
render()
void
void
setMeasureOnly
(boolean b) void
setWeightOfStack
(float weight) void
void
update()
Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawSubTextureRGBA, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIgnoreOffset, DrawTextureScaledAspect2, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawTextureTiled, DrawTextureTiledX, DrawTextureTiledY, DrawUVSliceTexture, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getRenderThisPlayerOnly, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isForceCursorVisible, isIgnoreLossControl, isKeyConsumed, isMouseOver, isPointOver, isVisible, isWantKeyEvents, onKeyPress, onKeyRelease, onKeyRepeat, onMouseDown, onMouseUp, onMouseUpOutside, onMouseWheel, onresize, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setForceCursorVisible, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setRenderClippedChildren, setRenderThisPlayerOnly, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, suspendStencil
-
Field Details
-
alphaStep
public static float alphaStep -
bIsItem
public boolean bIsItem -
Item
-
Object
-
padRight
public int padRight -
padBottom
public int padBottom
-
-
Constructor Details
-
ObjectTooltip
public ObjectTooltip()
-
-
Method Details
-
checkFont
public static void checkFont() -
getFont
-
getLineSpacing
public int getLineSpacing() -
DrawText
-
DrawTextCentre
public void DrawTextCentre(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) - Overrides:
DrawTextCentre
in classUIElement
-
DrawTextRight
public void DrawTextRight(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) - Overrides:
DrawTextRight
in classUIElement
-
DrawValueRight
public void DrawValueRight(int value, int x, int y, boolean highGood) -
DrawValueRightNoPlus
public void DrawValueRightNoPlus(int value, int x, int y) -
DrawValueRightNoPlus
public void DrawValueRightNoPlus(float value, int x, int y) -
DrawTextureScaled
public void DrawTextureScaled(Texture tex, double x, double y, double width, double height, double alpha) - Overrides:
DrawTextureScaled
in classUIElement
-
DrawTextureScaledAspect
public void DrawTextureScaledAspect(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha) - Overrides:
DrawTextureScaledAspect
in classUIElement
-
DrawProgressBar
public void DrawProgressBar(int x, int y, int w, int h, float f, double r, double g, double b, double a) -
onMouseMove
- Overrides:
onMouseMove
in classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy) - Overrides:
onMouseMoveOutside
in classUIElement
-
render
public void render() -
show
-
hide
public void hide() -
update
public void update() -
adjustWidth
-
beginLayout
-
endLayout
-
getTexture
-
setCharacter
-
getCharacter
-
setMeasureOnly
public void setMeasureOnly(boolean b) -
isMeasureOnly
public boolean isMeasureOnly() -
getWeightOfStack
public float getWeightOfStack() -
setWeightOfStack
public void setWeightOfStack(float weight)
-