Chris' Tutorials
Docs/Grid Placement

Class

PlaceableView

Generated GDScript class reference for GridPlacement.PlaceableView.

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.

UI view for a single placeable used in selection lists. Renders a placeable's icon and display name in a horizontal layout with configurable sizing and padding. Emits [signal placeable_selected] when the user clicks on the view. [b]Usage:[/b] [codeblock] var view = PlaceableView.new() view.placeable = my_placeable view.fixed_view_height = 48 view.fixed_icon_size = 40 view.placeable_selected.connect(_on_placeable_selected) [/codeblock]

Source: addons/grid_placement/ui/placeable/single/placeable_view.gd

Syntax

class PlaceableView extends PanelContainer

Members

NameKindSummary
placeable_selectedEventEmitted when the user clicks on this placeable view to select it. [br][br] [param placeable] The placeable object associated with this view.
fixed_view_heightPropertyFixed height for placeable views 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 view will size naturally.[br] Default: 48 pixels to match template standard sizing.
fixed_icon_sizePropertyFixed icon size for consistent icon dimensions across all placeable views.[br][br] When set to a positive value, enforces both width and height of icon TextureRect.[br] When set to 0, icon sizing is not enforced and will use scene file settings.[br] Default: 40 pixels to match standard icon sizing.
placeablePropertyThe placeable object displayed by this view.[br][br] When set, updates the icon and label to reflect the placeable's display name and icon texture.
set_lockedMethod
suffixProperty
icon_vectorProperty

Source

addons/grid_placement/ui/placeable/single/placeable_view.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs