Chris' Tutorials
Docs/Grid Placement

Class

PlaceableListEntry

Generated GDScript class reference for GridPlacement.PlaceableListEntry.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

Rich, keyboard- and mouse-friendly list entry for selecting a ScenePlacementEntry or sequence variant. Purpose

  • Drop-in UI cell meant to replace a plain ItemList row with a richer control that shows an icon, name, and optional variant index with left/right arrows.
  • Works either with a single placeable Resource or with a sequence of variants (for example a PlaceableSequence containing multiple ScenePlacementEntry resources). Key Features
  • Emits selected when the user clicks or presses Enter/Space.
  • Emits variant_changed when cycling variants via arrow buttons or Left/Right keys.
  • 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: String and optional icon: Texture2D.
  • When sequence is used, it should expose count() and get_variant(index).

Source: addons/grid_placement/ui/placeable/sequence/placeable_list_entry.gd

Syntax

class PlaceableListEntry extends HBoxContainer

Members

NameKindSummary
selectedEventEmitted when this entry is selected by the user.
variant_changedEventEmitted after cycling to a different variant. Use `variant_index` to query the active object.
placeablePropertySingle placeable resource to display/select when no sequence is provided.
sequencePropertyOptional sequence wrapper providing variants (e.g. `PlaceableSequence`). Should implement `count()` and `get_variant(index)`.
icon_sizeProperty
fixed_entry_heightPropertyFixed 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.
set_lockedMethod
set_selectedMethod
is_selectedMethod
totalProperty
get_active_placeableMethod
get_active_variant_indexMethod
get_active_display_nameMethod
objProperty
dnProperty
npropProperty
show_variantsProperty
objProperty
name_textProperty
icon_texProperty
dnProperty
npropProperty
itProperty
totalProperty
total_variantsProperty

Source

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

Plugin docs root:gdscript/plugins/grid_placement_dev/docs