Commit 24c227c
committed
Fix RmlUi field generation - add fields to fieldOrder
CRITICAL FIX: RmlUi fields weren't being added to fieldOrder array
The problem:
- _AddControl() adds to fieldOrder (for Chili fields with components)
- _AddField() did NOT add to fieldOrder
- RmlUi fields don't have .components, so they only call _AddField()
- Result: fieldOrder was empty, _FinalizeRmlUi() generated no HTML
The fix:
- Modified _AddField() to add field.name to fieldOrder
- Checks for duplicates (in case field was already added via _AddControl)
- Now RmlUi fields appear in fieldOrder and get rendered
Also:
- Removed no_serialize skip in InitializeAllEditors()
- no_serialize means "don't save state", not "don't initialize"
- objectPropertyWindow and collisionView are valid editors that need initialization
This fixes: "all editors have 0 fields" - they now generate proper RML1 parent 682c0e5 commit 24c227c
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
390 | 403 | | |
391 | 404 | | |
392 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
179 | | - | |
| 178 | + | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | | - | |
184 | | - | |
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
| |||
0 commit comments