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

            children = new List<Option>();
        }
Esempio n. 3
0
 public Option(MainMenu menu, String label)
 {
     this.menu = menu;
     this.label = label;
 }
Esempio n. 4
0
 public CloseMenu(MainMenu menu, String label)
     : base(menu, label)
 {
 }
Esempio n. 5
0
 public NewAdventure(ETalisman eTalisman, MainMenu menu)
     : base(menu, "New Adventure")
 {
     this.eTalisman = eTalisman;
 }
Esempio n. 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();
        }