OptionalcolorOptionaldisabledOptionalfontOptionalfontOptionalheightOptionalhoverTexture key shown on pointer hover (falls back to texture).
OptionaliconOptional icon texture key rendered beside the label.
OptionaliconOptionaliconWhich side of the label the icon sits on (default 'left').
OptionaliconGap in px between icon and label (default 8).
OptionalnineIf provided the background is rendered as a Phaser NineSlice that
stretches cleanly to any size. When omitted the sprite is simply
scaled via setDisplaySize.
OptionalonClick / tap callback.
OptionalpressTexture key shown while pressed (falls back to texture).
OptionaltextText outline color for readability on dark/busy backgrounds.
OptionaltextText outline thickness (default 0 — no stroke).
Base texture key used for the unpressed/default state.
Optionalwidth
Texture key shown when disabled (falls back to
texture).