Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Gui framework

Sign in to follow this  


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:

|-- 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!

Sign in to follow this  


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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!