Commit 786924d
committed
Add RmlUi UI framework integration for SpringBoard dialogs
Implement RmlUi-based UI system as a modern replacement for the legacy
Chili framework. This initial conversion focuses on dialog components as
they are self-contained and easier to migrate independently.
New Infrastructure:
- RmlUi Manager (scen_edit/view_rmlui/rmlui_manager.lua)
- Context creation and lifecycle management
- Document loading and event routing
- Input handling (mouse, keyboard)
- Screen resize and rendering coordination
- RmlUi Widget (LuaUI/widgets/api_sb_rmlui.lua)
- Spring engine integration
- Drawing and input event forwarding
- Layer -999 for proper rendering order
Dialog Conversions:
- Base Dialog class with common functionality
- Event binding (OK, Cancel, ESC, Enter)
- Field value management
- Error message display
- Lifecycle management (Show/Hide/Close)
- NewProjectDialog - Create new SpringBoard projects
- Project name input and validation
- Map selection with dynamic field visibility
- Blank map size configuration
- FileDialog - Base file browser dialog
- File/directory listing
- Single/double-click selection
- File type filtering support
- SaveProjectDialog - Save project dialog
- OpenProjectDialog - Open project dialog with validation
Templates & Styling:
- RML templates (scen_edit/view_rmlui/rml/)
- base_dialog.rml - Generic dialog template
- new_project_dialog.rml - New project UI
- file_dialog.rml - File browser UI
- RCSS stylesheet (scen_edit/view_rmlui/rcss/dialog.rcss)
- Dialog window styling
- Form field styles
- Button styles with hover states
- Dark theme matching Chili appearance
Documentation:
- RMLUI_CONVERSION.md - Comprehensive conversion guide
- Architecture overview
- Migration checklist
- API reference
- Testing instructions
- scen_edit/view_rmlui/README.md - Technical documentation
- Directory structure
- Component mapping
- Usage examples
- Known limitations
Requirements:
- BAR Engine 105.1.1+ or Recoil Engine (RmlUi not in standard Spring 104.x)
- Chili UI framework remains for non-converted components
Status: Phase 1 (Dialogs) complete, testing pending with BAR Engine1 parent d8cc6f2 commit 786924d
File tree
14 files changed
+1945
-0
lines changed- LuaUI/widgets
- scen_edit/view_rmlui
- dialog
- rcss
- rml
14 files changed
+1945
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
0 commit comments