mamwalter Posted March 27, 2014 Share Posted March 27, 2014 Hi, i put an overlay (graphic rectangle) behind a popup and i would like to disable input on every buttons/sprites behind the overlay. Is there an other way than check if overlay is visible on every click handlers ? Link to comment Share on other sites More sharing options...
mamwalter Posted March 28, 2014 Author Share Posted March 28, 2014 ok i find it, i generate a texture from the graphic and activate input on it.var graphicOverlay = new Phaser.Graphics(this.game, 0 , 0);graphicOverlay.beginFill(0x000000, 0.7);graphicOverlay.drawRect(0,0, screenWidth, screenHeight);graphicOverlay.endFill();this.overlay = this.game.add.image(-10,-10,graphicOverlay.generateTexture());this.overlay.inputEnabled = true; quiphop 1 Link to comment Share on other sites More sharing options...
Recommended Posts