The build-mode panel where players pick what to place: the object catalog and, optionally, the terrain palette, with tabs to switch between them.
Source: addons/grid_placement/ui/placement_panel/placement_panel.gd
Syntax
class PlacementPanel extends PanelContainerMembers
| Name | Kind | Summary |
|---|---|---|
enable_terrain_palette | Property | When on, the panel has Objects and Terrain tabs. When off, it shows only the object catalog. |
startup_route | Property | Which tab the panel opens on: - OBJECTS or TERRAIN: always that tab. - LAST_REMEMBERED: the tab used last time (saved in user://), or OBJECTS the first time. - SELECTION_REQUIRED: neither, until the player picks a tab. Which tab the panel opens on. See StartupRoute. |
place_router_ui | Property | The Objects/Terrain tabs. |
scene_entry_selection_ui | Property | The object catalog panel. |
terrain_palette_ui | Property | The terrain palette (used only when enable_terrain_palette is on). |
min_width | Property | Minimum panel width in pixels. |
max_width | Property | Maximum panel width in pixels. |
width_ratio | Property | Panel width as a share of the screen width, kept between min_width and max_width. |