MZ Finding rows and columns for Actor Command window in MZ

So first off, I realize that by default the actor command window is fixed to the actor status window, thereby forcing it to be vertical and limiting its width. I am using MOG_BattleHud however, which allows me to move the actor command window elsewhere on the screen.

Although MOG_BattleHud allows me to adjust the number of rows and columns for other battle windows, it does not have those same parameters for the actor command window (only width). It was the same thing in MV, so for that I had to whip up my own plugin.

In MV's rpg_windows.js, I was able to gather and edit these lines to use in their own plugin:

Code:
Window_ActorCommand.prototype.numVisibleRows = function() {
    return 2;
};

Window_ActorCommand.prototype.maxCols = function() {
    return 4;
};

This exact plugin also works in MZ, which is good, but my concern is that if MZ's window core scripts are ever updated then it could potentially break this. However since MZ's core scripts are structured differently, I'm having difficulty locating and isolating where exactly in the core scripts determines the actor command's rows and columns. There's a bunch of that under Window Selection in rmmz_windows.js, but I believe those are for multiple windows? I don't want to adjust all of them, only actor command's.

TL;DR: I'm just trying to find where in any of the core scripts determines the number of rows and columns for the actor command window in battle. Or otherwise request a plugin to edit those in MZ specifically. Thanks.
Up !
By default, numVisibleRows does nothing in the context of Window_ActorCommand. Unless you specifically wrote some code that uses that function, or you have a plugin that uses that function, then there is no point in defining that function, because it will never get called. The number of visible rows is determined by the height of your window, so just set the window at a height that is appropriate to show the number of rows that you want.

maxCols *does* do something in the context of Window_ActorCommand, but you've already answered both of your own questions in that regard: Window_ActorCommand inherits maxCols from Window_Selectable. If you want to change maxCols just for Window_ActorCommand and not for anything else, then you can define it exactly like you did in your snippet, and it will overwrite the function that is inherited from Window_Selectable.

I don't quite understand your concern about the possibility of future updates breaking that function. It's highly unlikely to happen, but if it does happen, then you'll just have to deal with it when that time comes--there's nothing you can really do to preemptively avoid that.

Original thread: https://forums.rpgmakerweb.com/threads/finding-rows-and-columns-for-actor-command-window-in-mz.145498/