From ad295bf9c916f3f475a4d4220978d88516467b5f Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 23 Sep 2019 13:51:53 +0200 Subject: [PATCH] feat(fonts): add filter info functions --- gamecore/modules/assets/fonts.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gamecore/modules/assets/fonts.lua b/gamecore/modules/assets/fonts.lua index c527144..a0f052a 100644 --- a/gamecore/modules/assets/fonts.lua +++ b/gamecore/modules/assets/fonts.lua @@ -64,6 +64,7 @@ function Font:setAlign(align) end function Font:setFilter(filter) + local filter = filter or "" self.filter = filter end @@ -93,6 +94,14 @@ function Font:getColor() return self.color end +function Font:getFilter() + return self.filter +end + +function Font:haveFilter() + return ((self.filter ~= "") and (self.filter ~= nil)) +end + -- DRAW FUNCTIONS -- print text using theses functions