TextButton¶
Object ยท UI
A clickable 2D button with label text, hover and press state changes, and click events.
Components¶
A new TextButton starts with these components.
| Component | About |
|---|---|
| Box | Screen-space rectangle; scale is a parent fraction, offset pixels |
| UIOrder | Draw and list order among siblings |
| Panel | Filled rectangle background; the plate behind every Gui |
| Border | Border line around the plate of this Gui |
| UICorner | Rounds the corners of the plate and the stroke |
| UITextSource | The authored text as an interned name id |
| UITextStyle | Text style, including horizontal and vertical alignment |
| UITextWrapped | Breaks the text into lines at the width of the rect |
| Button | Opts into hit-testing and click/press events |
| UIRepeat | Fires Activated on press and again while the press holds |
| UIHidden | Hides the entity and its subtree; the renderer skips it |
| UIDisabled | Draws the control dim and refuses the pointer and the key; absent means usable |
| UITransform | Turns and scales the element and its children after layout; the pointer follows the turned shape |