MZ Looking for a Menu Fade plugin compatible with MZ

Hi! I've been looking for a plugin for a while that would allow me to fade in/out when entering any menu.
Luckily, I found one that does exactly what I'm looking for and that can easily explain what I'm looking for.
Unfortunately, this plugin is only compatible with MV. (I've already checked this in my game made in MZ) 😅

This would be the plugin I'm talking about: Galv's Menu Fade

menu-fade_zpssimy9nv0.gif


If someone could make the plugin compatible with MZ or make a new one that does the same thing but for MZ it would be very helpful!
I read the plugin creator's terms of use and saw that he has no problem with the plugin being modified as long as it gives credit and follows the rules!

Thank you in advance for reading my request!😍
Hey there. I do plugins for my own games etc, but I am happy to help.

What do you want the parameters of the plugin to be?
Examples: Speed, Opacity colors etc.
I am looking at making plugins and becoming a merchant and sell some of them as singles or collections but I don't know how to yet.
Hey there. I do plugins for my own games etc, but I am happy to help.

What do you want the parameters of the plugin to be?
Examples: Speed, Opacity colors etc.
I am looking at making plugins and becoming a merchant and sell some of them as singles or collections but I don't know how to yet.

Oh! Thank you very much for your interest! 😍
If is possible, yes! Parameters for opacity, speed and for ignore/don't fade Scenes, I think those would be fine ^^
You can save this as a plugin.

(function(alias){Scene_Menu.prototype.createWindowLayer=function(){alias.call(this);this._windowLayer.alpha=0;};})(Scene_Menu.prototype.createWindowLayer);
(function(alias){Scene_Menu.prototype.update=function(){alias.call(this);this._windowLayer.alpha+=0.05;};})(Scene_Menu.prototype.update);
You can save this as a plugin.

(function(alias){Scene_Menu.prototype.createWindowLayer=function(){alias.call(this);this._windowLayer.alpha=0;};})(Scene_Menu.prototype.createWindowLayer);
(function(alias){Scene_Menu.prototype.update=function(){alias.call(this);this._windowLayer.alpha+=0.05;};})(Scene_Menu.prototype.update);
This works great with objects/content inside windows in the scene, but unfortunately, however, the scene background image still appears without Fade in/out.😐

I would like the background of the scene to also fade in/out so that everything looks more natural.
Do you use a background image or just the default blurred map screenshot?
Do you use a background image or just the default blurred map screenshot?
I use a background image, yes!
What plugin do you use to add the background? There should be a second background showing the map for the fading to work.
What plugin do you use to add the background? There should be a second background showing the map for the fading to work.
I use this plugin made by Triacontane: It's to add background images to any Scene Menu.
This should work.
But there is a problem, the plugin adds the background outside of the window layer, so it can't fade with the menu itself. It still looks like 2 layers. Unless you also modify the extraimage plugin to put the image inside the window layer.

JavaScript:
(function (alias) {
  Scene_Menu.prototype.create = function () {
    alias.apply(this, arguments);
    this._windowLayer.alpha = 0;
    this._extraImages.forEach(extraImage => {
      extraImage.alpha = 0;
    });
  };
})(Scene_Menu.prototype.create);
(function (alias) {
  Scene_Menu.prototype.update = function () {
    alias.apply(this, arguments);
    this._windowLayer.alpha += 0.01;
  };
})(Scene_Menu.prototype.update);

Sprite_SceneExtra.prototype.updateOpacity = function(){
  this.opacity = this._data.Opacity * (SceneManager._scene._windowLayer?SceneManager._scene._windowLayer.alpha:1);
}
This should work.
But there is a problem, the plugin adds the background outside of the window layer, so it can't fade with the menu itself. It still looks like 2 layers. Unless you also modify the extraimage plugin to put the image inside the window layer.

JavaScript:
(function (alias) {
  Scene_Menu.prototype.create = function () {
    alias.apply(this, arguments);
    this._windowLayer.alpha = 0;
    this._extraImages.forEach(extraImage => {
      extraImage.alpha = 0;
    });
  };
})(Scene_Menu.prototype.create);
(function (alias) {
  Scene_Menu.prototype.update = function () {
    alias.apply(this, arguments);
    this._windowLayer.alpha += 0.01;
  };
})(Scene_Menu.prototype.update);

Sprite_SceneExtra.prototype.updateOpacity = function(){
  this.opacity = this._data.Opacity * (SceneManager._scene._windowLayer?SceneManager._scene._windowLayer.alpha:1);
}
Oh!! It works perfectly, thanks!! 😂
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-menu-fade-plugin-compatible-with-mz.175241/