Small Fix
Fixed removeChildren for movable frames and scrollable frames
This commit is contained in:
@@ -40,6 +40,13 @@ return function(name, basalt)
|
|||||||
self:listenEvent("mouse_drag")
|
self:listenEvent("mouse_drag")
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
removeChildren = function(self)
|
||||||
|
base.removeChildren(self)
|
||||||
|
self:listenEvent("mouse_click")
|
||||||
|
self:listenEvent("mouse_up")
|
||||||
|
self:listenEvent("mouse_drag")
|
||||||
|
end,
|
||||||
|
|
||||||
dragHandler = function(self, btn, x, y)
|
dragHandler = function(self, btn, x, y)
|
||||||
if(base.dragHandler(self, btn, x, y))then
|
if(base.dragHandler(self, btn, x, y))then
|
||||||
if (isDragging) then
|
if (isDragging) then
|
||||||
|
|||||||
@@ -98,6 +98,11 @@ return function(name, basalt)
|
|||||||
self:listenEvent("mouse_scroll")
|
self:listenEvent("mouse_scroll")
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
removeChildren = function(self)
|
||||||
|
base.removeChildren(self)
|
||||||
|
self:listenEvent("mouse_scroll")
|
||||||
|
end,
|
||||||
|
|
||||||
setParent = function(self, p, ...)
|
setParent = function(self, p, ...)
|
||||||
base.setParent(self, p, ...)
|
base.setParent(self, p, ...)
|
||||||
parent = p
|
parent = p
|
||||||
|
|||||||
Reference in New Issue
Block a user