Page 1 of 1

what is best/simple ui library

Posted: Sat Sep 30, 2017 10:26 pm
by crystal
hi,
i need your opinion on this
the question maybe very noob-ish but really what is the best ui library for a simple mobile game

i have tried libs like
Suit - missing onButtonPressed function which is very important for my game
Gooi - uses too much cpu if it draws over gamescene
Easy GUI System - seems like having conflict when using with hump.gamestate , so im forced to use it only for for main menu state
and i am struggling to use this simple lib from https://github.com/tjakka5/Dabuton for button but even this is unmaintained and outdated

i am wasting much time trying to setup a simple and lightweight buttons / labels , and i would waste even more if i try to write my own lib

so if there is anyone who walked this trail before me share your opinion please

loveu2 :awesome:

Re: what is best/simple ui library

Posted: Sat Sep 30, 2017 11:38 pm
by grump
crystal wrote: Sat Sep 30, 2017 10:26 pmSuit - missing onButtonPressed function which is very important for my game
Wait... what? There's a UI lib that doesn't provide a way to subscribe to button events?

Re: what is best/simple ui library

Posted: Sun Oct 01, 2017 2:00 am
by crystal
grump wrote: Sat Sep 30, 2017 11:38 pm
crystal wrote: Sat Sep 30, 2017 10:26 pmSuit - missing onButtonPressed function which is very important for my game
Wait... what? There's a UI lib that doesn't provide a way to subscribe to button events?
ok, ok i typed that in hurry i said its a noob question and i should delete that cuz of google search
although i couldn't get it to work
can you help me then with 'suit' i am pretty new to lua and love2d

from the source i see only these connectors
hit
hovered
entered
left

and my game needs a single action execution as soon as user puts a finger on a button

Re: what is best/simple ui library

Posted: Sun Oct 01, 2017 8:17 am
by Fuzzlix
Hi crystal:
I use Suit for my hobby work too. Suit is more a ui-skeleton than a complete ui with well defined look and feel. It gives you the fredom to design your ui like you want. You should shurly give Suit a try.
Buttons made with Suit and customized suit.theme
Buttons made with Suit and customized suit.theme
suit-menu.png (64.19 KiB) Viewed 4548 times

Re: what is best/simple ui library

Posted: Mon Oct 02, 2017 9:10 pm
by s-ol
crystal wrote: Sun Oct 01, 2017 2:00 am ok, ok i typed that in hurry i said its a noob question and i should delete that cuz of google search
although i couldn't get it to work
can you help me then with 'suit' i am pretty new to lua and love2d

from the source i see only these connectors
hit
hovered
entered
left

and my game needs a single action execution as soon as user puts a finger on a button
suit is an immediate mode UI and doesn't work using callbacks. 'hit' is used for exactly what you want.