PlaceableListEntry

Enforces fixed height for consistent sizing when fixed_entry_height > 0

sort Weight: 10

Enforces fixed height for consistent sizing when fixed_entry_height > 0

Version: v5.0.0

STABLE

Inherits: HBoxContainer
Source: placeable_list_entry.gd
Parsing: AST-based for maximum accuracy with symbol typing


Variables

_current_variant_index:


_icon_rect:


_name_label:


_variant_label:


_left_button:


_right_button:


_container:


_main_panel:


_selected:


_ui_interaction:


Signals

selected(entry: PlaceableListEntry)

Emitted when this entry is selected by the user.

Parameters:

  • entry: PlaceableListEntry

variant_changed(entry: PlaceableListEntry, variant_index: int)

Emitted after cycling to a different variant. Use variant_index to query the active object.

Parameters:

  • entry: PlaceableListEntry
  • variant_index: int

Methods

_ready

Signature: _ready() -> void

Returns: void


_init_interaction

Signature: _init_interaction() -> void

Returns: void


_on_clicked

Signature: _on_clicked() -> void

Returns: void


_wire_nodes

Signature: _wire_nodes() -> void

Returns: void


set_selected

Signature: set_selected(v: bool) -> void

Returns: void

Parameters:

  • v: bool

is_selected

Signature: is_selected() -> bool

This method just tracks the logical selection state

Returns: bool


_gui_input

Signature: _gui_input(event: Variant) -> void

Returns: void

Parameters:

  • event: Variant

_cycle_variant

Signature: _cycle_variant(direction: int) -> void

Handle keyboard navigation only - mouse clicks are handled by PlaceableUIInteraction

Returns: void

Parameters:

  • direction: int

_active_object

Signature: _active_object() -> Resource

Internal: compute the active object given sequence and current index.

Returns: Resource


get_active_placeable

Signature: get_active_placeable() -> Resource

Returns the currently active placeable resource for this entry.

Returns: Resource


get_active_variant_index

Signature: get_active_variant_index() -> int

Returns the active variant index (0-based) within the sequence.

Returns: int


get_active_display_name

Signature: get_active_display_name() -> String

Returns a display name for the active variant.

Returns: String


_update_variant_visibility

Signature: _update_variant_visibility() -> void

Returns: void


_get_property

Signature: _get_property(obj: Object, name: String) -> void

Returns: void

Parameters:

  • obj: Object
  • name: String

_update_view

Signature: _update_view() -> void

Returns: void


_sequence_count

Signature: _sequence_count() -> int

Ensure height enforcement is maintained when content changes

Returns: int


_sequence_has_variants

Signature: _sequence_has_variants() -> bool

Returns: bool


_enforce_entry_height

Signature: _enforce_entry_height() -> void

Enforces fixed height for consistent sizing when fixed_entry_height > 0

Returns: void