示例#1
0
        public override void LoadContent()
        {
            EnabledGestures = PageFlipTracker.GesturesNeeded;
            ContentManager content = ScreenManager.Game.Content;

            buttonGo = new buttonTexture();
            buttonGo.img = content.Load<Texture2D>("Png\\buttonGo");
            buttonGo.Selected += goPressed;
            //buttonGo.img = img;
            GoButtonLocation();
            RootControl = new PageFlipControl();

            foreach (LevelInfo info in LevelInfos)
            {
                RootControl.AddChild(new LevelDescriptionPanel(content, info));
            }

            EnabledGestures = EnabledGestures | GestureType.Tap;
        }
示例#2
0
 protected virtual Rectangle GetButtonHitBounds(buttonTexture button)
 {
     return button.rect;
 }
示例#3
0
 public override void LoadContent()
 {
     backGround = new buttonTexture();
     backGround.img = ScreenManager.Game.Content.Load<Texture2D>("Png\\popBackground");
     foreach (MenuEntry menuItem in MenuEntries)
     {
         menuItem.EntryImage = ScreenManager.Game.Content.Load<Texture2D>("Png\\menuBackground");
     }
 }