Skip to content

Toolbar UI

SteventheBeven edited this page Jun 12, 2026 · 10 revisions

System Summary

Descriptive summary of what the system is and what it does.

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


Connected Systems

List of connecting/parent/subsystems.

Connecting Systems:

Subsystems:


Related Controls

List of related controls.

Key(s): (Mouse press)

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

Bugs

List of known bugs. Be descriptive but keep it brief!

  • None

Feature List / Breakdown of Features

List of features and descriptions within system.

Object Buttons:

  • Buttons for each placeable object
  • When clicked, that object is placeable
  • Icon updates based on the tile map

Important Variables

Name the most important variables, their type, and what their purpose is

  • toolManager: Node2D = A reference to the tool manager.
  • editorManager: Node2D = A reference to the editor manager.
  • tileMap: TileMapLayer = A reference to the tile map.
  • tileButton: TextureButton = A reference to the button to select the placeable tile. There is one of these for each tile type.
  • propButton: TextureButton = A reference to the button to select the placeable prop. There is one of these for each prop type.

Important Functions

Name of the most important functions, their parameters, and what they do.

  • 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.
  • func _on_(Type of tile)_tile_button_pressed() -> [void]: Updates the currently selected tile type based on the button pressed. There is one of these for each tile type.
  • func _on_prop_(number)_button_pressed() -> [void]: Updates the currently selected prop type based on the button pressed. There is one of these for each prop type.

Future Work / Risks

List and description of upcoming work/risks.

Future Work:

  1. Add functionality for changing the icons of the entities.

Risks:

  • Risk 1

Miscellaneous Notes

A place for miscellaneous notes pertaining to this system.

  • Note 1
    • Subnote 1
  • Note 2

Clone this wiki locally