what is best/simple ui library

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
crystal
Prole
Posts: 15
Joined: Sat Sep 30, 2017 9:53 pm

what is best/simple ui library

Post 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:
Last edited by crystal on Sun Oct 01, 2017 1:41 am, edited 1 time in total.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: what is best/simple ui library

Post 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?
crystal
Prole
Posts: 15
Joined: Sat Sep 30, 2017 9:53 pm

Re: what is best/simple ui library

Post 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
Fuzzlix
Citizen
Posts: 60
Joined: Thu Oct 13, 2016 5:36 pm

Re: what is best/simple ui library

Post 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 4357 times
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: what is best/simple ui library

Post 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.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests