UIButton¶
类位于 InfEngine.ui
继承自: UISelectable
描述¶
UI 按钮组件。用户点击的地方——程序员 Debug 的地方。
description
属性¶
| 名称 | 类型 | 描述 |
|---|---|---|
| label | str |
(只读) |
| font_size | float |
(只读) |
| font_path | str |
(只读) |
| label_color | list |
(只读) |
| text_align_h | TextAlignH |
(只读) |
| text_align_v | TextAlignV |
(只读) |
| line_height | float |
(只读) |
| letter_spacing | float |
(只读) |
| texture_path | str |
(只读) |
| background_color | list |
(只读) |
| on_click_entries | list |
(只读) |
| on_click | UIEvent |
点击事件。 (只读) |
properties
公共方法¶
| 方法 | 描述 |
|---|---|
on_pointer_click(event_data) |
public_methods
生命周期方法¶
| 方法 | 描述 |
|---|---|
awake() |
lifecycle_methods
示例¶
example
另请参阅¶
see_also