示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
        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();
        }
示例#5
0
        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();
        }