Skip to content

Class

BuildPanel

Generated GDScript class reference for GridPlacement.BuildPanel.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

Build-mode placement panel. Owns ONLY placement selection UI: the Objects/Terrain route tabs and the object catalog / terrain palette panels. It does NOT own save/load, the main menu, the action bar, the resource display, or the target informer — those are separate demo HUD components (see the HUD requirements spec). Terrain is a developer/template choice, not a player-facing runtime toggle. Set [member enable_terrain_palette] in the Inspector: false -> Objects shown directly; the Terrain tab chrome is hidden. true -> Objects and Terrain share this same panel via the route tabs.

Source: addons/grid_placement/ui/build_panel/build_panel.gd

Syntax

class BuildPanel extends PanelContainer

Members

NameKindSummary
enable_terrain_palettePropertyWhen false, the Terrain route tab and terrain palette stay hidden so the panel reads as an object-only catalog. When true, both routes are available.
place_router_uiPropertyThe Objects/Terrain route tab strip.
placeable_selection_uiPropertyThe object catalog panel.
terrain_palette_uiPropertyThe terrain palette panel (only used when terrain is enabled).
min_widthPropertyMinimum panel width in pixels.
max_widthPropertyMaximum panel width in pixels.
width_ratioPropertyFraction of viewport width used before clamping to [min_width, max_width].