UIButton

类位于 Infernux.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: PointerEventData) → None Internal — fires on_click and persistent entries on click.

public_methods

生命周期方法

方法 描述
awake() → None

lifecycle_methods

示例

example

# TODO: Add example for UIButton

另请参阅

see_also