public class UITooltip extends UIComponent<UITooltip> implements IGuiText<UITooltip>
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Modifier and Type | Field and Description |
|---|---|
protected Animation<ITransformable.Alpha> |
animation |
protected int |
delay |
protected MalisisFont |
font
The
MalisisFont to use for this UITooltip. |
protected FontRenderOptions |
fro
The
FontRenderOptions to use for this UITooltip. |
protected java.util.List<java.lang.String> |
lines |
protected int |
padding |
| Constructor and Description |
|---|
UITooltip(MalisisGui gui) |
UITooltip(MalisisGui gui,
int delay) |
UITooltip(MalisisGui gui,
java.lang.String text) |
UITooltip(MalisisGui gui,
java.lang.String text,
int delay) |
| Modifier and Type | Method and Description |
|---|---|
void |
animate() |
protected void |
calculateSize() |
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent. |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent. |
int |
getDelay() |
MalisisFont |
getFont()
Gets the
MalisisFont. |
FontRenderOptions |
getFontRenderOptions()
Gets the
FontRenderOptions. |
protected int |
getOffsetX() |
protected int |
getOffsetY() |
UITooltip |
setDelay(int delay) |
UITooltip |
setFont(MalisisFont font)
Sets the
MalisisFont. |
UITooltip |
setFontRenderOptions(FontRenderOptions fro)
Sets the
FontRenderOptions. |
UITooltip |
setText(java.util.List<java.lang.String> lines) |
UITooltip |
setText(java.lang.String text) |
addControlComponent, attachData, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getData, getGui, getHeight, getIconProvider, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getRenderer, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonPress, onButtonRelease, onClick, onDoubleClick, onDrag, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, self, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterprotected MalisisFont font
MalisisFont to use for this UITooltip.protected FontRenderOptions fro
FontRenderOptions to use for this UITooltip.protected java.util.List<java.lang.String> lines
protected int padding
protected int delay
protected Animation<ITransformable.Alpha> animation
public UITooltip(MalisisGui gui)
public UITooltip(MalisisGui gui, java.lang.String text)
public UITooltip(MalisisGui gui, int delay)
public UITooltip(MalisisGui gui, java.lang.String text, int delay)
public MalisisFont getFont()
IGuiTextMalisisFont.public UITooltip setFont(MalisisFont font)
IGuiTextMalisisFont.public FontRenderOptions getFontRenderOptions()
IGuiTextFontRenderOptions.getFontRenderOptions in interface IGuiText<UITooltip>public UITooltip setFontRenderOptions(FontRenderOptions fro)
IGuiTextFontRenderOptions.setFontRenderOptions in interface IGuiText<UITooltip>fro - the fropublic UITooltip setText(java.lang.String text)
public UITooltip setText(java.util.List<java.lang.String> lines)
public UITooltip setDelay(int delay)
public int getDelay()
protected int getOffsetX()
protected int getOffsetY()
protected void calculateSize()
public void animate()
public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawBackground in class UIComponent<UITooltip>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawForeground in class UIComponent<UITooltip>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick