MZ How to increase the Actor Command Window size?

Hy Everyone!

I want to increase the size (hight) of the Actor command window in battle but can't find where. I want 5 or 6 rows not 4. (I'm using VisuStella Battle Core btw).
Maybe try changing the value of the Battle Layout Settings -> Command Lines plugin parameter of VisuStella Battle Core? Remember to save your project to apply Plugin Manager changes before testing~
I'm using the default Battle style, and the Command lines parameter is for the XP style layout.
Ah, I thought it might have affected the other styles as well. I couldn't find anything else promising in the plugin's parameters, which is why I suggested that. 😴

I just did a couple of quick tests and it looks like both of the following are compatible with VisuStella's Battle Core default layout:
  1. Change the battle window area's height (status + commands) to 5 rows instead of 4:
    Spoiler: Click to see plugin code
    JavaScript:
    /*:
     * @plugindesc Change the height of the window area in battle.
     * @help Terms of use: free to use and/or modify for any project.
     */
    
    Scene_Battle.prototype.windowAreaHeight = function() {
        return this.calcWindowHeight(5, true);
    };
  2. Change only the actor command window's height to 5 rows instead of 4:
    Spoiler: Click to see plugin code
    JavaScript:
    /*:
     * @target MZ
     * @plugindesc Change the height of the actor command window.
     * @help Terms of use: free to use and/or modify for any project.
     */
    
    (alias => {
        Scene_Battle.prototype.actorCommandWindowRect = function() {
            const rect = alias.apply(this, arguments);
            rect.height = this.calcWindowHeight(5, true);
            return rect;
        };
    })(Scene_Battle.prototype.actorCommandWindowRect);
Pick one, save it as a .js file, import as a plugin (after VisuStella Battle Core, just in case), save your project to apply Plugin Manager changes, then test!
Awsome!! Ty, ty, ty, TY!! 🙂
Moved to: Plugin Support
Hello @caethyril, sorry for digging so deep here, but i was wondering if you can please show me how to alter the actor command width?
It seemed it could be very similar to the code above, but im very JS noob...

Thank you!!!
Necro-post notice: @murilloc

Original thread: https://forums.rpgmakerweb.com/threads/how-to-increase-the-actor-command-window-size.140344/