65 lines
1.8 KiB
Markdown
65 lines
1.8 KiB
Markdown
# UILabelComponent.labelAnchor
|
|
|
|
[← UILabelComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 1/2 · [sonraki](labelAnchor-2.md)
|
|
|
|
labelAnchor(float anchor)
|
|
UILabelComponent Change text's anchor point which determines where text will be rendered relative to
|
|
|
|
component's frame both vertically and horizontally.
|
|
|
|
---
|
|
|
|
labelAnchor(float anchorX, float anchorY)
|
|
|
|
UILabelComponent Change text's anchor point which determines where text will be rendered relative to
|
|
component's frame, with separate vertical and horizontal anchors.
|
|
|
|
void serializeNBT(NBTTagCompound tag)
|
|
|
|
Methods inherited from
|
|
class mchorse.mappet.api.ui.components.UILabelBaseComponent
|
|
apply, color, color, getLabel, label
|
|
|
|
Methods inherited from class mchorse.mappet.api.ui.components.UIComponent
|
|
anchor, anchor, anchorX, anchorY, 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
|
|
background
|
|
|
|
public java.lang.Integer background
|
|
|
|
anchorX
|
|
|
|
public float anchorX
|
|
|
|
anchorY
|
|
|
|
public float anchorY
|
|
|
|
Constructor Detail
|
|
UILabelComponent
|
|
|
|
public UILabelComponent()
|
|
|
|
Method Detail
|
|
background
|
|
|
|
|
|
|
|
public UILabelComponent background(int background)
|
|
|
|
Change background color of this label component by providing hex ARGB.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|
|
// Add a half transparent black background
|