Skip to content

Class

GridBuilderUIController

Generated GDScript class reference for GridPlacement.GridBuilderUIController.

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

Controls visibility of demo HUD zones based on the active placement mode. The demo HUD is composed of independent, single-responsibility components (see the HUD requirements spec): a top-right SaveLoadMenuBar, a right-side BuildPanel (placement selection only), a standalone ActionLog, the TargetInformer, ResourceDisplay, ControlsTileInfoTabs, ZoomSlider and ActionBar. This controller gates only the mode-sensitive pieces:

  • BuildPanel is shown only in PLACE mode (it owns object/terrain selection).
  • ActionLog is shown in every mode except OFF. The SaveLoadMenuBar, ResourceDisplay, ControlsTileInfoTabs, ZoomSlider and ActionBar stay visible across modes. The TargetInformer manages its own visibility (hidden when empty or in OFF).

Source: addons/grid_placement/ui/grid_builder_ui_controller.gd

Syntax

class GridBuilderUIController extends PlacementControl

Members

NameKindSummary
build_panelPropertyRight-side build panel (object/terrain selection). Visible only in PLACE mode.
action_logPropertyStandalone action log. Visible in every mode except OFF.
save_load_menu_barPropertyTop-right save/load/main-menu utility bar (demo may leave it null to hide).
action_barPropertyThe bottom action bar.
target_informerPropertyTarget informer at top-center (self-manages visibility).
controls_tile_infoPropertyLeft-side controls/tile info tabs.
resource_displayPropertyResource display at top-left.
zoom_sliderPropertyCamera zoom slider at bottom-left.
resolve_placement_dependenciesMethod