Skip to content

Class

SelectionEntryViewBase

Generated GDScript class reference for GridPlacement.SelectionEntryViewBase.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

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

Shared base for single-row selection/palette entry views. [PlaceableView] and [TerrainPaletteEntryView] are the same widget with different payloads: an HBox row with an icon and a label, click/hover interaction, and enforced view height + icon size. The sizing exports, the wired child refs, and the interaction/sizing routines were identical copies in both; this base is their one home. Subclasses own their payload, their signal, and what a click means.

Source: addons/grid_placement/ui/selection_entry_view_base.gd

Syntax

class SelectionEntryViewBase extends PanelContainer

Members

NameKindSummary
fixed_view_heightPropertyFixed height for entry 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 entry 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.