Exemplo n.º 1
0
        public override void LoadContent()
        {
            font = MenuSystem.Font;
            crowd = Stage.Content.Load<Texture2D>("UI/HUD/crowd");
            timeBG = Stage.Content.Load<Texture2D>("UI/HUD/time");
            scoreBG = Stage.Content.Load<Texture2D>("UI/HUD/score");
            skull1 = Stage.Content.Load<Texture2D>("UI/HUD/SkullCounter1");
            skull2 = Stage.Content.Load<Texture2D>("UI/HUD/SkullCounter2");
            skull3 = Stage.Content.Load<Texture2D>("UI/HUD/SkullCounter3");
            skull4 = Stage.Content.Load<Texture2D>("UI/HUD/SkullCounter4");

            int w = fullScreenRec.Width;
            int h = fullScreenRec.Height;
            float crowdScale = (float)fullScreenRec.Width / crowd.Width;

            int height = h / 5;
            healthRec = new Rectangle(fullScreenRec.Left, fullScreenRec.Top, w / 6, h / 3);
            scoreRec = new Rectangle(fullScreenRec.Right - (int)(1.3f * height), fullScreenRec.Top, (int)(1.1f * height), height);
            skullRec = new Rectangle(fullScreenRec.Center.X - (int)(.5f * 1.32f * height), fullScreenRec.Top, (int)(1.32f * height), height);
            timeRec = scoreRec;
            timeRec.X -= (int)(1.32f * height);
            timeRec.Width = (int)(1.32f * height);
            crowdRec = new Rectangle(fullScreenRec.X, fullScreenRec.Bottom, (int)(crowd.Width * crowdScale), (int)(crowd.Height * crowdScale));

            health = new HealthKnob(healthRec);
            health.LoadContent();

            OptionPopUp options = new OptionPopUp("message");
            options.LoadContent();

            ControlsPopUp controls = new ControlsPopUp("message");
            controls.LoadContent();

            QuitConfirmPopUp quit = new QuitConfirmPopUp("message");
            quit.LoadContent();

            StrumWarningPopUp strum = new StrumWarningPopUp("message");
            strum.LoadContent();

            PauseMenu pause = new PauseMenu("message");
            pause.LoadContent();

            EndLevelMenu menu = new EndLevelMenu("message");
            menu.LoadContent();
        }
Exemplo n.º 2
0
        public override void LoadContent()
        {
            base.LoadContent();

            System.Threading.Thread thread = new System.Threading.Thread((_) =>
            {
            #if XBOX
                    System.Threading.Thread.CurrentThread.SetProcessorAffinity(new[] { 4 });
            #endif

                OptionPopUp options = new OptionPopUp("message");
                options.LoadContent();

                CreditsMenu creditsMenu = new CreditsMenu(false);
                creditsMenu.LoadContent();

                LevelMenu levelMenu = new LevelMenu();
                levelMenu.LoadContent();

                ControlsPopUp controls = new ControlsPopUp("message");
                controls.LoadContent();

                QuitConfirmPopUp quit = new QuitConfirmPopUp("message");
                quit.LoadContent();

                StrumWarningPopUp strum = new StrumWarningPopUp("message");
                strum.LoadContent();
            });

            thread.Name = "MainMenuLoadingThread";
            thread.Start();
        }