GuiTextureLayoutBuilder

Properties

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 inventoryLabel(hasInventoryText: Boolean)

Enables or disables the "Inventory" text that is displayed above the player's inventory slots. Defaults to true, meaning the text is shown.

Link copied to clipboard
fun path(name: String)

Sets the path to the gui texture.

Sets the path to the gui texture.