Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
Optionaloptions: DestroyOptions
Options parameter. A boolean will act as if all options have been set to that value
live-resize the button, for a caller whose own layout reflows on window resize rather
than rebuilding buttons from scratch (Window's own constructor-only sizing is fine
for a fixed dialog; a title screen's responsive row of buttons is not)
A clickable region with idle/hover/pressed/disabled states, a label, an icon, or both.
Draws over the same
NinePatch/theme machineryWindowalready draws its chrome from - a panel texture if the theme has one, a flat rounded rectangle otherwise - so a button looks like it belongs to the same interface without a game supplying separate art for it.iconalone (notext) is the icon-only button a title screen commonly reaches for - rankings, badges, settings - where a caption would only repeat what the icon already says.Example