public override void LoadContent() { EnabledGestures = PageFlipTracker.GesturesNeeded; ContentManager content = ScreenManager.Game.Content; RootControl = new PageFlipControl(); foreach (LevelInfo info in LevelInfos) { RootControl.AddChild(new LevelDescriptionPanel(content, info)); } }
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; }