HudElementsBuilder
Builder of HUD elements.
Functions
Link copied to clipboard
abstract fun column( position: <Error class: unknown class> = Vec2.nullVector, alignment: HorizontalAlignment = HorizontalAlignment.Center, spacing: Float = 0.0f, onInputEvent: (event: Any?) -> Boolean? = null, init: HudElementsBuilder.() -> Unit): ColumnLayout
Content copied to clipboard
Creates a column layout.
Link copied to clipboard
abstract fun row( position: <Error class: unknown class> = Vec2.nullVector, alignment: VerticalAlignment = VerticalAlignment.Center, spacing: Float = 0.0f, onInputEvent: (event: Any?) -> Boolean? = null, init: HudElementsBuilder.() -> Unit): RowLayout
Content copied to clipboard
Creates a row layout.
Link copied to clipboard
abstract fun stack( position: <Error class: unknown class> = Vec2.nullVector, alignment: Alignment = Alignment.Center, onInputEvent: (event: Any?) -> Boolean? = null, init: HudElementsBuilder.() -> Unit): StackLayout
Content copied to clipboard
Creates a stack layout.
Link copied to clipboard
abstract fun table( position: <Error class: unknown class> = Vec2.nullVector, columns: List<TableLayout.Column>, columnsSpacing: Float = 0.0f, rowsSpacing: Float = 0.0f, onInputEvent: (event: Any?) -> Boolean? = null, init: HudElementsBuilder.() -> Unit): TableLayout
Content copied to clipboard
Creates a table layout
Link copied to clipboard
abstract fun text( text: String, font: Font = Font.DEFAULT, color: <Error class: unknown class> = Vec4(x = 1f, y = 1f, z = 1f, w = 1f), padding: Padding = Padding(), width: Int = 0, height: Int = 0, position: <Error class: unknown class> = Vec2.nullVector, onInputEvent: (event: Any?) -> Boolean? = null, init: QuadBuilder.() -> Unit = {}): Quad
Content copied to clipboard
Creates a quad containing text.
Link copied to clipboard
abstract fun withTransformation( translation: () -> <Error class: unknown class> = { Vec2.nullVector }, rotation: () -> <Error class: unknown class> = { Angle.nullAngle }, scale: () -> <Error class: unknown class> = { Vec2(x = 1f, y = 1f) }, init: HudElementsBuilder.() -> Unit): TransformationWrapper
Content copied to clipboard
Transforms an element defined in the init block.
Link copied to clipboard
abstract fun withVisibility(visibility: () -> Boolean, init: HudElementsBuilder.() -> Unit): VisibilityWrapper
Content copied to clipboard
Sets visibility of an element defined in the init block.