feat: add func support to guiElements

This commit is contained in:
Kazhnuz 2021-09-12 09:53:58 +02:00
parent 6c55a070fe
commit 023e0185ef

View file

@ -101,6 +101,10 @@ function GuiElement:newSwitch(start, bools)
self.tweens:newSwitch(start, bools) self.tweens:newSwitch(start, bools)
end end
function GuiElement:newFunc(start, func)
self.tweens:newFunc(start, func)
end
function GuiElement:delayFocus(start) function GuiElement:delayFocus(start)
self.tweens:newFunc(start, "focus", function () self.tweens:newFunc(start, "focus", function ()
self:getFocus() self:getFocus()