The DOMElement Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects.

This commit is contained in:
Richard Davey 2019-12-28 17:37:04 +00:00
parent e6464f6ad3
commit 6ffdacc959

View file

@ -72,7 +72,7 @@ var Vector4 = require('../../math/Vector4');
* @constructor
* @since 3.17.0
*
* @extends Phaser.GameObjects.Components.Alpha
* @extends Phaser.GameObjects.Components.AlphaSingle
* @extends Phaser.GameObjects.Components.BlendMode
* @extends Phaser.GameObjects.Components.Depth
* @extends Phaser.GameObjects.Components.Origin
@ -92,7 +92,7 @@ var DOMElement = new Class({
Extends: GameObject,
Mixins: [
Components.Alpha,
Components.AlphaSingle,
Components.BlendMode,
Components.Depth,
Components.Origin,