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