Ejemplo n.º 1
0
        public override void Init(ContentManager content)
        {
            m_BackgroundImage = content.Load<Texture2D>(@"SettingsScreen\SettingBackground");
            check = content.Load<Texture2D>(@"SettingsScreen\check");
            selectEdge = content.Load<Texture2D>(@"settingsScreen\selectEdge");

            m_BackButton = new Button();
            m_BackButton.Init(content, new Vector2(22,18), @"SettingsScreen\backNomal", @"SettingsScreen\backHover");
            m_BackButton.UserEvent = OnHoverBackButton;
        }
Ejemplo n.º 2
0
        public override void Init(ContentManager content)
        {
            m_BackgroundImage = content.Load<Texture2D>(@"StageEScreen\stageBackground");

            m_BackButton = new Button();
            m_BackButton.Init(content, new Vector2(6, 6), @"StageEScreen\backNomal", @"StageEScreen\backHover");
            m_BackButton.UserEvent = OnHoverBackButton;

            m_HomeButton = new Button();
            m_HomeButton.Init(content, new Vector2(7, 202), @"StageEScreen\homeNomal", @"StageEScreen\homeHover");
            m_HomeButton.UserEvent = OnHoverHomeButton;

            m_Where = content.Load<Texture2D>(@"StageEScreen\where");

            place = content.Load<Texture2D>(@"StageEScreen\place");
        }
Ejemplo n.º 3
0
        public override void Init(ContentManager content)
        {
            m_BackgroundImage = content.Load<Texture2D>(@"PauseScreen\pauseBackground");

            m_BackButton = new Button();
            m_BackButton.Init(content, new Vector2(876, 283), @"PauseScreen\backNomal", @"PauseScreen\backHover");
            m_BackButton.UserEvent = OnHoverBackButton;

            m_ContinueButton = new Button();
            m_ContinueButton.Init(content, new Vector2(312, 283), @"PauseScreen\continueNomal", @"PauseScreen\continueHover");
            m_ContinueButton.UserEvent = OnHoverContinueButton;

            m_RestartButton = new Button();
            m_RestartButton.Init(content, new Vector2(594, 283), @"PauseScreen\restartNomal", @"PauseScreen\restartHover");
            m_RestartButton.UserEvent = OnHoverRestartButton;
        }
Ejemplo n.º 4
0
        public override void Init(ContentManager content)
        {
            m_GoodBackgroundImage = content.Load<Texture2D>(@"ResultEScreen\resultGoodBackground");
            m_BadackgroundImage = content.Load<Texture2D>(@"ResultEScreen\resultBadBackground");

            m_StageButton = new Button();
            m_StageButton.Init(content, new Vector2(770,400), @"ResultEScreen\stageNomal", @"ResultEScreen\stageHover");
            m_StageButton.UserEvent = OnHoverStageButton;

            m_TitleButton = new Button();
            m_TitleButton.Init(content, new Vector2(1040,400), @"ResultEScreen\titleNomal", @"ResultEScreen\titleHover");
            m_TitleButton.UserEvent = OnHoverTitleButton;

            m_RestartButton = new Button();
            m_RestartButton.Init(content, new Vector2(500,400), @"ResultEScreen\restartNomal", @"ResultEScreen\restartHover");
            m_RestartButton.UserEvent = OnHoverRestartButton;

            ClearSFX = content.Load<SoundEffect>(@"ResultEScreen\ClearSFX");
        }
Ejemplo n.º 5
0
        public override void Init(ContentManager content)
        {
            m_BackgroundImage = content.Load<Texture2D>(@"TitleScreen\titleBackground");
            PreludeImage = content.Load<Texture2D>(@"TitleScreen\preludeBackground");

            m_DrillButton = new Button();
            m_DrillButton.Init(content, new Vector2(350, 335), @"TitleScreen\drillNomal", @"TitleScreen\drillHover");
            m_DrillButton.UserEvent = OnHoverDrillButton;

            m_ExitButton = new Button();
            m_ExitButton.Init(content, new Vector2(350, 510), @"TitleScreen\exitNomal", @"TitleScreen\exitHover");
            m_ExitButton.UserEvent = OnHoverRescueButton;

            m_SettingButton = new Button();
            m_SettingButton.Init(content, new Vector2(20, 598), @"TitleScreen\settingsNomal", @"TitleScreen\settingsHover");
            m_SettingButton.UserEvent = OnHoverSettingButton;

            BGM = content.Load<Song>("BGM");
            MediaPlayer.IsRepeating = true;
            MediaPlayer.Play(BGM);
        }