From 496f56d5fa6553c3a783614cbbbff588cb944876 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Wed, 6 Mar 2024 19:28:28 -0500 Subject: [PATCH] Fixed mainupdater --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 4aa2099..c486f66 100644 --- a/init.lua +++ b/init.lua @@ -364,13 +364,13 @@ function gui:bottomStack() table.insert(siblings, 1, self) end +local mainupdater = updater:newLoop().OnLoop + function gui:OnUpdate(func) -- Not crazy about this approach, will probably rework this if type(self) == "function" then func = self end mainupdater(function() func(c) end) end -local mainupdater = updater:newLoop().OnLoop - function gui:canPress(mx, my) -- Get the intersection of the clip area and the self then test with the clip, otherwise test as normal local x, y, w, h if self.__variables.clip[1] then