Open RiscadoA opened 1 month ago
PR Preview Action v1.4.7
:---:
:rocket: Deployed preview to https://GameDevTecnico.github.io/cubos/docs-preview/pr-1235/
on branch gh-pages
at 2024-06-05 22:32 UTC
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 40.34%. Comparing base (
50e078c
) to head (73f8450
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Rebased on #1227.
Description
Adds a menu bar plugin to Tesseratos. This plugin basically picks up all entities with the
MenuBarItem
component, and shows them in the menu bar.Additionally, ChildOf hierarchies lead to having drop-down menus within the bar.
Check out the editor
main.cpp
for an example of how these entities can be created. Down the road, we should change plugins to add their own entries there.User interaction is handled through observers: if the user selects an item in the menu, the
MenuBarSelected
component is added and immediately removed. This triggers any.onAdd<MenuBarSelected>
observers added by users.Checklist
Ensure test coverage.Write new samples.