The GuiManagerComponent is kind of helper. If you use this it is very easy to integrate a GUI into your game project but you have less control. If you want full control you have to use the GuiManager class directly.

To use the GuiManagerComponent all you have to do is to register a instance of it as a component like this

protected·override·void·Initialize()  
{  
    GuiManagerComponent guiManagerComponent = new GuiManagerComponent(this, @"Content/Skins/DarkSkin.xml");  
    guiManagerComponent.GuiManager.SpriteCursorEnabled = true;  
    Components.Add(guiManager);  
 }

All of the Draw, Update, LoadContent, UnloadContent and the constructor of GuiManager are called at the right time and place. Nothing more to do for you.

Last edited May 8, 2011 at 6:36 AM by Glatzemann, version 1

Comments

No comments yet.