Lower Menu windows Opacity

So as said I am trying to lower the opacity of the item,equip, etc... windows to 0.

Here is what I have but it just draws error. Any idea on how to fix it?

var _Scene_MenuBase_create = Scene_MenuBase.prototype.create;
Scene_MenuBase.prototype.create = function() {
_Scene_MenuBase_create.call(this);
this.itemWindow.x = 0;
this.itemWindow.y = this._commandWindow.height;

this.itemWindow.opacity = 0;
};

I'm doing this inside the AltMenu2 plugin if any are familiar.
@PixelGamerDev
Okay firstly , when you get errors you cannot solve, a screenshot of the Dev Console is invaluable for some of the more cryptic errors people can get.
Secondly you should format you should format the codes using the insert code feature in this forum.
Thirdly if your code did work, the item window would be completely invisible but completely functional( you can still move the cursor and click on it), im going to assume you want them to fade in or something.

Okay the error is caused by you editing variables that don't actually exist yet.
you can tell by adding
Code:
console.log(this.itemWindow)
and it will always return undefined.
Code:
Scene_MenuBase.Create();
is called before any of those window get created.

SceneMenu_Base never creates any windows apart form a help window. it is used as a base class for all Menu based scenes and an Item window isn't needed in all of them( Main Menu, Quit, Save , Load, Status to name a few). Equip directly inherits from it while Items inherits from Item Base and in turn MenuBase.

so basically you want to modify opacity AFTER Create is called.
Thank you, I'm just so new to this programming stuff and I always get yanked backed when I make progress.

Original thread: https://forums.rpgmakerweb.com/threads/lower-menu-windows-opacity.103512/