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.
Demo:
http://ompldr.org/vOWxsdw
lQuery UI - beginning
lQuery UI - beginning
Last edited by RPG on Sun Jul 24, 2011 4:41 am, edited 2 times in total.
Re: lQuery UI - beginning
looks good :O!
Re: lQuery UI - beginning
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?
One worry: The 'memory' variable keeps slowly creeping up?
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: lQuery UI - beginning
Lua can take its time with its garbage collector, I wouldn't worry about it.
Re: lQuery UI - beginning
Memory grows only in love engine, in scrupp it doesn't. I don't know why.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: lQuery UI - beginning
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.
Re: lQuery UI - beginning
Yes, this is the bug in lQuery. It will be fixed.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.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: lQuery UI - beginning
Happens every time you click and hold on it, and then drag off the slider area while still holding down.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.
Re: lQuery UI - beginning
Fixed. Bug in lQuery (it sill buggy)...
- SoggyWaffles
- Citizen
- Posts: 72
- Joined: Sun Jan 02, 2011 3:27 am
- Location: Wyoming, USA
Re: lQuery UI - beginning
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
Who is online
Users browsing this forum: No registered users and 1 guest