Skip to content

PlaceableListEntry

Emitted when this entry is selected by the user.

signal selected( entry: PlaceableListEntry )

Emitted when this entry is selected by the user.

signal variant_changed( entry: PlaceableListEntry, variant_index: int )

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

placeable: Resource:

Single placeable resource to display/select when no sequence is provided.

sequence: Resource:

Optional sequence wrapper providing variants (e.g. PlaceableSequence). Should implement count() and get_variant(index).

icon_size: Vector2 = Vector2(48, 48)
fixed_entry_height: int = 56

Fixed height for list entries to maintain consistent sizing.

When set to a positive value, enforces a fixed height regardless of content.

When set to 0, height enforcement is disabled and the entry will size naturally.

Default: 56 pixels to match template standard sizing.

func _ready( )
func _init_interaction( )
func _on_clicked( )
func _wire_nodes( )
func set_selected( v: bool )
func is_selected( ) -> bool
func _gui_input( event )
func _cycle_variant( direction: int )
func _active_object( ) -> Resource

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

func get_active_placeable( ) -> Resource

Returns the currently active placeable resource for this entry.

func get_active_variant_index( ) -> int

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

func get_active_display_name( ) -> String

Returns a display name for the active variant.

func _update_variant_visibility( )
func _get_property( obj: Object, name: String )
func _update_view( )
func _sequence_count( ) -> int
func _sequence_has_variants( ) -> bool
func _enforce_entry_height( ) -> void

Enforces fixed height for consistent sizing when fixed_entry_height > 0

addons/grid_building/ui/placeable/sequence/placeable_list_entry.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.