-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|548|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Showcase Home -> Functions Libraries


 
HoboBen
Created : 23 February 2010
Edited : 14 September 2010
System : Windows
Language : Cobra

Hag GUI

A fully-featured GUI for Cobra

Download page
Screenshots
 
Finally got my GUI into a state that I consider "complete".

Screenshots: Hag GUI Screenshots

Sadly not properly documented (though that should change soon as I'm using my new website to edit the documentation), BUT there are currently |edit| Fourteen |edit| good ready-to-run examples with source code that you can download. The existing documentation is available here.

The following GUI elements are supported:

  • Buttons, including image buttons
  • Canvases
  • Check boxes
  • Drop-down boxes
  • Frames/borders
  • List boxes
  • Progress bars
  • Radio buttons
  • Scrollbars
  • Sliders
  • Tabs
  • Text, wrapped and hyperlinks
  • Text boxes, with rich text

Additional Features:

  • Fully skinnable - suitable for a sensible level editor or themed for your game
  • Switch skins on-the-fly
  • Excellent performance
  • Detailed error, debug and performance logging
  • Tool tip hints and mouse state hints
  • Natural keyboard control, e.g. tab to jump to next text box
  • Text boxes have full keyboard and mouse control, e.g. selecting text, copy/paste, home/end, etc.
  • Text boxes are all rich text, e.g. change bold, italic, colour, font several times in the same text box
  • Works with pure2d, cobra2d and cobra3d modules with no changes
  • Elements grouped and attached to "forms" - easily move, disable or hide a whole group at once.



















More Screenshots: Hag GUI Screenshots

 

Comments


Monday, 01 March 2010, 09:52
HoboBen
Updated, code has minor fixes. Examples download now contains fourteen examples (one dedicated to each element), each with exe + source. Online documentation now has a page for each GUI element with screenshots, description, and example code.

Still got to add all the functions to the docs, but the examples should be enough for the moment.
Wednesday, 03 March 2010, 11:20
flying_cucco
This is amazing!
Tuesday, 14 September 2010, 15:24
HoboBen
Updated, with some bugfixes, faster text-wrapping, and a new xml2gui download which loads the GUI straight from an XML file...

e.g.

main.xml


with

editor.cps


Becomes...


Tuesday, 14 September 2010, 15:29
JL235
OOOOOOOO, that's very nice. How about building a dynamic one next, so you could edit the XML and see the GUI in real time like in VS.