Update bigfonts.lua

small fix when using setBackground after setFontSize
This commit is contained in:
Robert Jelic
2023-06-10 15:25:34 +02:00
committed by GitHub
parent 26567debd6
commit 8f370a0106

View File

@@ -164,6 +164,22 @@ return {
return self
end,
setBackground = function(self, newColor)
base.setBackground(self, newColor)
if(fontsize>1)then
self:setFontSize(fontsize)
end
return self
end,
setForeground = function(self, newColor)
base.setForeground(self, newColor)
if(fontsize>1)then
self:setFontSize(fontsize)
end
return self
end,
getFontSize = function(self)
return fontsize
end,
@@ -217,4 +233,4 @@ return {
}
return object
end
}
}