Sign in to follow this  
  • entries
    5
  • comments
    2
  • views
    2831

Gui framework

Sign in to follow this  
leandro81

116 views

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
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now