Anything else is passed on to the BitmapText of a bitmap font
label, such as lineHeight.
OptionalbindA keyboard shortcut that clicks the button: an input.KEY key code,
or the name of an action bound with input.bindKey. -1 for none.
See UITextButton#bindKey.
Optionalborderoutline colour, drawn look only
Optionalborderolder name of height, still accepted
Optionalborderolder name of borderColor, still accepted
OptionalborderOlder name of width, still accepted. It is the button's width, not an
outline thickness as borderWidth is on the other widgets.
Optionalenabledwhether the button answers input; see UIBaseElement#enabled
Optionalfillolder name of labelFillStyle, still accepted
OptionalfontThe font: the name of a loaded bitmap font, or a CSS font family. A
name with a font image in the loader, or a fontData setting, is drawn
as a BitmapText; anything else as a Text with that CSS
font.
Optionalfontthe loader name of the bitmap font data, when it differs from font
OptionalfontThe label's height in pixels, for a bitmap font as for a CSS font. A
bitmap font is scaled to it. Left out: 16 for a CSS font, the authored
size for a bitmap font. Wins over size.
OptionalheightThe button's height in pixels. Left out: the skin's normal region
height, or else the label's height plus 16.
Optionalhoverbackground colour at rest, drawn look only
Optionalhoverbackground colour under the pointer, drawn look only
OptionalhoverThe scale the widget is drawn at under the pointer, or while it has
the keyboard and gamepad focus, such as 1.05. 1 turns it off.
OptionallabelThe label's colour. A bitmap font is tinted with it; left out, a bitmap font keeps its own colours and a CSS font is black.
OptionalonWhat the button does. Called once per completed click: pressed and
released on the button, Enter / Space / A pressed and released with
the focus on it, or its bindKey pressed and released. A press dragged
off the button, called off, or turned into a scroll by a
UIPanel does not call it. Nor does a disabled button.
OptionalpressedBackground colour while held down, drawn look only. Left out, a held
button shows hoverOnColor.
OptionalpressThe scale the widget is drawn at while held down, such as 0.92.
1 turns it off.
OptionalsizeOlder form of fontSize, still accepted. With a CSS font it is the
height in pixels; with a bitmap font it is a scale of the authored
size (2 is double), not pixels.
OptionalskinDraw the button from atlas regions instead of a rounded rectangle. The colour settings below are then not used.
Optionaltextthe label's text
OptionaltextThe label's horizontal alignment about the centre of the button:
"left" starts the text at the centre, "right" ends it there.
Optionaltextthe label's baseline about the vertical middle of the button
OptionalwidthThe button's width in pixels. Left out: the skin's normal region
width, or else the label's width plus 16.
Everything UITextButton takes. Every field is optional. The object is only read, so one style object can be spread into several buttons.