Layout Entity Element
constructor(anchor: GuiAnchor? = null, layer: Int = 0, affectBounds: Boolean = true, condition: String? = null, x: Int = 0, y: Int = 0, align: String? = null, value: String? = null, lines: LinesConfig? = null, list: List<String>? = null, offset: PositionOffset? = null, image: ElementImageEntity? = null, head: HeadElement? = null, avatar: AvatarElement? = null, progress: LayoutEntityProgress? = null, compass: CompassElement? = null, background: ElementBackgroundEntity? = null, font: String? = null)(source)
Parameters
x
相对锚点的水平像素偏移。 / Horizontal pixel offset from the anchor.
y
元素顶部相对锚点的垂直像素偏移,正数向上。 / Top-edge pixel offset from the anchor, positive upward.
head
引用 core/template/head 中的头像模板及可选目标覆盖。 / A player-head template reference and optional target override.
font
字体 ID;为空时使用布局默认字体。 / Font ID; falls back to the layout's default font.