Fixed mainupdater
This commit is contained in:
parent
217f18a19b
commit
496f56d5fa
4
init.lua
4
init.lua
@ -364,13 +364,13 @@ function gui:bottomStack()
|
|||||||
table.insert(siblings, 1, self)
|
table.insert(siblings, 1, self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local mainupdater = updater:newLoop().OnLoop
|
||||||
|
|
||||||
function gui:OnUpdate(func) -- Not crazy about this approach, will probably rework this
|
function gui:OnUpdate(func) -- Not crazy about this approach, will probably rework this
|
||||||
if type(self) == "function" then func = self end
|
if type(self) == "function" then func = self end
|
||||||
mainupdater(function() func(c) end)
|
mainupdater(function() func(c) end)
|
||||||
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
|
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
|
local x, y, w, h
|
||||||
if self.__variables.clip[1] then
|
if self.__variables.clip[1] then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user