Merge pull request #60 from thesabinelim/patch-3

Add foreground XML parameter for VisualObjects
This commit is contained in:
Robert Jelic
2023-05-07 18:46:55 +02:00
committed by GitHub

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,
}
}