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: 1172
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 4019 times
GUI-test-02.love
(2.21 KiB) Downloaded 74 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
pgimeno
Party member
Posts: 3548
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: 1172
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 3994 times
GUI-test-03.love
(2.29 KiB) Downloaded 76 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1172
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 3992 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1172
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 3991 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1172
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: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1172
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 3942 times
GUI-test-05.love
(2.52 KiB) Downloaded 78 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
pgimeno
Party member
Posts: 3548
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!
User avatar
togFox
Party member
Posts: 774
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: Help with GUI

Post by togFox »

Looks great. Is that a library or did you modify a library or just started from scratch?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
darkfrei
Party member
Posts: 1172
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: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests