Page 4 of 4

Re: Leif GUI library

Posted: Fri Jul 10, 2009 8:39 pm
by ElliottB
I've been using Lief as my base for doing Rapid Development of some applications and games. I love it, but I'm sad to see you've decided to give up on it. In my usage of it, I've found little things I didn't like. For example, inputs don't have full onMousePressed or onMouseReleased support for custom call backs. I've added a small change that implements this.

http://loveclub.pastebin.com/f1e5d930a

SetCallback( ) becomes SetonKeyReturn( ), to make room for my added callback support. setonMouseReleased( ) and setonMousePressed( )

I've been trying to figure what would be the simplest way to add an onFocus behavior to inputs. So you can have, say "Nickanem" in the field, and on click it clears it. But if you don't type anything and click away, that text reappears. (Like for login screens and such)

Re: Leif GUI library

Posted: Fri Jul 10, 2009 9:06 pm
by Robin
ElliottB wrote:Lief
That's sweet. (No, really, "lief" is "sweet" or "nice" in Dutch.)

Re: Leif GUI library

Posted: Fri Jul 10, 2009 10:34 pm
by ElliottB
Oi. The joys of typos!

Re: Leif GUI library

Posted: Sat Jul 11, 2009 7:07 am
by bartbes
As you might have read it's released under the LPCL, so, this allows you to create your own versions and upload them here, for more information on the terms of the LPCL: http://love2d.org/wiki/index.php?title=LPCL

Re: Leif GUI library

Posted: Sat Jul 11, 2009 4:23 pm
by ElliottB
Less than 30 lines of changes, in my book, doesn't constitute a full derivative, but rather a patch. Hence just posting it. :D -- I have considered extensively modifying Leif, and I'd post it as a derivative for sure. More to come on that front. Thanks for pointing that out though.

Re: Leif GUI library

Posted: Sat Jul 11, 2009 4:41 pm
by bartbes
The LPCL isn't about derivatives, but about updating the old software as the community sees fit, mostly in cases where the original developer might lose interest, or become unavailable for other reasons.