What problem does it solve?
This Skill provides a comprehensive, step-by-step workflow for creating new ImGui-based editor panels, ensuring they integrate seamlessly with the engine's dependency injection architecture, UI styling standards, and editor layer system. It prevents inconsistent panel implementations and accelerates development by leveraging existing UI infrastructure.
Core Features & Use Cases
- Interface-Based Design: Define panel interfaces (
IMyNewPanel) for testability and DI.
- DI Integration: Properly register panel implementations in the DryIoc container and inject them into the
EditorLayer.
- Menu Bar Setup: Integrate new panels into the editor's "Window" menu for easy access and toggle functionality.
- UI Infrastructure Enforcement: Mandates the use of
UI Drawers and UI Elements for all panel UI, ensuring visual consistency.
- Use Case: To add a new
ParticleEditorPanel for visual particle system creation, this Skill guides you through defining its interface, implementing its class with injected dependencies, adding it to the editor's menu, and ensuring all its UI elements (buttons, sliders, drop targets) use the standardized UI infrastructure.
Quick Start
Guide me through creating a new IMyNewPanel interface and its MyNewPanel implementation, including DI registration and menu bar integration.