lQuery UI - beginning

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

lQuery UI - beginning

Post 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
Last edited by RPG on Sun Jul 24, 2011 4:41 am, edited 2 times in total.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: lQuery UI - beginning

Post by GijsB »

looks good :O!
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: lQuery UI - beginning

Post 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?
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: lQuery UI - beginning

Post by slime »

Lua can take its time with its garbage collector, I wouldn't worry about it.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: lQuery UI - beginning

Post by RPG »

Memory grows only in love engine, in scrupp it doesn't. I don't know why.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: lQuery UI - beginning

Post 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.
Help us help you: attach a .love.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: lQuery UI - beginning

Post 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.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: lQuery UI - beginning

Post 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.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: lQuery UI - beginning

Post by RPG »

Fixed. Bug in lQuery (it sill buggy)...
User avatar
SoggyWaffles
Citizen
Posts: 72
Joined: Sun Jan 02, 2011 3:27 am
Location: Wyoming, USA

Re: lQuery UI - beginning

Post by SoggyWaffles »

I realize this got dug up by spam, but how is this coming along? Have you spent anymore time on it?
"Beneath the clouds lives the Earth-Mother from whom is derived the Water of Life, who at her bosom feeds plants, animals and men." ~Larousse
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest