MZ Making the battle command window horizontal

Hey all. I wanted to arrange my battle menu so that the party command window and the actor command window display horizontally rather than vertically. For example:

Battlecommandwindow.jpg


I know that there was certain piece of code you had to alter to do this in MZ, but I'm not sure if it's the same here. I don't want a picture menu or anything, just a horizontal command window.

EDIT: Also, if at all possible, I’d like to know how to change the xy coordinates of these windows on screen. Thanks!
I know that there was certain piece of code you had to alter to do this in MZ, but I'm not sure if it's the same here.
This is confusing. As far as I can tell, you're asking for MZ.

So, presuming that's correct, you'd add columns to the window.

So
Code:
Window_ActorCommand.prototype.maxCols = function() 
{
    return 1;
};

Same thing with Window_PartyCommand for however many across that should be (2, by default).

You then need to change the shape of the windows:
Code:
Scene_Battle.prototype.partyCommandWindowRect = function() {
    const ww = 192;
    const wh = this.calcWindowHeight(1, true);
    const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
    const wy = Graphics.boxHeight - wh;
    return new Rectangle(wx, wy, ww, wh);
};

Scene_Battle.prototype.actorCommandWindowRect = function() {
    const ww = 192;
    const wh = this.calcWindowHeight(1, true);
    const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
    const wy = Graphics.boxHeight - wh;
    return new Rectangle(wx, wy, ww, wh);
};

Those are the default functions. I've already modified wh to be the height of one row, you'll have to edit ww to get the width where it looks good.
Hey all. I wanted to arrange my battle menu so that the party command window and the actor command window display horizontally rather than vertically. For example:

View attachment 310504

I know that there was certain piece of code you had to alter to do this in MV, but I'm not sure if it's the same here. I don't want a picture menu or anything, just a horizontal command window.

EDIT: Also, if at all possible, I’d like to know how to change the xy coordinates of these windows on screen. Thanks!
Sorry! I accidentally wrote MZ instead. Just a typo. Thanks for the help!

Also, I'm not 100% sure where in the default js files I should add the column code. I'm assuming windows.js, but I have zero experience with Javascript, and I'm not sure where would be the proper place to change that.
Also, I'm not 100% sure where in the default js files I should add the column code. I'm assuming windows.js, but I have zero experience with Javascript, and I'm not sure where would be the proper place to change that.
Huh. I didn't think for how long you've been around that I needed to include my newbie instructions when replying to you, but I guess you've never asked anything that elicited a code answer.

You should never edit the default js files.

Copy the code above, paste it into a text editor, save as a *.js file. Include as a plugin.
Thank you soo much! I’ve just started using MZ after mostly using XP and 2k3 for years, so I’m much more used to RGSS than Javascript. Thank you for your time and patience.

Original thread: https://forums.rpgmakerweb.com/threads/making-the-battle-command-window-horizontal.170051/