public override void LoadContent() { if (IsReady) return; content = new ContentManager(Manager.Game.Services, "Content"); sb = new SpriteBatch(Manager.GraphicsDevice); gui = content.Load<Window>("GUI\\Loading"); gui.Initialise(null); gui.LoadGraphics(Manager.GraphicsDevice, content); IsReady = true; base.LoadContent(); }
public override void LoadContent() { Manager.Jobs.CreateJob( () => { content = new ContentManager(Manager.Game.Services, "Content"); sb = new SpriteBatch(Manager.GraphicsDevice); gui = content.Load<Window>("GUI\\Settings"); gui.Initialise(null); gui.LoadGraphics(Manager.GraphicsDevice, content); touch = new WP7Touch(gui); touch.EnableTap(); BindInput(); lblPlayer = gui.GetChild<TextBlock>("lblPlayer"); LoadSettings(); IsReady = true; }); base.LoadContent(); }
public override void LoadContent() { if (IsReady) return; Manager.Jobs.CreateJob( () => { content = new ContentManager(Manager.Game.Services, "Content"); sb = new SpriteBatch(Manager.GraphicsDevice); gui = content.Load<Window>("GUI\\Register"); gui.Initialise(null); gui.LoadGraphics(Manager.GraphicsDevice, content); touch = new WP7Touch(gui); touch.EnableTap(); BindInput(); IsReady = true; }); base.LoadContent(); }
public override void LoadContent() { if (IsReady) return; sb = new SpriteBatch(Manager.GraphicsDevice); content = new ContentManager(Manager.Game.Services, "Content"); Manager.Jobs.CreateJob( () => { window = content.Load<Window>("GUI\\MainMenu"); window.Initialise(null); window.LoadGraphics(Manager.GraphicsDevice, content); touchInput = new WP7Touch(window); touchInput.EnableTap(); BindMenuItems(); IsReady = true; }); base.LoadContent(); }
protected override void LoadContent() { sb = new SpriteBatch(GraphicsDevice); win = Content.Load<Window>("test"); win.Initialise(null); win.LoadGraphics(GraphicsDevice, Content); win.NamedChildren["testBtn"].Triggered += (b) => { Exit(); }; #if WINDOWS_PHONE touchInput = new WP7Touch(win); touchInput.ClearGestures(); touchInput.EnableTap(); touchInput.EnableDoubleTap(); #else mouseInput = new MouseInput(win); #endif base.LoadContent(); }