Page 1 of 2

Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 6:41 pm
by ZephyrMC
Hey all,

I have started working on a small GUI library called Gwee (http://love2d.org/wiki/Gwee).

I am aiming for something very focused and unobtrusive (from an API point of view) that can be easily turned on and off. To that end, I've worked more on features like skins and XML widget layouts than actual widgets at this point, but things like sliders, checkboxes, text inputs that actually recognize the shift key, etc. are on my list. :)

This is my first substantial project with love2d, and I would appreciate suggestions/comments/etc.!

Edit: attached the .love I've been using to test it. I'll probably start including something like this in the repository as well. Note that it needs LuaExpat to work, since it uses the XML layouts module.

Edit #2: There is an example main.lua in the git repository now, so I am removing the outdated .love here. Also, no more lxp dependency! Yay!

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 7:11 pm
by Nixola
Wow, 5 minutes ago I thought to create a program, but I discarded that idea 'cause it would have needed something like this :neko:

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 8:14 pm
by Kadoba
I made a little utility that converts love key constants into typed characters (shift+'d' = 'D'). It's not very well tested but you are welcome to use/alter it if you find it helpful at all.

Good luck with your project!

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 8:51 pm
by josefnpat
ZephyrMC wrote:Hey all,

I have started working on a small GUI library called Gwee (http://love2d.org/wiki/Gwee).

I am aiming for something very focused and unobtrusive (from an API point of view) that can be easily turned on and off. To that end, I've worked more on features like skins and XML widget layouts than actual widgets at this point, but things like sliders, checkboxes, text inputs that actually recognize the shift key, etc. are on my list. :)

This is my first project with love2d, and I would appreciate suggestions/comments/etc.!
Any chance you could write a up a sample love project so that we could see it in action? The documentation isn't entirely clear on how to use it, and people (e.g. myself) are very "learn by example" kind of people.

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 9:59 pm
by Robin
Kadoba wrote:I made a little utility that converts love key constants into typed characters (shift+'d' = 'D'). It's not very well tested but you are welcome to use/alter it if you find it helpful at all.
Second argument to love.keypressed.

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 10:32 pm
by Kadoba
Ahahaha, how the hell did I miss that?

Re: Yet another GUI toolkit: Gwee

Posted: Wed Dec 07, 2011 11:03 pm
by ZephyrMC
Thanks, everyone! I will implement the shift key right now. Also, I just attached an example .love to the OP if you want to check it out.

Re: Yet another GUI toolkit: Gwee

Posted: Thu Dec 08, 2011 12:18 am
by Nixola
LuaExpat is required to run your example, not only to press the button

Re: Yet another GUI toolkit: Gwee

Posted: Thu Dec 08, 2011 12:22 am
by ZephyrMC
Right, thanks. I forgot that the require would break.

Re: Yet another GUI toolkit: Gwee

Posted: Thu Dec 08, 2011 2:19 am
by shingo
where is the module 'lxp' ?