Commit 59eec6e
committed
Fix field rendering issues - GroupFields, colons, checkboxes, visibility
1. Remove duplicate GroupField children
- Mark children with _isGroupChild flag
- Skip rendering them separately in _FinalizeRmlUi
- They're only rendered as part of the GroupField
2. Hide auto-generated GroupField names
- Don't show "_groupField1", "_groupField2", etc.
- Only show title if explicitly provided and not auto-generated
3. Fix double colons in labels (Amount:: → Amount:)
- Strip trailing ":" from title before adding it
- Applied to all field types
4. Make GroupField children inline
- Replace field-row with field-inline for group children
- Inline layout with smaller fixed-width inputs (100dp)
5. Add checkbox styling
- .field-checkbox class for checkboxes
- 20dp x 20dp size
6. Implement SetInvisibleFields for RmlUi
- Use SetClass("hidden", true/false) on field parent nodes
- Added .hidden { display: none; } CSS rule
- Can't just skip it - need proper visibility control
7. Add CSS for inline fields and groups
- .field-inline for inline display in groups
- .field-inline .field-input: fixed 100dp width
- .field-group: increased gap to 10dp
Fixes all reported issues: duplicate fields, group names, double colons,
small textboxes, missing checkboxes, broken field visibility.1 parent 7c0a2d6 commit 59eec6e
File tree
3 files changed
+94
-18
lines changed- scen_edit/view
- rcss
3 files changed
+94
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
313 | 335 | | |
314 | 336 | | |
315 | 337 | | |
| |||
380 | 402 | | |
381 | 403 | | |
382 | 404 | | |
| 405 | + | |
| 406 | + | |
383 | 407 | | |
384 | 408 | | |
385 | 409 | | |
| |||
704 | 728 | | |
705 | 729 | | |
706 | 730 | | |
707 | | - | |
| 731 | + | |
708 | 732 | | |
709 | 733 | | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
715 | 742 | | |
716 | 743 | | |
717 | | - | |
| 744 | + | |
718 | 745 | | |
719 | 746 | | |
720 | | - | |
| 747 | + | |
721 | 748 | | |
722 | 749 | | |
723 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
145 | 167 | | |
146 | 168 | | |
147 | 169 | | |
| |||
162 | 184 | | |
163 | 185 | | |
164 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
165 | 194 | | |
166 | 195 | | |
167 | 196 | | |
| |||
183 | 212 | | |
184 | 213 | | |
185 | 214 | | |
186 | | - | |
| 215 | + | |
187 | 216 | | |
| 217 | + | |
188 | 218 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
105 | | - | |
106 | | - | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| 132 | + | |
| 133 | + | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
129 | | - | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
310 | 318 | | |
311 | 319 | | |
312 | 320 | | |
| 321 | + | |
313 | 322 | | |
314 | | - | |
315 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
319 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
320 | 339 | | |
321 | 340 | | |
322 | 341 | | |
| |||
0 commit comments