UISelectable

class in InfEngine.ui

Inherits from: InfUIScreenComponent

Description

Base class for interactive UI elements with visual feedback.

Subclass and override pointer hooks to build concrete widgets (see UIButton).

description

Properties

Name Type Description
interactable bool (read-only)
transition UITransitionType (read-only)
normal_color list (read-only)
highlighted_color list (read-only)
pressed_color list (read-only)
disabled_color list (read-only)
current_selection_state int (read-only)

properties

Public Methods

Method Description
get_current_tint() → list Return the RGBA tint for the current visual state.
on_pointer_enter(event_data)
on_pointer_exit(event_data)
on_pointer_down(event_data)
on_pointer_up(event_data)

public_methods

Lifecycle Methods

Method Description
awake()

lifecycle_methods

Example

# TODO: Add example for UISelectable

example

See Also

see_also