PUSH and URUTORA libraries together
Posted: Tue Jan 26, 2021 4:47 pm
I want to do a game that's basically GUI. My goal is something like Buriedbornes (a Android, iOS game).
I am currently using two libraries:
* push for resizing: https://github.com/Ulydev/push
* urgent for GUI: https://github.com/tavuntu/urutora
My problem is that as the push changes the location of objects (buttons, texts, panel, everything that is drawn in love.draw ()), the event of triggering a button for example does not happen.
But if I click in the right place (like x = 10), the button is triggered. But, the button is in another place as push changed it's location.
I tried to change the events where X and Y are sent to the urutora, like this (example):
function love.mousepressed (x, y, button)
local rx, ry = push: toGame (x, y)
u: pressed (rx, ry)
end
But no effects.
The example project is attached.
Any advice?
I am currently using two libraries:
* push for resizing: https://github.com/Ulydev/push
* urgent for GUI: https://github.com/tavuntu/urutora
My problem is that as the push changes the location of objects (buttons, texts, panel, everything that is drawn in love.draw ()), the event of triggering a button for example does not happen.
But if I click in the right place (like x = 10), the button is triggered. But, the button is in another place as push changed it's location.
I tried to change the events where X and Y are sent to the urutora, like this (example):
function love.mousepressed (x, y, button)
local rx, ry = push: toGame (x, y)
u: pressed (rx, ry)
end
But no effects.
The example project is attached.
Any advice?