From 48ad4ad88e151dce12be3c5ecf4b8837e832cb52 Mon Sep 17 00:00:00 2001 From: Sabine Lim Date: Mon, 8 May 2023 02:45:53 +1000 Subject: [PATCH] Add foreground XML parameter for VisualObjects --- Basalt/plugins/xml.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Basalt/plugins/xml.lua b/Basalt/plugins/xml.lua index a214f33..072c64c 100644 --- a/Basalt/plugins/xml.lua +++ b/Basalt/plugins/xml.lua @@ -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, -} \ No newline at end of file +}