From 8f370a0106a48f20bd2a7dd640bcf71673783fc1 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 10 Jun 2023 15:25:34 +0200 Subject: [PATCH] Update bigfonts.lua small fix when using setBackground after setFontSize --- Basalt/plugins/bigfonts.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Basalt/plugins/bigfonts.lua b/Basalt/plugins/bigfonts.lua index 2dd01bb..040a508 100644 --- a/Basalt/plugins/bigfonts.lua +++ b/Basalt/plugins/bigfonts.lua @@ -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 -} \ No newline at end of file +}