Added disablePreFX and disablePostFX flags

This commit is contained in:
Richard Davey 2023-11-08 12:34:46 +00:00
parent eea31c7be8
commit cc931f869c
2 changed files with 12 additions and 0 deletions

View file

@ -331,6 +331,16 @@ var Config = new Class({
*/
this.fps = GetValue(config, 'fps', null);
/**
* @const {boolean} Phaser.Core.Config#disablePreFX - Disables the automatic creation of the Pre FX Pipelines. If disabled, you cannot use the built-in Pre FX on Game Objects.
*/
this.disablePreFX = GetValue(config, 'disablePreFX', false);
/**
* @const {boolean} Phaser.Core.Config#disablePostFX - Disables the automatic creation of the Post FX Pipelines. If disabled, you cannot use the built-in Post FX on Game Objects.
*/
this.disablePostFX = GetValue(config, 'disablePostFX', false);
// Render Settings - Anything set in here over-rides anything set in the core game config
var renderConfig = GetValue(config, 'render', null);

View file

@ -58,4 +58,6 @@
* @property {Phaser.Scale.CenterType} [autoCenter=Phaser.Scale.Center.NO_CENTER] - Automatically center the canvas within the parent?
* @property {number} [resizeInterval=500] - How many ms should elapse before checking if the browser size has changed?
* @property {?(HTMLElement|string)} [fullscreenTarget] - The DOM element that will be sent into full screen mode, or its `id`. If undefined Phaser will create its own div and insert the canvas into it when entering fullscreen mode.
* @property {boolean} [disablePreFX=false] - Disables the automatic creation of the Pre FX Pipelines. If disabled, you cannot use the built-in Pre FX on Game Objects.
* @property {boolean} [disablePostFX=false] - Disables the automatic creation of the Post FX Pipelines. If disabled, you cannot use the built-in Post FX on Game Objects.
*/