Changing Window Positions and sizes in Main Menu

Okay, so after looking into this quite a bit I realized I could alter window and font appearance and such no problem. Now I want to rearrange the Menu in my own way and not in the weird restrictive options that VisuStella offers. To that end i looked at the following code in rmmz_scenes.js:

Scene_Menu.prototype.createCommandWindow = function() {​
const rect = this.commandWindowRect();​
const commandWindow = new Window_MenuCommand(rect);​
commandWindow.setHandler("item", this.commandItem.bind(this));​
commandWindow.setHandler("skill", this.commandPersonal.bind(this));​
commandWindow.setHandler("equip", this.commandPersonal.bind(this));​
commandWindow.setHandler("status", this.commandPersonal.bind(this));​
commandWindow.setHandler("formation", this.commandFormation.bind(this));​
commandWindow.setHandler("options", this.commandOptions.bind(this));​
commandWindow.setHandler("save", this.commandSave.bind(this));​
commandWindow.setHandler("gameEnd", this.commandGameEnd.bind(this));​
commandWindow.setHandler("cancel", this.popScene.bind(this));​
this.addWindow(commandWindow);​
this._commandWindow = commandWindow;​
};​
​
Scene_Menu.prototype.commandWindowRect = function() {​
const ww = this.mainCommandWidth();​
const wh = this.mainAreaHeight() - this.goldWindowRect().height;​
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;​
const wy = this.mainAreaTop();​
return new Rectangle(wx, wy, ww, wh);​
};​
​
Scene_Menu.prototype.createGoldWindow = function() {​
const rect = this.goldWindowRect();​
this._goldWindow = new Window_Gold(rect);​
this.addWindow(this._goldWindow);​
};​
​
Scene_Menu.prototype.goldWindowRect = function() {​
const ww = this.mainCommandWidth();​
const wh = this.calcWindowHeight(1, true);​
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;​
const wy = this.mainAreaBottom() - wh;​
return new Rectangle(wx, wy, ww, wh);​
};​
​
Scene_Menu.prototype.createStatusWindow = function() {​
const rect = this.statusWindowRect();​
this._statusWindow = new Window_MenuStatus(rect);​
this.addWindow(this._statusWindow);​
};​
​
Scene_Menu.prototype.statusWindowRect = function() {​
const ww = Graphics.boxWidth - this.mainCommandWidth();​
const wh = this.mainAreaHeight();​
const wx = this.isRightInputMode() ? 0 : Graphics.boxWidth - ww;​
const wy = this.mainAreaTop();​
return new Rectangle(wx, wy, ww, wh);​
};​
​
Scene_Menu.prototype.commandItem = function() {​
SceneManager.push(Scene_Item);​
};​
​
Scene_Menu.prototype.commandPersonal = function() {​
this._statusWindow.setFormationMode(false);​
this._statusWindow.selectLast();​
this._statusWindow.activate();​
this._statusWindow.setHandler("ok", this.onPersonalOk.bind(this));​
this._statusWindow.setHandler("cancel", this.onPersonalCancel.bind(this));​
};​
​
Scene_Menu.prototype.commandFormation = function() {​
this._statusWindow.setFormationMode(true);​
this._statusWindow.selectLast();​
this._statusWindow.activate();​
this._statusWindow.setHandler("ok", this.onFormationOk.bind(this));​
this._statusWindow.setHandler("cancel", this.onFormationCancel.bind(this))​

But before changing this around and ruining everything I would like to know where in this mess I can actually change the size...
I also wanted to add extra parameters and windows, and i assume that is possible with similar initiation commands like these. I'm not really good at java script yet so I'd appreciate the help.
Just change the numbers in the arguments those indicate size
The ones that end in Rect control the sizes and placement.

Make sure any changes you are making are in aplugin and not the base files.
The ones that end in Rect control the sizes and placement.

Make sure any changes you are making are in aplugin and not the base files.
How do I make it a plugin, just copy and paste only the functions i edited into plugin folder? Wouldn't that kind of interfere with the system if there are two contradicting codes?
How do I make it a plugin, just copy and paste only the functions i edited into plugin folder? Wouldn't that kind of interfere with the system if there are two contradicting codes?
Yes, if two plugins are overwriting the same function then whichever plugin runs last will have its effects implemented.
Yes, if two plugins are overwriting the same function then whichever plugin runs last will have its effects implemented.
Ok thx!
So for example I would change to:
Scene_Menu.prototype.commandWindowRect = function() {
const ww = this.mainCommandWidth(4, true); // put in some values
const wh = this.mainAreaHeight(4, true) - this.goldWindowRect().height; // put in some values
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
const wy = this.mainAreaBottom(); //changed top to bottom
return new Rectangle(wx, wy, ww, wh);
};
Is there a mistake in this?

Original thread: https://forums.rpgmakerweb.com/threads/changing-window-positions-and-sizes-in-main-menu.165370/