Skip to content

Class

PlaceableView

Generated GDScript class reference for GridPlacement.PlaceableView.

Status
Current
Version
v6.2.1
Source updated
2026-09-24
Generated on
2026-10-22

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 placeable_selected when the user clicks on the view. Usage: 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)

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

Syntax

class PlaceableView extends SelectionEntryViewBase

Members

NameKindSummary
placeable_selectedSignalEmitted when the user clicks on this placeable view to select it.

placeable The placeable object associated with this view.
placeablePropertyThe placeable object displayed by this view.

When set, updates the icon and label to reflect the placeable's display name and icon texture.
set_read_onlyMethod
set_selectedMethod
is_selectedMethod
set_lockedMethod
format_costsMethod
collect_costsMethod