PlaceableListEntry
Summary
Section titled “Summary”Emitted when this entry is selected by the user.
Signals
Section titled “Signals”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_indexto query the active object.
Properties
Section titled “Properties”placeable: Resource:Single placeable resource to display/select when no sequence is provided.
sequence: Resource:Optional sequence wrapper providing variants (e.g.
PlaceableSequence). Should implementcount()andget_variant(index).icon_size: Vector2 = Vector2(48, 48)fixed_entry_height: int = 56Fixed 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.
Methods
Section titled “Methods”func _ready( )func _init_interaction( )func _on_clicked( )func _wire_nodes( )func set_selected( v: bool )func is_selected( ) -> boolfunc _gui_input( event )func _cycle_variant( direction: int )func _active_object( ) -> ResourceInternal: compute the active object given
sequenceand current index.func get_active_placeable( ) -> ResourceReturns the currently active placeable resource for this entry.
func get_active_variant_index( ) -> intReturns the active variant index (0-based) within the sequence.
func get_active_display_name( ) -> StringReturns a display name for the active variant.
func _update_variant_visibility( )func _get_property( obj: Object, name: String )func _update_view( )func _sequence_count( ) -> intfunc _sequence_has_variants( ) -> boolfunc _enforce_entry_height( ) -> voidEnforces fixed height for consistent sizing when fixed_entry_height > 0
Source
Section titled “Source”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.