1.8 KiB
UIGraphicsComponent.text
← UIGraphicsComponent · ← Master
Parça 1/5 · sonraki
text(java.lang.String text, int x, int y, int color) Graphic Draw a text label relative to graphics component's frame.
text(java.lang.String text, int x, int y, int color, float anchorX, float anchorY) Graphic Draw a text label with an anchor relative to graphics component's frame.
text(java.lang.String text, int x, int y, int w, int h, int color, float anchorX, float anchorY) Graphic Draw a text label with an anchor relative to graphics component's frame.
Methods inherited from class mchorse.mappet.api.ui.components.UIComponent anchor, anchor, anchorX, anchorY, apply, applyKeybinds, change, clearChanges, context, context, createContext, enabled, getChanges, getChildComponents, getDefaultUpdateDelay, h, handleChanges, id, isDataReserved, keybind, keybind, keybind, keybind, margin, marginBottom, marginLeft, marginRight, marginTop, populateData, resetContext, rh, rh, rw, rw, rwh, rx, rx, rxy, ry, ry, serializeNBT, tooltip, tooltip, updateDelay, visible, w, wh, x, xy, y
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail graphics
public java.util.List graphics
Constructor Detail UIGraphicsComponent
public UIGraphicsComponent()
Method Detail removeAll
public UIGraphicsComponent removeAll()
rect
public Graphic rect(int color)
Draw a solid colored rectangle.
Parameters: color - ARGB color that fills the rectangle.
rect
public Graphic rect(int x, int y, int w, int h, int color)
Draw a solid colored rectangle relative to graphics component's frame.
Parameters: w - Width of the rectangle. h - Height of the rectangle.