Constructor


TextMenuItemComponent(text: string|Text, callback: function?, options: table?)

Arguments:

text: string|Text

The Text object, made for displaying formatted text.

If you're looking for text which writes itself out over time, see DialogueText.

callback: function?
options: table?




Methods


TextMenuItemComponent:onHovered(hovered: boolean, initial: boolean)

Arguments:

hovered: boolean
initial: boolean



Fields


TextMenuItemComponent.color: number, [2]? }

Three values representing a color, with an optional alpha value. Values are between 0 and 1.




TextMenuItemComponent.text: Text

The Text object, made for displaying formatted text.

If you're looking for text which writes itself out over time, see DialogueText.