GOOi, an Android-Oriented GUI Library

Jack Dandy
Prole
Posts: 49
Joined: Mon Sep 08, 2014 4:26 pm

Re: GOOi, an Android-Oriented GUI Library

I have a problem. I'm using GOOi to create a nice UI for my game.

https://imgur.com/3s6aapx

Looks nice! I meant for it to be in the middle of the granite area to the right of the screen. Works good.

But when I switch to fullscreen, using a screen scaler library (specifically, lovesize. https://github.com/RicardoBusta/lovesize), it screws up the positioning, as seen below.

https://imgur.com/K3kbApn

Any tips on how to fix this?

alberto_lara
Party member
Posts: 331
Joined: Wed Oct 30, 2013 8:59 pm

Re: GOOi, an Android-Oriented GUI Library

I just can't believe I didn't answer this... sorry about that, I guess you don't even need an answer anymore? Please let me know what happened.

EDIT: Lol, I saw the date you joined the forum and thought it was your text date... so yes, I'll take a look at it as soon as I can.
LÖVE Projects: GOOi, Süsse and Katsudö
Thank you for taking the time to read this

alberto_lara
Party member
Posts: 331
Joined: Wed Oct 30, 2013 8:59 pm

Re: GOOi, an Android-Oriented GUI Library

I see, if I understand well, you are expecting some kind of responsiveness/scaling. If that's the case, then you must know that GOOi does not support such things. You may want to use a canvas for this and call

Code: Select all

gooi.setCanvas(yourCanvas)
this way you draw things on the same canvas you're using and it will scale along with your canvas resolution.
LÖVE Projects: GOOi, Süsse and Katsudö
Thank you for taking the time to read this

Who is online

Users browsing this forum: No registered users and 6 guests