Sunday, August 22, 2010

User Interfaces

Started working, in earnest, on the new user interface objects.  It will consist of a manager class to load UI's, an object which represents a loaded UI in game, and a set of base UI elements.  While creating the UI manager class, I decided to embark on creating a multi-resource loader.  This resource loader class can take the place of many resource loaders by lazy loading the ones you need, and then managing the instances for you.  When you need to access a single type of loader, you instead address the multi-resource loader and tell it what type you want to use.

This will allow for the UI manager to load resources from multiple sources automatically.  Your user interfaces will be able to have sprites, images, sounds, and more all in play.  A JSON object file is used to describe your UI, which makes creating user interfaces simpler and faster (I hope).  It's still pretty early in development, so it isn't ready to use even though it's in the source repository.  Everything is in flux, and subject to change as you probably already know.  As things come together, I'll either put together some screenshots or a simple demo to show off the new UI stuff.

No comments:

Post a Comment