Add foreground XML parameter for VisualObjects #60

Merged
thesabinelim merged 1 commits from patch-3 into master 2023-05-08 00:46:55 +08:00

View File

@@ -187,6 +187,7 @@ return {
if(xmlValue("width", data)~=nil)then w = xmlValue("width", data) end
if(xmlValue("height", data)~=nil)then h = xmlValue("height", data) end
if(xmlValue("background", data)~=nil)then self:setBackground(colors[xmlValue("background", data)]) end
if(xmlValue("foreground", data)~=nil)then self:setForeground(colors[xmlValue("foreground", data)]) end
if(xmlValue("script", data)~=nil)then
@@ -762,4 +763,4 @@ return {
return object
end,
}
}