Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

ui.CanvasTextOptions

How canvas text is placed.

Fields

canvasTextOptions.align: ("start" | "center" | "end")?
#

"start", "center" or "end" within width; default "start"

canvasTextOptions.click: ((player: types.Player) -> ())?
#

runs with the player who clicked it

canvasTextOptions.hover: types.MiniMessage?
#

MiniMessage shown on hover

canvasTextOptions.overflow: ("ellipsis" | "wrap")?
#

"ellipsis" cuts it with …; "wrap" continues on the next lines

canvasTextOptions.width: number?
#

the pixels it may take; needed by overflow and align