public EndInterface(Interface iface, Controller player, WaveMgr waveManager, SpriteFont[] fonts, Texture2D[] RetryButtonTextures)
 {
     this.iface = iface;
     this.player = player;
     this.waveManager = waveManager;
     this.fonts = fonts;
     this.RetryButton = new Button(RetryButtonTextures[0], RetryButtonTextures[1], RetryButtonTextures[2], Vector2.Zero);
     this.RetryButton.OnMouseClick += new EventHandler(RetryButton_OnMouseClick);
     this.RetryButton.Enabled = false;
 }
Example #2
0
        public void SetTowerButtonBackgrounds(Texture2D[] ButtonBackgrounds, Texture2D[] ButtonIcons)
        {
            this.AddArrowTexture = ButtonIcons[0];
            this.AddCannonTexture = ButtonIcons[1];
            this.AddSpeedTexture = ButtonIcons[2];
            this.AddSpikeTexture = ButtonIcons[3];

            this.AddArrowTower = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero);
            this.AddCannonTower = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero);
            this.AddSpeedTower = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero);
            this.AddSpikeTower = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero);

            this.AddArrowTower.OnMouseDown += new EventHandler(AddArrowTower_OnMouseDown);
            this.AddCannonTower.OnMouseDown += new EventHandler(AddCannonTower_OnMouseDown);
            this.AddSpeedTower.OnMouseDown += new EventHandler(AddSpeedTower_OnMouseDown);
            this.AddSpikeTower.OnMouseDown += new EventHandler(AddSpikeTower_OnMouseDown);
        }
Example #3
0
 public void SetStartButton(SpriteFont font, Texture2D[] ButtonBackgrounds, WaveMgr waveManager)
 {
     this.startbtnfont = font;
     this.waveManager = waveManager;
     this.StartButton = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero);
     this.StartButton.OnMouseClick += new EventHandler(StartButton_OnMouseClick);
 }