AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: ui/placeable/sequence/placeable_list_entry.gd
Version: 5.0
class_name: PlaceableListEntry
extends: HBoxContainer
Signals
selected(entry: PlaceableListEntry)- Emitted after cycling to a different variant. Use
variant_indexto query the active object. - Single placeable resource to display/select when no sequence is provided.
- Emitted after cycling to a different variant. Use
variant_changed(entry: PlaceableListEntry, variant_index: int)- Single placeable resource to display/select when no sequence is provided.
Exports
placeable: Resource- (for example a
PlaceableSequencecontaining multiplePlaceableresources). - Key Features
- Emits
selectedwhen the user clicks or presses Enter/Space.
- Emits
- Emits
variant_changedwhen cycling variants via arrow buttons or Left/Right keys.
- Emits
- Provides public getters so documentation and examples never rely on private helpers:
get_active_variant_index()returns the active variant index.
get_active_display_name()resolves a display name from the active object.
- Input and Accessibility
- Mouse: left click selects; on-screen left/right buttons cycle variants.
- Keyboard: when focused, Left/Right cycle variants; Enter/Space select.
- Data requirements
- The active object should provide a
display_name: Stringand optionalicon: Texture2D.
- The active object should provide a
- When
sequenceis used, it should exposecount()andget_variant(index).
- When
- (for example a
sequence: Resource- Purpose
- Drop-in UI cell meant to replace a plain
ItemListrow with a richer control
- Drop-in UI cell meant to replace a plain
- that shows an icon, name, and optional variant index with left/right arrows.
- (for example a
PlaceableSequencecontaining multiplePlaceableresources). - Key Features
- Emits
selectedwhen the user clicks or presses Enter/Space.
- Emits
- Emits
variant_changedwhen cycling variants via arrow buttons or Left/Right keys.
- Emits
- Provides public getters so documentation and examples never rely on private helpers:
get_active_placeable()returns the currently active resource in this entry.
get_active_variant_index()returns the active variant index.
get_active_display_name()resolves a display name from the active object.
- Input and Accessibility
- Mouse: left click selects; on-screen left/right buttons cycle variants.
- Keyboard: when focused, Left/Right cycle variants; Enter/Space select.
- Data requirements
- The active object should provide a
display_name: Stringand optionalicon: Texture2D.
- The active object should provide a
icon_size: Vector2 = Vector2(48, 48):_group- Fixed height for list entries to maintain consistent sizing.[br][br]
- When set to a positive value, enforces a fixed height regardless of content.[br]
- When set to 0, height enforcement is disabled and the entry will size naturally.[br]
- Default: 56 pixels to match template standard sizing.
fixed_entry_height
Methods
_ready_init_interaction_on_clicked_wire_nodesset_selected(v: bool)is_selected -> bool_gui_input(event)- Handle keyboard navigation only - mouse clicks are handled by PlaceableUIInteraction
_cycle_variant(direction: int)_active_object -> Resourceget_active_placeable -> Resourceget_active_variant_index -> intget_active_display_name -> String_update_variant_visibility_get_property(obj: Object, name: String)_update_view_sequence_count -> int_sequence_has_variants -> bool_enforce_entry_height -> void