Yet another GUI toolkit: Gwee

Showcase your libraries, tools and other projects that help your fellow love users.
ZephyrMC
Prole
Posts: 7
Joined: Wed Dec 07, 2011 8:17 am

Yet another GUI toolkit: Gwee

Post 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!
Last edited by ZephyrMC on Fri Dec 09, 2011 11:01 am, edited 3 times in total.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Yet another GUI toolkit: Gwee

Post 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:
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Yet another GUI toolkit: Gwee

Post 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!
Attachments
Type.love
(1.42 KiB) Downloaded 257 times
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Yet another GUI toolkit: Gwee

Post 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.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Yet another GUI toolkit: Gwee

Post 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.
Help us help you: attach a .love.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Yet another GUI toolkit: Gwee

Post by Kadoba »

Ahahaha, how the hell did I miss that?
ZephyrMC
Prole
Posts: 7
Joined: Wed Dec 07, 2011 8:17 am

Re: Yet another GUI toolkit: Gwee

Post 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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Yet another GUI toolkit: Gwee

Post by Nixola »

LuaExpat is required to run your example, not only to press the button
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ZephyrMC
Prole
Posts: 7
Joined: Wed Dec 07, 2011 8:17 am

Re: Yet another GUI toolkit: Gwee

Post by ZephyrMC »

Right, thanks. I forgot that the require would break.
User avatar
shingo
Prole
Posts: 12
Joined: Tue Nov 22, 2011 2:55 am

Re: Yet another GUI toolkit: Gwee

Post by shingo »

where is the module 'lxp' ?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests