MZ Fade in Fade out text boxes

Hello There

Im using Mz and I didnt like the lil animation that the tex box does when your opening or leaving a text box. I tried to look around if there was any options to change that but I couldnt find anything. Im looking for some kind of plugin that makes the text box fade in and out instead of the normal animation mz has. I think if Im not mistaken rpg maker xp had something to what Im looking for if that helps. If you got any question please do tell :3
Does it work if you just use the openness value to control opacity

Object.defineProperty(Window_Message.prototype, "openness", {
get: function() {
return this._openness;
},
set: function(value) {
if (this._openness !== value) {
this._openness = value.clamp(0, 255);
// this._container.scale.y = this._openness / 255;
// this._container.y = (this.height / 2) * (1 - this._openness / 255);
this.opacity = value;
}
},
configurable: true
});
Does it work if you just use the openness value to control opacity

Object.defineProperty(Window_Message.prototype, "openness", {
get: function() {
return this._openness;
},
set: function(value) {
if (this._openness !== value) {
this._openness = value.clamp(0, 255);
// this._container.scale.y = this._openness / 255;
// this._container.y = (this.height / 2) * (1 - this._openness / 255);
this.opacity = value;
}
},
configurable: true
});
I have no clue. Where may I place this?
Oh I found out where thanks. But the lil name box doesnt fade like the text box and the choices box also doesnt. Is there a small change i can make to it to have it also fade those boxes?
Cool yeah, add it as a plugin (copy paste to notepad, save as .js file and add in plugin manager).

If you want it also for the namebox and choicebox, try copying that above and changing where it says 'Window Message' to Window_NameBox and Window_ChoiceList (edit: like copy it so you have 3 times the code with those different names)

Original thread: https://forums.rpgmakerweb.com/threads/fade-in-fade-out-text-boxes.183142/