core/menusystem: add a break after the first active menu have got a clic
This commit is contained in:
parent
8b436c9bda
commit
a2f15bf14e
|
@ -76,6 +76,7 @@ function MenuSystem:mousemoved(x, y, dx, dy)
|
|||
if v.isActive then
|
||||
if (x > v.x) and (x < v.x + v.w) and (y > v.y) and (y < v.y + v.h) then
|
||||
v:mousemoved(x - v.x, y - v.y)
|
||||
break;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -86,6 +87,7 @@ function MenuSystem:mousepressed( x, y, button, istouch )
|
|||
if v.isActive then
|
||||
if (x > v.x) and (x < v.x + v.w) and (y > v.y) and (y < v.y + v.h) then
|
||||
v:mousepressed(x - v.x, y - v.y, button, istouch )
|
||||
break;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue