TextButton
Extends: BGE.UI.Button
A button drawn as a line of text, with no background: a marker in front of it while focused, and a color for focused, normal and disabled. Good for text-style menus and dialogue choices (BGE.Story.DialogueView's "list" layout). It's still a Button, so focus, clicks, listener and setDisabled() work as usual - subclass and override draw() for your own look.
Properties
marker(string) — Drawn before the label while focused; the label is always indented by its width.textColor(integer)focusedColor(integer)disabledColor(integer)font(roFont) — invalid = the "body" font, else "default".
Constructor
new TextButton(game: BGE.Game): TextButtonParameters
game(BGE.Game)
Instance Methods
draw(parent?: UiWidget): void
Parameters
parent(UiWidget, optional, default: "invalid")
Returns
void