Commit 7c0a2d6
committed
Fix ColorField table formatting and skip SetInvisibleFields in RmlUi
1. Fix ColorField:GenerateRml() string.format error
- Color values are tables in Chili: {r, g, b, a} with 0-1 values
- Convert to hex string format: #RRGGBB
- Handle both table format and string format
2. Skip SetInvisibleFields in RmlUi mode
- This is a Chili-specific method for showing/hiding fields
- Calls Chili control methods (Show/Hide/SetVisibility)
- RmlUi doesn't use Chili controls, so skip entirely
- Field visibility in RmlUi handled via CSS/display properties
Fixes:
- bad argument #4 to 'format' (string expected, got table) at line 152
- attempt to index field 'parent' (a nil value) in object.lua:4881 parent f4de1e1 commit 7c0a2d6
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
152 | 166 | | |
153 | 167 | | |
154 | | - | |
| 168 | + | |
155 | 169 | | |
156 | 170 | | |
157 | 171 | | |
| |||
0 commit comments