Skip to content

Toolbar UI

Andrew Hernandez edited this page Jun 30, 2026 · 10 revisions

System Summary

UI Bar displaying all placeable objects. The icons update based on the currently loaded assets.


Connected Systems

Connecting Systems:

Subsystems:

  • None

Related Controls

Mouse Click:

  • Click on the items within the UI bar to select which object is currently being placed.

Select Brush/Box Brush:

  • Changes the object bar to display tiles.

Select Cursor:

  • Changes the objectt bar to display entities/props (along with the dropdown).

Entity/Prop Dropdown:

  • Switch between placing Entities and Props using the Cursor tool.

Bugs

  • None

Feature List / Breakdown of Features

Object Switch:

  • Click the buttons or use the hotkeys to swap between objects.
  • Changes selectable objects based on the current tool.

Tool Switch:

  • Click the buttons or use the hotkeys to swap between tools.

Important Variables

  • toolManager: Node2D = A reference to the tool manager.
  • editorManager: Node2D = A reference to the editor manager.
  • tileMap: TileMapLayer = A reference to the tile map.

Important Functions

  • func _ready() -> [void]: Connects pressed signals for all tile buttons and prop buttons.
  • func display_tiles(visibility: bool) -> [void]: Toggles the visibility of the tile selection bar.
  • func display_entities(visibility: bool) -> [void]: Toggles the visibility of the entity selection bar.
  • func entity_dropdown_select(index: int) -> [void]: Toggles the visibility of each tab based on the tab selected.

Future Work / Risks

Future Work:

  1. Add stationary enemy and 6th prop.

Risks:

  • No current risks

Miscellaneous Notes

  • No Notes
    • No Subnotes

Clone this wiki locally