Friday, April 18, 2014

in-game Toolbars

The main bar (top) in horizontal orientation and
a nested bar below it also in horizontal displaying
file options: new, save, load, exit, and quit, respectively.
Hey guys.  I've got a short update today.  I spent some time implementing a toolbar interface for the in-game HUD.  Toolbars are able to be oriented either horizontally or vertically.  For now toolbars can only contain buttons.  Buttons can be text, image, or both and they can also have a tooltip attached to them.  The toolbars function similar to a menuing system, a button can either be the parent to another toolbar or it can have a function bound to it directly.  This lets us do nested toolbars within toolbars within toolbars, a bit redundant but I'm hopeful it will let us do some neat things later on.

I also spent a considerable amount of time refactoring the game's build tools system into a much cleaner state.  I'm now able to create new or modify existing tools much easier which should speed up their development.  In the past this was a fairly tedious process because the tooling was coupled very tightly with the game class and state manager.  In it's place I've developed a tool template class with appropriate input callbacks which is much easier to use, and in addition also executes much faster and is easier to debug.

No comments:

Post a Comment