Gui framework

Published February 02, 2008
Advertisement
So, i am focusing now on getting this GUI framework done, before proceding with the game per se (because I pretty much suck at 3D modeling ;)

Let me explain you how I am doing this. It will be a skin-based library, where each control has its textures and a parameter XML file. To build a window dialog for example, you can do it programmaticaly, or store it on a XML file.

Currently, there will be no caching, every control will be redrawn every frame, even if it didn't change a bit. I did it this way to save memory resources.

Class hierarchy:
Control|-- Button|-- TextBox|-- ControlContainer     |-- Window     |-- GUI


I don't know if it is the best way to set up things, but I think it could work. Currently, there is only buttons and textboxes but I plan to add listboxes, dropdowns, checkboxes and radio buttons. Also, there will be a couple of custom controls specifics to the soccer game.

Right now, I am working on the Focusing stuff (click on a window and it gets to the front, click a textbox to write text on it, etc). I will keep you updated!

Cheers,
Leandro
Previous Entry Finally!
Next Entry new GUI skin!
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement