Beispiel #1
0
 public ExitETalisman(MainMenu menu, String label, ETalisman eTalisman)
     : base(menu, label)
 {
     this.eTalisman = eTalisman;
 }
Beispiel #2
0
        public SubMenu(MainMenu menu, SubMenu parent, String label)
            : base(menu, label)
        {
            this.menu = menu;
            this.parent = parent;

            children = new List<Option>();
        }
Beispiel #3
0
 public Option(MainMenu menu, String label)
 {
     this.menu = menu;
     this.label = label;
 }
Beispiel #4
0
 public CloseMenu(MainMenu menu, String label)
     : base(menu, label)
 {
 }
Beispiel #5
0
 public NewAdventure(ETalisman eTalisman, MainMenu menu)
     : base(menu, "New Adventure")
 {
     this.eTalisman = eTalisman;
 }
Beispiel #6
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            testTexture = Content.Load<Texture2D>(@"gfx/1x1");

            // input
            input = new ZXNA.Input.Input(this);

            // menu
            mainMenu = new MainMenu(this);
            mainMenu.open();
            mainMenu.DrawOrder = 1;
            Components.Add(mainMenu);

            // adventure
            adventure = new Adventure(this);
            Components.Add(adventure);

            // pong
            pong = new Pong.Pong(this);
            Components.Add(pong);

            //Services.AddService(typeof(SpriteBatch), spriteBatch);

            base.LoadContent();
        }