Exemplo n.º 1
0
Arquivo: Menu.cs Projeto: zarac/tgspu
        public Menu(Game game, ZXNA.Input.Input input, SpriteBatch spriteBatch, Rectangle bounds)
            : base(game)
        {
            this.game = game;
            this.input = input;
            this.spriteBatch = spriteBatch;
            this.bounds = bounds;
            Opened = true;

            //spriteBatch = (SpriteBatch)eTalisman.Services.GetService(typeof(SpriteBatch));
            choiceBackground = game.Content.Load<Texture2D>(@"gfx\menu_item_background-300x100");
            optionBackground = game.Content.Load<Texture2D>(@"gfx\menu_item_background2_selected-300x100");
            spriteFont = game.Content.Load<SpriteFont>(@"font\arial");
        }
Exemplo n.º 2
0
 public ExitGame(ZXNA.Menu.Menu menu, String label, Game game)
     : base(menu, label)
 {
     this.game = game;
 }