Class ObjectTooltip
java.lang.Object
zombie.ui.UIElement
zombie.ui.ObjectTooltip
- All Implemented Interfaces:
UIElementInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic floatbooleanintintintintFields inherited from class UIElement
alwaysBack, alwaysOnTop, anchorBottom, anchorLeft, anchorRight, anchorTop, capture, clickedValue, controls, defaultDraw, followGameWorld, height, ignoreLossControl, maxDrawHeight, parent, playerContext, scrollChildren, scrollWithParent, table, visible, width, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustWidth(int textX, String text) static voidvoidDrawProgressBar(int x, int y, int w, int h, float f, double r, double g, double b, double a) voidvoidDrawTextCentre(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) voidDrawTextRight(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) 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) voidDrawValueRight(int value, int x, int y, boolean highGood) voidDrawValueRightNoPlus(float value, int x, int y) voidDrawValueRightNoPlus(int value, int x, int y) voidendLayout(ObjectTooltip.Layout layout) getFont()intfloatvoidhide()booleanonMouseMove(double dx, double dy) voidonMouseMoveOutside(double dx, double dy) voidrender()voidvoidsetMeasureOnly(boolean b) voidsetWeightOfStack(float weight) voidvoidupdate()Methods inherited from class UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawItemIcon, DrawLine, DrawPolygon, DrawScriptItemIcon, DrawSubTextureRGBA, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIcon, DrawTextureIconMask, DrawTextureIgnoreOffset, DrawTexturePercentage, DrawTexturePercentageBottomUp, DrawTextureScaledAspect2, DrawTextureScaledAspect3, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawTextureTiled, DrawTextureTiledX, DrawTextureTiledY, DrawTextureTiledYOffset, DrawUVSliceTexture, EndOutline, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getRenderThisPlayerOnly, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAlwaysOnTop, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isBackMost, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isForceCursorVisible, isIgnoreLossControl, isKeyConsumed, isModalVisible, isMouseOver, isOverElement, isPointOver, isReallyVisible, isVisible, isWantExtraMouseEvents, isWantKeyEvents, onConsumeKeyPress, onConsumeKeyRelease, onConsumeKeyRepeat, onConsumeMouseButtonDown, onConsumeMouseButtonUp, onConsumeMouseMove, onConsumeMouseWheel, onExtendMouseMoveOutside, onKeyPress, onKeyRelease, onKeyRepeat, onMouseButtonDown, onMouseButtonDownOutside, onMouseButtonUpOutside, 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, setStencilCircle, setStencilRect, setTable, setUIName, setVisible, setWantExtraMouseEvents, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, StartOutline, suspendStencil
-
Field Details
-
alphaStep
public static float alphaStep -
isItem
public boolean isItem -
item
-
object
-
padLeft
public int padLeft -
padTop
public int padTop -
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:
DrawTextCentrein classUIElement
-
DrawTextRight
public void DrawTextRight(UIFont font, String text, double x, double y, double r, double g, double b, double alpha) - Overrides:
DrawTextRightin 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:
DrawTextureScaledin classUIElement
-
DrawTextureScaledAspect
public void DrawTextureScaledAspect(Texture tex, double x, double y, double width, double height, double r, double g, double b, double alpha) - Overrides:
DrawTextureScaledAspectin 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:
onMouseMovein classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy) - Overrides:
onMouseMoveOutsidein classUIElement
-
render
public void render()- Specified by:
renderin interfaceUIElementInterface- Overrides:
renderin classUIElement
-
show
-
hide
public void hide() -
update
public void update()- Specified by:
updatein interfaceUIElementInterface- Overrides:
updatein classUIElement
-
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)
-