Exemplo n.º 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;
        }
Exemplo n.º 2
0
 protected virtual Rectangle GetButtonHitBounds(buttonTexture button)
 {
     return button.rect;
 }
Exemplo n.º 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");
     }
 }