Пример #1
0
        public PlayMenu()
        {
            m_Background = new Sprite();
            m_Background.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Background");
            m_Background.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(0.0f, 0.0f));
            m_Moon = new Sprite();
            m_Moon.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Moon");
            m_Moon.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(78.0f, 2.0f));

            m_Grave = new Sprite();
            m_Grave.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Grave");
            m_Grave.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(50.0f, 10.0f));

            m_Pumpkin = new Sprite();
            m_Pumpkin.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Pumpkin");
            m_Pumpkin.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(26.0f, 42.0f));

            m_Title = new Sprite();
            m_Title.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Title");
            m_Title.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(5.0f, 5.0f));

            m_NewGame = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\NewGame"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(60f, 38f)));
            m_Continue = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Continue"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(60.0f, 54.0f)));
            m_Back = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Back"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(66.0f, 68.0f)));
        }
Пример #2
0
        public MainMenu()
        {
            m_Background = new Sprite();
            m_Background.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Background");
            m_Background.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(0.0f, 0.0f));
            m_Moon = new Sprite();
            m_Moon.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Moon");
            m_Moon.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(78.0f, 2.0f));

            m_Grave = new Sprite();
            m_Grave.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Grave");
            m_Grave.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(50.0f, 10.0f));

            m_Pumpkin = new Sprite();
            m_Pumpkin.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Pumpkin");
            m_Pumpkin.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(26.0f, 42.0f));

            m_Title = new Sprite();
            m_Title.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Title");
            m_Title.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(5.0f, 5.0f));

            m_PlayImage = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Play"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(68f, 30f)));
            m_OptionsImage = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Options"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(62.0f, 45.0f)));
            m_CreditsImage = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Credits"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(63.0f, 62.0f)));
            m_ExitImage = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Exit"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(67.0f, 79.0f)));
        }
Пример #3
0
        public OptionsMenu()
        {
            m_Background = new Sprite();
            m_Background.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Background");
            m_Background.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(0.0f, 0.0f));
            m_Moon = new Sprite();
            m_Moon.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Moon");
            m_Moon.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(78.0f, 2.0f));

            m_Grave = new Sprite();
            m_Grave.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Grave");
            m_Grave.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(50.0f, 10.0f));

            m_Pumpkin = new Sprite();
            m_Pumpkin.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Pumpkin");
            m_Pumpkin.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(26.0f, 42.0f));

            m_Title = new Sprite();
            m_Title.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Title");
            m_Title.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(5.0f, 5.0f));

            m_Resolution = new Sprite();
            m_Resolution.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Resolution");
            m_Resolution.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(60.0f, 35.0f));

            m_fullScreen = new Sprite();
            m_fullScreen.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\FullScreen");
            m_fullScreen.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(57.0f, 58.0f));

            m_checkMark = new Sprite();
            m_checkMark.Texture = ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\CheckMark");
            m_checkMark.Position = ExperiaHelper.Instance.PositionByResolution(new Vector2(71.0f, 68.0f));

            m_lArrow = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\lArrow"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(58.0f, 45.0f)));
            m_rArrow = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\rArrow"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(90.0f, 46.0f)));
            m_checkBox = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\CheckBox"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(71.0f, 68.0f)));
            m_Back = new ImageButton(ContentLoader.Instance.Load<Texture2D>(ContentContainer.UI, @"Content\\Graphics\\Back"),
                ExperiaHelper.Instance.PositionByResolution(new Vector2(66.0f, 78.0f)));
        }