Add foreground XML parameter for VisualObjects

This commit is contained in:
Sabine Lim
2023-05-08 02:45:53 +10:00
committed by GitHub
parent a4b53b7cd0
commit 48ad4ad88e

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