What problem does it solve?
This Skill provides a robust system for creating and managing all user interface elements within a game, from heads-up displays to complex menus, eliminating the need for manual graphics drawing.
Core Features & Use Cases
- RML Document-based UI: Define UI layouts using HTML-like RML and CSS.
- Dynamic Element Manipulation: Create, modify, and remove UI elements from Lua.
- Event Handling: Implement interactive elements with click and other event listeners.
- Data Binding: Seamlessly link Lua variables to UI elements for automatic updates.
- Use Case: Implement a health bar that visually depletes as the player takes damage, a score display that updates in real-time, and a main menu with clickable buttons for starting the game or accessing options.
Quick Start
Use the ui-and-menus skill to load and display a HUD document from the file 'ui/hud.rml'.