MZ Visustella Adjusting Scene_Shop

Hello all,

I am currently working on some menus, and am working with Visustella's many plugins. I am trying to adjust the placement of the command window upward in the Core Engine Menu Layout settings and can't seem to adjust SPECIFICALLY the Y coordinates of the Command Window, no matter what I do.
Code.png


I am able to adjust everything else just fine with just some simple adjustments to the coordinates here, but the Y position refuses to move. I've even tried changing the
JavaScript:
const y = this.mainAreaTop();

to instead read:

JavaScript:
const y = 0;

Yet I still cannot move the Y coordinate of command window!

While I was looking over the rest of the windows and adjusting them, I did notice that there's a Dummy Window that is connected to the Command Window's Y coordinates as well, and again, I attempted to make the same adjustments as before with the "const y =" line. This did cause some oddities in the shop menu, but it almost worked, but it just stopped allowing me to push the Y coordinates up to a ceraint point (something like +180) before it refused to move again.
DummyWindow.png


How do I go about adjusting the Y coorinates of the Scene_Shop command window further upward?
I think it's because it sets the command window y after creating it. You can comment out the line in the below function (make a plugin file), but it references that command window y in other windows in the Scene_Shop, so you'll have to edit them too, or they will be misaligned.

Scene_Shop.prototype.createCommandWindow = function() {
const rect = this.commandWindowRect();
this._commandWindow = new Window_ShopCommand(rect);
this._commandWindow.setPurchaseOnly(this._purchaseOnly);
// this._commandWindow.y = this.mainAreaTop();
this._commandWindow.setHandler("buy", this.commandBuy.bind(this));
this._commandWindow.setHandler("sell", this.commandSell.bind(this));
this._commandWindow.setHandler("cancel", this.popScene.bind(this));
this.addWindow(this._commandWindow);
};
Just to add to rpgLord's solution:
The dummy window (in case you don't know) is the empty window that shows nothing, until you select "buy" or "sell". This line...

Code:
y = this._commandWindow.y + this._commandWindow.height

...simply means to put the dummy window below the command window. Any changes here will not affect the command window.
I think it's because it sets the command window y after creating it. You can comment out the line in the below function (make a plugin file), but it references that command window y in other windows in the Scene_Shop, so you'll have to edit them too, or they will be misaligned.

Scene_Shop.prototype.createCommandWindow = function() {
const rect = this.commandWindowRect();
this._commandWindow = new Window_ShopCommand(rect);
this._commandWindow.setPurchaseOnly(this._purchaseOnly);
// this._commandWindow.y = this.mainAreaTop();
this._commandWindow.setHandler("buy", this.commandBuy.bind(this));
this._commandWindow.setHandler("sell", this.commandSell.bind(this));
this._commandWindow.setHandler("cancel", this.popScene.bind(this));
this.addWindow(this._commandWindow);
};
I went ahead and made a new JS file with that code it in and now editing the Y value in the Scene_Shop command window works!

Thank you so much for all the help you've provided so far!:ahappy:

Original thread: https://forums.rpgmakerweb.com/threads/visustella-adjusting-scene_shop.178955/