MZ Removing window from Yanfly's Item Upgrade Slots

Hello all,

I am currently working on my menus and am using Yanfly's Item Core + Item upgrade slots alongside Visustella's many plugins. As some of you may know, there are some compatibility issues between the these plugins that cause some visual oddities in the Item_Scene. For the most part, I have gotten them to work together alright, except for one little issue that I am hoping to get some help with.

As you can see everything looks fine here.
ItemScene.png


However, when I go to upgrade a weapon the blue window is present.
ItemSceneUpgrades.png


The blue window is also present when I am selecting what materials I want to put into equipment.
ItemSceneUpgradeMaterials.png


I have tried to go into the settings of the plugins themselves, but due to the nature of combining Fossile, Yanfly's Item Core, Yanfly's Item Upgrade Slots, and Visustella's many plugins, I cannot adjust the settings of Yanfly's plugins without the game crashing on loadup!

I am however pretty sure that we can get rid of these blue windows by going into Yanfly's Item Upgrade Slots script and commenting out whatever code is being used to call the blue windows for these menus!

Does anyone know what lines in Yanfly's scripts I can comment out to stop the blue windows from showing up?
Maybe you could make the blue window transparent?

I've added the "opacity" lines on these portions of YEP's Item Slot code (starting around line 1165) and this got rid of the two windows:
JavaScript:
Yanfly.IUS.Scene_Item_createActionWindow =
    Scene_Item.prototype.createActionWindow;
Scene_Item.prototype.createActionWindow = function() {
    Yanfly.IUS.Scene_Item_createActionWindow.call(this);
    this._itemActionWindow.setHandler('upgrade',
      this.onActionUpgrade.bind(this));
    this._itemActionWindow.opacity = 0; //Added Line
};

Scene_Item.prototype.createUpgradeListWindow = function() {
    var wy = this._itemWindow.y;
    var ww = this._itemWindow.width;
    var wh = this._itemWindow.height;
    this._upgradeListWindow = new Window_UpgradeItemList(0, wy, ww, wh);
    this._upgradeListWindow.setHelpWindow(this._helpWindow);
    this._upgradeListWindow.setHandler('ok', this.onUpgradeListOk.bind(this));
    this._upgradeListWindow.setHandler('cancel',
      this.onUpgradeListCancel.bind(this));
    this._upgradeListWindow.opacity = 0; //Added Line
    this.addWindow(this._upgradeListWindow);
};

It looks like this:
1752359443616.png

(The change also affects the other menus that use those windows.)

I'm not sure if this is what you wanted to do though...
Maybe you could make the blue window transparent?

I've added the "opacity" lines on these portions of YEP's Item Slot code (starting around line 1165) and this got rid of the two windows:
JavaScript:
Yanfly.IUS.Scene_Item_createActionWindow =
    Scene_Item.prototype.createActionWindow;
Scene_Item.prototype.createActionWindow = function() {
    Yanfly.IUS.Scene_Item_createActionWindow.call(this);
    this._itemActionWindow.setHandler('upgrade',
      this.onActionUpgrade.bind(this));
    this._itemActionWindow.opacity = 0; //Added Line
};

Scene_Item.prototype.createUpgradeListWindow = function() {
    var wy = this._itemWindow.y;
    var ww = this._itemWindow.width;
    var wh = this._itemWindow.height;
    this._upgradeListWindow = new Window_UpgradeItemList(0, wy, ww, wh);
    this._upgradeListWindow.setHelpWindow(this._helpWindow);
    this._upgradeListWindow.setHandler('ok', this.onUpgradeListOk.bind(this));
    this._upgradeListWindow.setHandler('cancel',
      this.onUpgradeListCancel.bind(this));
    this._upgradeListWindow.opacity = 0; //Added Line
    this.addWindow(this._upgradeListWindow);
};

It looks like this:
View attachment 344889
(The change also affects the other menus that use those windows.)

I'm not sure if this is what you wanted to do though...
This is awesome! This worked exactly as I wanted. Thank you so very much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/removing-window-from-yanflys-item-upgrade-slots.178879/