commands Folder
Files Index
| file | helios/engine/modules/ui/widgets/commands/_module.ixx |
|
UI commands submodule. More... | |
| file | UiActionCommand.ixx |
|
Command for triggering UI actions. More... | |
Description
helios::engine::modules::ui::widgets::commands
UI action commands.
This namespace contains commands for triggering UI actions.
Commands
| Command | Description |
|---|---|
| UiActionCommand | Encapsulates a UI action request with source entity and action ID |
UiActionCommand
A world command created when a UI element is activated (e.g., button pressed, menu item selected). Carries the source entity and an ActionId that identifies the action to execute.
Commands are routed through the CommandHandlerRegistry to the registered UiActionCommandManager.
Usage
// Issue a UI action command when menu item is activated
updateContext.queueCommand<UiActionCommand>(
menuItemEntity.entityHandle(),
ActionId::StartGame
);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.