diff --git a/elements/init.lua b/elements/init.lua index 626d5a7..80609bc 100644 --- a/elements/init.lua +++ b/elements/init.lua @@ -41,7 +41,6 @@ function gui:newMenu(title, sx, position, trans, callback, t,t2) function menu:Open(show) if show then if not menu.lock then - menu.visible = true menu.lock = true local t = to() t.OnStop(function() @@ -89,7 +88,6 @@ function gui:newMenu(title, sx, position, trans, callback, t,t2) end end end - menu.OnCreate = processor:newConnection() local items = {} function menu:addItem(text) diff --git a/init.lua b/init.lua index b4e9dcc..6df508c 100644 --- a/init.lua +++ b/init.lua @@ -95,7 +95,6 @@ local function Hook(funcname, func) love[funcname] = function(...) func({}, ...) end end end - -- Incase you define one of these methods, we need to process this after that updater:newTask(function() -- System @@ -577,7 +576,6 @@ function gui:newBase(typ, x, y, w, h, sx, sy, sw, sh, virtual) end return false end - setmetatable(c, self) c.__index = self.__index c.__variables = {clip = {false, 0, 0, 0, 0}} @@ -613,7 +611,7 @@ function gui:newBase(typ, x, y, w, h, sx, sy, sw, sh, virtual) c.OnSizeChanged = testVisual .. multi:newConnection() c.OnPositionChanged = testVisual .. multi:newConnection() - + c.OnLeftStickUp = testVisual .. multi:newConnection() c.OnLeftStickDown = testVisual .. multi:newConnection() c.OnLeftStickLeft = testVisual .. multi:newConnection() @@ -1282,7 +1280,6 @@ function gui:newImageBase(typ, x, y, w, h, sx, sy, sw, sh) c.scaleX = c.scaleX * -1 end end - function c:getSource() return IMAGE end