XML - Hotfix for colors

This commit is contained in:
Robert Jelic
2025-03-03 23:44:29 +01:00
parent 635720ac11
commit 29bd742fe9

View File

@@ -417,8 +417,12 @@ local function parsePropertyTag(node, element, scope)
local entry = {} local entry = {}
for attr, value in pairs(child.attributes) do for attr, value in pairs(child.attributes) do
if(colors[value])then
entry[attr] = colors[value]
else
entry[attr] = convertValue(value, "string", scope) entry[attr] = convertValue(value, "string", scope)
end end
end
for _, prop in ipairs(child.children) do for _, prop in ipairs(child.children) do
if prop.name ~= "#text" and prop.name ~= "#cdata" then if prop.name ~= "#text" and prop.name ~= "#cdata" then