Commit 3651016
committed
Fix architecture: Make all editors 100% programmatic (no individual RML files)
MAJOR ARCHITECTURE FIX - You were absolutely right!
Before (WRONG):
- 31 separate RML files for editors (one per editor)
- Each editor had its own template
After (CORRECT):
- ONE generic_editor.rml template used by ALL editors
- Editors are 100% programmatic via AddField() API
- Content populated dynamically into generic template
Changes:
- Deleted 31 editor RML files (editors/, map/, object/, general/, trigger/)
- Created ONE generic_editor.rml with placeholders
- Updated RmlUiEditorBase to load generic template and populate it
- All 31 editor classes now extend RmlUiEditorBase
- Each editor just sets editorTitle and calls AddField()
What HAS RML templates (15 files):
✅ Dialogs (7) - Modal windows with specific layouts
✅ Pickers (3) - Specialized UI (color, asset, material)
✅ Floating windows (4) - Specific chrome
✅ Main UI (1) - Window frame
✅ Generic editor (1) - ONE template for ALL editors
What's 100% programmatic:
✅ All 31 editors - call AddField(), content injected into generic template
This matches the original Chili pattern perfectly!1 parent ffaa133 commit 3651016
File tree
34 files changed
+180
-869
lines changed- scen_edit/view
- rml
- editors
- general
- map
- object
- trigger
34 files changed
+180
-869
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| 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 | + | |
This file was deleted.
0 commit comments