How to manually code position and layout of windows?

I can't seem to find a clear or answer or plugin that helps with re-arranging menus, and I'm trying to create my layout so that I can use this plugin: https://himeworks.com/2016/04/window-background-designer/

I see that it has something to do with scenes.js and windows.js, except after experimentation, I haven't been able to get it right. Does anyone know what exactly in these files I'd need to change in order to at least affect:

Window sizes
Window positions
Command directions (Item, Skill, Equip listed horizontally instead of vertically)
Very nice, but it seems to be a little limited in a few ways. One being, I can't remove commands, such as Formation and Save.
Hi there!

Very nice, but it seems to be a little limited in a few ways. One being, I can't remove commands, such as Formation and Save.
You don't need a plugin for that. Go into the Database > System > and disable these commands from there.

Assuming you know Javascript and the RPG Maker code, here is some info to help you do it without the SRD Plugin. Otherwise, the SRD plugin is your best option.

It depends on what scene and what window you want to change.
But generally speaking, the windows are created somewhere on the
MyScene.prototype.create function of the Scenes.

On this, for example, the Window_MenuCommand receives two arguments (X and Y position):
JavaScript:
Scene_Menu.prototype.createCommandWindow = function() {
    this._commandWindow = new Window_MenuCommand(0, 0);
    //... the rest of the code
};

So my guess is you will need to see how the Scenes adds the windows and then check the parameters the window receives, then go to the windows and see what parameters are doing there.

Window Commands, Help Windows, and other windows have different ways to be created.

About the command directions, I guess you can just overwrite the MyWindow.prototype.maxCol function to return the same number of commands you have on that window.

JavaScript:
Window_Selectable.prototype.maxCols = function() {
    return 1;
};
Hi there!


You don't need a plugin for that. Go into the Database > System > and disable these commands from there.

Assuming you know Javascript and the RPG Maker code, here is some info to help you do it without the SRD Plugin. Otherwise, the SRD plugin is your best option.

It depends on what scene and what window you want to change.
But generally speaking, the windows are created somewhere on the
MyScene.prototype.create function of the Scenes.

On this, for example, the Window_MenuCommand receives two arguments (X and Y position):
JavaScript:
Scene_Menu.prototype.createCommandWindow = function() {
    this._commandWindow = new Window_MenuCommand(0, 0);
    //... the rest of the code
};

So my guess is you will need to see how the Scenes adds the windows and then check the parameters the window receives, then go to the windows and see what parameters are doing there.

Window Commands, Help Windows, and other windows have different ways to be created.

About the command directions, I guess you can just overwrite the MyWindow.prototype.maxCol function to return the same number of commands you have on that window.

JavaScript:
Window_Selectable.prototype.maxCols = function() {
    return 1;
};
Thank you! That's exactly what I needed, can't believe I looked over the fact that the (0, 0); was the X and Y position I was looking for, and that you can disable commands in System.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-manually-code-position-and-layout-of-windows.151279/