UIButton

class in InfEngine.ui

Inherits from: UISelectable

Description

A clickable button with visual state feedback.

Combines Image (background) and Text (label) capabilities:

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

# TODO: Add example for UIButton

example

See Also

see_also