MZ How can i move up the actor command window in battle?

Hy Everyone!

I'm trying to move up a little bit the actor command window but don't know where or how to do it. (I'm using VisuStella Battle core btw.)

1631775007686.png
Related:
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!
I think you could just add something like this to that plugin:
JavaScript:
(alias => {
    Scene_Battle.prototype.actorCommandWindowRect = function() {
        const rect = alias.apply(this, arguments);   // get the normal rectangle
        rect.y -= 200;   // move up by 200 px
        return rect;
    };
})(Scene_Battle.prototype.actorCommandWindowRect);
actorCommandWindowRect returns a rectangle (x, y, width, height) that decides where the actor command window is placed.
Nothing happened. It stayed where it was. But when i change the "y" to "x" it works and moves left.
Ah, I guess VisuStella Battle Core (or one of your other plugins) is repositioning the window at some point. VisuStella's plugins are obfuscated, i.e. not human-readable, so unless you can find some relevant setting in the Plugin Manager, I'm out of ideas. 😴

Maybe someone else knows of a solution~

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-move-up-the-actor-command-window-in-battle.140501/