Jan 9, 2010 at 10:36 PM
Edited Jan 9, 2010 at 10:40 PM
I am still having trouble creating a Screen object. I receive a TypeInitializationException any time I try to call a Screen constructor. For creating a GUI project, will I need to reference anything other thanNuclex.UserInterface.dll?
I am using the binaries that you currently have up on the downloads page.
I am using your exact code from the Initialize() method in the UserInterfaceDemoGame project in my own new project without any success.
public class Game1 : Microsoft.Xna.Framework.Game
graphics = new GraphicsDeviceManager(this);
_gui = new GuiManager(this);
Content.RootDirectory = "Content";
protected override void Initialize()
Viewport viewport = GraphicsDevice.Viewport;
//exception is thrown here
Screen mainScreen = new Screen();
_gui.Screen = mainScreen;