Package zombie.ui
Class ObjectTooltip
java.lang.Object
zombie.ui.UIElement
zombie.ui.ObjectTooltip
public class ObjectTooltip extends UIElement
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectTooltip.Layoutstatic classObjectTooltip.LayoutItem -
Field Summary
Fields Modifier and Type Field Description static floatalphaStepbooleanbIsItemInventoryItemItemIsoObjectObjectintpadBottomintpadRightFields 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
Constructors Constructor Description ObjectTooltip() -
Method Summary
Modifier and Type Method Description voidadjustWidth(int textX, java.lang.String text)ObjectTooltip.LayoutbeginLayout()static voidcheckFont()voidDrawProgressBar(int x, int y, int w, int h, float f, double r, double g, double b, double a)voidDrawText(UIFont font, 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)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)IsoGameCharactergetCharacter()UIFontgetFont()intgetLineSpacing()TexturegetTexture()voidhide()booleanisMeasureOnly()java.lang.BooleanonMouseMove(double dx, double dy)voidonMouseMoveOutside(double dx, double dy)voidrender()voidsetCharacter(IsoGameCharacter chr)voidsetMeasureOnly(boolean b)voidshow(IsoObject obj, double x, double y)voidupdate()Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIgnoreOffset, DrawTextureScaledAspect2, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawUVSliceTexture, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isCapture, isDefaultDraw, isEnabled, isFollowGameWorld, isIgnoreLossControl, isMouseOver, isPointOver, isVisible, onMouseDown, onMouseUp, onMouseWheel, onresize, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, suspendStencilMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public void DrawText(UIFont font, 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)- 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
public java.lang.Boolean onMouseMove(double dx, double dy)- Overrides:
onMouseMovein classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy)- Overrides:
onMouseMoveOutsidein classUIElement
-
render
public void render() -
show
-
hide
public void hide() -
update
public void update() -
adjustWidth
public void adjustWidth(int textX, java.lang.String text) -
beginLayout
-
endLayout
-
getTexture
-
setCharacter
-
getCharacter
-
setMeasureOnly
public void setMeasureOnly(boolean b) -
isMeasureOnly
public boolean isMeasureOnly()
-