No Button Right Click

This commit is contained in:
João Lopes 2021-10-20 20:25:09 +01:00
parent 773321041c
commit bb5a21b39b

View File

@ -111,8 +111,10 @@ function newobject:mousepressed(x, y, button)
if baseparent and baseparent.type == "frame" then if baseparent and baseparent.type == "frame" then
baseparent:MakeTop() baseparent:MakeTop()
end end
self.down = true if button == 1 then
loveframes.downobject = self self.down = true
loveframes.downobject = self
end
end end
self.pressed_button = button self.pressed_button = button