Page 1 of 1

Punch UI: mouseless User Interface Library

Posted: Sun Dec 15, 2013 2:17 pm
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 288 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.

Re: Punch UI: mousless User Interface Library

Posted: Mon Dec 16, 2013 7:03 am
by ncarlson
Great stuff there buddy

Re: Punch UI: mousless User Interface Library

Posted: Tue Dec 17, 2013 10:40 am
by SiENcE
There can't be enough gui libraries!

Re: Punch UI: mousless User Interface Library

Posted: Tue Dec 17, 2013 8:10 pm
by Nixola
I don't think I can stop misreading the title as "useless Mouse Interface Library". Sorry ^^'

Re: Punch UI: mousless User Interface Library

Posted: Wed Dec 18, 2013 9:30 am
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

Re: Punch UI: mousless User Interface Library

Posted: Tue Jan 14, 2014 8:11 am
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.

Re: Punch UI: mousless User Interface Library

Posted: Tue Jan 14, 2014 8:34 pm
by Gravy
Awesome job. Have you thought about adding arrow key controls to move through the menus and sub-menus?