MZ Moving Actor Command Window VS Battle Core

As the title says,

I am trying to move the Actor Command window while using portrait layout in VisuStealla Battle Core.

I had no issue moving the Skill window. But the Actor Command seems to be handled differently. Assuming:

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

is what should be altered. But any changes to the values

Spoiler: My Changes
Scene_Battle.prototype.actorCommandWindowRect = function() { const ww = Graphics.width/5; const wy = Graphics.boxHeight/2; const wh = Graphics.boxHeight/2; const wx = Graphics.width/3 * 2; return new Rectangle(wx, wy, ww, wh); };




doesn't change anything.


image.png



Leads me to believe that VS is using a custom function. Any ideas?


Nvm, overwrote the function Window_ActorCommand.prototype.move

Thanking @Arthran for a previous plugin that helped me identify the right function ^_^
Edit: oh, just seen your report. OK!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.



You've checked the plugin's parameters for something related, right?

I imagine that window is simply being repositioned after creation: looks like it's being placed above the inputting actor...perhaps its width/height also get reset?

Since their code is obfuscated, here's a blind suggestion (untested):
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Override position/size of actor command battle window.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/164085/
 * @base VisuMZ_1_BattleCore
 * @orderAfter VisuMZ_1_BattleCore
 * @help Load after VisuStella Battle Core.
 * 
 * Free to use and/or modify for any project, no credit required.
 */
;void (alias => {
  const x = Graphics.width * 2 / 3;
  const y = Graphics.boxHeight / 2;
  const w = Graphics.width / 5;
  const h = Graphics.boxHeight / 2;
  Window_ActorCommand.prototype.update = function() {
    // do its usual update
    alias.apply(this, arguments);
    // then (re-)adjust its position/size
    if (this.width !== w || this.height !== h) {
      this.move(x, y, w, h);
      this.createContents();
    } else {
      this.x = x;
      this.y = y;
    }
  };
})(Window_ActorCommand.prototype.update);
You might get a better solution by asking VisuStella via one of the support links on their page.


Edit 2 - the posts toward the end of this thread might help future readers:

Original thread: https://forums.rpgmakerweb.com/threads/moving-actor-command-window-vs-battle-core.164085/