UIButton¶
class in InfEngine.ui
Inherits from: UISelectable
Description¶
A clickable button with visual state feedback.
Combines Image (background) and Text (label) capabilities:
- Background can be a solid
background_coloror atexture_pathimage. - Label text supports full typography: alignment, line-height, letter-spacing.
- Fires
on_clickwhen the user performs a full click (down + up).
description
Properties¶
| Name | Type | Description |
|---|---|---|
| label | str |
(read-only) |
| font_size | float |
(read-only) |
| font_path | str |
(read-only) |
| label_color | list |
(read-only) |
| text_align_h | TextAlignH |
(read-only) |
| text_align_v | TextAlignV |
(read-only) |
| line_height | float |
(read-only) |
| letter_spacing | float |
(read-only) |
| texture_path | str |
(read-only) |
| background_color | list |
(read-only) |
| on_click_entries | list |
(read-only) |
| on_click | UIEvent |
(read-only) |
properties
Public Methods¶
| Method | Description |
|---|---|
on_pointer_click(event_data) |
public_methods
Lifecycle Methods¶
| Method | Description |
|---|---|
awake() |
lifecycle_methods
Example¶
example
See Also¶
see_also