Re: Leif GUI library
Posted: Fri Jul 10, 2009 8:39 pm
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)
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)