GuiTextureLayoutBuilder

Constructors

Link copied to clipboard
constructor(namespace: String)

Functions

Link copied to clipboard
fun alignment(alignment: (Int, Int) -> Vector2ic)

Configures a dynamic alignment based on the alignment function, which receives (width, height) of the gui texture and returns the (x, y) offset.

Configures how the gui texture should be aligned.

fun alignment(offsetX: Int, offsetY: Int)

Configures a custom alignment with the given offsetX and offsetY.

Link copied to clipboard
fun path(name: String)

Sets the path to the gui texture.

fun path(path: ResourcePath)

Sets the path to the gui texture.