Page 2 of 3

Re: Help with GUI

Posted: Sun Feb 14, 2021 9:38 pm
by darkfrei
So, I've made this GUI:

Now you can use buttons!

Re: Help with GUI

Posted: Mon Feb 15, 2021 12:20 pm
by pgimeno
Nice work, glad you got it working :)

May I suggest you to look into using love.graphics.setScissor for the scrolling area? It will help you clip the top and bottom properly without the entries suddenly appearing or disappearing.

Re: Help with GUI

Posted: Mon Feb 15, 2021 1:05 pm
by darkfrei
pgimeno wrote: Mon Feb 15, 2021 12:20 pm Nice work, glad you got it working :)

May I suggest you to look into using love.graphics.setScissor for the scrolling area? It will help you clip the top and bottom properly without the entries suddenly appearing or disappearing.
Thanks, I've never heard about it :) It was not obviously that I need to disable it and after first try I got some flickering/blinking.

Now works really smooth.

Re: Help with GUI

Posted: Mon Feb 15, 2021 1:11 pm
by darkfrei
Almost good. On the tablet:

Re: Help with GUI

Posted: Mon Feb 15, 2021 1:14 pm
by darkfrei
Not so good as expected, smartphone:

Re: Help with GUI

Posted: Wed Feb 17, 2021 11:24 am
by darkfrei
darkfrei wrote: Mon Feb 15, 2021 1:11 pm Almost good. On the tablet:
How to disable top overlay on the Android? It closes 32 pixels at the top and it cuts some area at the bottom of display.

Re: Help with GUI

Posted: Wed Feb 17, 2021 8:05 pm
by darkfrei
Ok, now it works also on the Android / Smartphone.

Re: Help with GUI

Posted: Wed Feb 17, 2021 8:53 pm
by pgimeno
darkfrei wrote: Wed Feb 17, 2021 11:24 am How to disable top overlay on the Android? It closes 32 pixels at the top and it cuts some area at the bottom of display.
Fullscreen, I believe.
darkfrei wrote: Wed Feb 17, 2021 8:05 pm Ok, now it works also on the Android / Smartphone.
Nice job!

Re: Help with GUI

Posted: Wed Feb 17, 2021 9:01 pm
by togFox
Looks great. Is that a library or did you modify a library or just started from scratch?

Re: Help with GUI

Posted: Wed Feb 17, 2021 9:51 pm
by darkfrei
togFox wrote: Wed Feb 17, 2021 9:01 pm Looks great. Is that a library or did you modify a library or just started from scratch?
It's not a library, just code to understand all this features. Also you can use mouse wheel to move the slider :)