Page 1 of 2

lQuery UI - beginning

Posted: Sat Jul 23, 2011 7:27 pm
by RPG
Well, as every programmer should write his own UI library, let me introduce you to lQuery UI: Graphics Library, integrated with lQuery.
What is done:
- css-like styles in separate file
- layouts - powerful tool to put items in order (similar to QT layouts)
- button widget
- slider widget
- one style renderer for all widgets

Features:
- animations
- hover/click effects
- draggable layouts (possible to create windows)
- tiny (6 kb ui + 10 kb lquery)
- works in LOVE and scrupp engines

You can drag this menu: click and drag on corner.
Image

Demo:
http://ompldr.org/vOWxsdw

Re: lQuery UI - beginning

Posted: Sat Jul 23, 2011 7:29 pm
by GijsB
looks good :O!

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 1:23 am
by Ensayia
Not bad at all! it looks very clean, but I didn't look at the code itself.

One worry: The 'memory' variable keeps slowly creeping up?

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 1:29 am
by slime
Lua can take its time with its garbage collector, I wouldn't worry about it.

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 4:40 am
by RPG
Memory grows only in love engine, in scrupp it doesn't. I don't know why.

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 7:01 am
by Robin
Looks pretty good. Two things about the slider, though: I'd like to be able to click on it, instead having to drag the thumb (which can be easy to miss). Secondly, one type it got "stuck", as in, I released the mouse, but I kept dragging the thumb.

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 2:29 pm
by RPG
Robin wrote:Looks pretty good. Two things about the slider, though: I'd like to be able to click on it, instead having to drag the thumb (which can be easy to miss). Secondly, one type it got "stuck", as in, I released the mouse, but I kept dragging the thumb.
Yes, this is the bug in lQuery. It will be fixed.

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 4:15 pm
by TechnoCat
Robin wrote:Looks pretty good. Two things about the slider, though: I'd like to be able to click on it, instead having to drag the thumb (which can be easy to miss). Secondly, one type it got "stuck", as in, I released the mouse, but I kept dragging the thumb.
Happens every time you click and hold on it, and then drag off the slider area while still holding down.

Re: lQuery UI - beginning

Posted: Sun Jul 24, 2011 4:47 pm
by RPG
Fixed. Bug in lQuery (it sill buggy)...

Re: lQuery UI - beginning

Posted: Wed Nov 02, 2011 2:15 am
by SoggyWaffles
I realize this got dug up by spam, but how is this coming along? Have you spent anymore time on it?