Punch UI: mouseless User Interface Library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Punch UI: mouseless User Interface Library

Post by Germanunkol »

Hello everyone,

For a (possible) future game project of mine, I need a game user interface that's controlled without the mouse.
So I made "PunchUI". (Requires Löve 0.9.0!) The idea is to have quick access to interface functions that do all the dirty work for you.

Features include:
  • Select "buttons" by pressing the corresponding key
  • Drop-Down-Menus (and sub menus)
  • Input boxes
  • Text-rendering includes word-wrapping and mutlicolor text blocks
  • Message boxes
  • Can auto-resize text to containing panel
Try it out:
PunchUI.love
Demo of PunchUI - requires Löve 0.9.0!
(16.87 KiB) Downloaded 275 times
Or check out the code on Github.

Eye candy:
Image

Feel free to modify/change/reuse/dabblewith/comment/insult/löve or add to the code.
Note: this is still a relatively early version. While I develop the game (if I ever get around to it), I'll probably frequently update this. Right now it's solid enough to get started with. Just see the main.lua file for an example of how to use it. A documentation might follow if people show interest and the functions are somewhat more final.
Last edited by Germanunkol on Fri Mar 07, 2014 4:57 pm, edited 1 time in total.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
ncarlson
Prole
Posts: 35
Joined: Wed Jul 20, 2011 4:00 pm

Re: Punch UI: mousless User Interface Library

Post by ncarlson »

Great stuff there buddy
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Punch UI: mousless User Interface Library

Post by SiENcE »

There can't be enough gui libraries!
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Punch UI: mousless User Interface Library

Post by Nixola »

I don't think I can stop misreading the title as "useless Mouse Interface Library". Sorry ^^'
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Punch UI: mousless User Interface Library

Post by Germanunkol »

ncarlson wrote:Great stuff there buddy
SiENcE wrote:There can't be enough gui libraries!
Thanks guys :)

Update: added "tooltips" that are displayed at the bottom when a user holds shift while pressing a function's key. I also started to draw everything darker when a menu is opened and displayed above the other panels.
Nixola wrote:I don't think I can stop misreading the title as "useless Mouse Interface Library". Sorry ^^'
... and I put SO much thought into that title :P
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Punch UI: mousless User Interface Library

Post by Germanunkol »

I need some input:

I added a small fade-in effect for all new Panels.
I'm not quite happy, though, and I can't say why. Any thought/Suggestions?
I want it to look more "juicy" and less static, without distracting too much. Just a minimalistic spicing-it-up.

Demo below.
Attachments
PunchUI2.love
Updated
(16.03 KiB) Downloaded 185 times
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Gravy
Citizen
Posts: 80
Joined: Sun Jan 22, 2012 10:15 pm
Location: CA, USA

Re: Punch UI: mousless User Interface Library

Post by Gravy »

Awesome job. Have you thought about adding arrow key controls to move through the menus and sub-menus?
Post Reply

Who is online

Users browsing this forum: No registered users and 83 guests