mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Removed duplicate events
This commit is contained in:
parent
edab2be4c7
commit
a5f77dce96
@ -26,8 +26,6 @@ function newobject:initialize()
|
|||||||
self.toggleable = false
|
self.toggleable = false
|
||||||
self.toggle = false
|
self.toggle = false
|
||||||
self.OnClick = nil
|
self.OnClick = nil
|
||||||
self.OnMouseOver = nil
|
|
||||||
self.OnMouseOut = nil
|
|
||||||
self.groupIndex = 0
|
self.groupIndex = 0
|
||||||
self.checked = false
|
self.checked = false
|
||||||
self.mouseover = false
|
self.mouseover = false
|
||||||
@ -72,15 +70,7 @@ function newobject:update(dt)
|
|||||||
if downobject == self then
|
if downobject == self then
|
||||||
self.hover = true
|
self.hover = true
|
||||||
end
|
end
|
||||||
if onmouseout and self.mouseover then
|
|
||||||
onmouseout(self)
|
|
||||||
self.mouseover = false
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if onmouseover and not self.mouseover then
|
|
||||||
onmouseover(self)
|
|
||||||
self.mouseover = true
|
|
||||||
end
|
|
||||||
if downobject == self then
|
if downobject == self then
|
||||||
self.down = true
|
self.down = true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user