Help with GUI

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post by darkfrei »

So, I've made this GUI:

Now you can use buttons!
Attachments
2021-02-14T22_36_18-Untitled.png
2021-02-14T22_36_18-Untitled.png (140.32 KiB) Viewed 2944 times
GUI-test-02.love
(2.21 KiB) Downloaded 46 times
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
pgimeno
Party member
Posts: 2818
Joined: Sun Oct 18, 2015 2:58 pm

Re: Help with GUI

Post 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.
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post 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.
Attachments
2021-02-15T14_03_38-Untitled.png
2021-02-15T14_03_38-Untitled.png (130.03 KiB) Viewed 2919 times
GUI-test-03.love
(2.29 KiB) Downloaded 48 times
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post by darkfrei »

Almost good. On the tablet:
Attachments
Screenshot_20210215-141011.png
Screenshot_20210215-141011.png (120.64 KiB) Viewed 2917 times
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post by darkfrei »

Not so good as expected, smartphone:
Attachments
Screenshot_20210215-140852.jpg
Screenshot_20210215-140852.jpg (276.45 KiB) Viewed 2916 times
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post 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.
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post by darkfrei »

Ok, now it works also on the Android / Smartphone.
Attachments
Screenshot_20210217-210452.jpg
Screenshot_20210217-210452.jpg (279.38 KiB) Viewed 2867 times
GUI-test-05.love
(2.52 KiB) Downloaded 47 times
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
User avatar
pgimeno
Party member
Posts: 2818
Joined: Sun Oct 18, 2015 2:58 pm

Re: Help with GUI

Post 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!
togFox
Party member
Posts: 379
Joined: Sat Jan 30, 2021 9:46 am

Re: Help with GUI

Post by togFox »

Looks great. Is that a library or did you modify a library or just started from scratch?
User avatar
darkfrei
Party member
Posts: 414
Joined: Sat Feb 08, 2020 11:09 pm

Re: Help with GUI

Post 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 :)
:awesome: Falling in LÖVE :awesome:
I Löve Lua and Love2D
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 42 guests