MV Temporality remove actor command window

Hi there! I was wondering if there was a way for me to entirely remove the actor command window but ONLY after you select "attack" or "magic", I would like the window to be gone but ONLY when choosing enemies to target. My goal is to make it disappear temporarily but only when selecting which enemy to target. I have the actor command window currently taking up most of the screen when present intentionally, and I just want it to go away once I've already made my combat choices.
Hmmm, try this (copy paste to notepad, save as .js file to plugin folder and add as a plugin) (oh and this removes it during magic actor selection too, not sure if you want that):


Scene_Battle.prototype.selectEnemySelection = function() {
this._actorCommandWindow.hide();
this._enemyWindow.refresh();
this._enemyWindow.show();
this._enemyWindow.select(0);
this._enemyWindow.activate();
};

Scene_Battle.prototype.onEnemyOk = function() {
this._actorCommandWindow.show();
var action = BattleManager.inputtingAction();
action.setTarget(this._enemyWindow.enemyIndex());
this._enemyWindow.hide();
this._skillWindow.hide();
this._itemWindow.hide();
this.selectNextCommand();
};

Scene_Battle.prototype.onEnemyCancel = function() {
this._enemyWindow.hide();
switch (this._actorCommandWindow.currentSymbol()) {
case 'attack':
this._actorCommandWindow.show();
this._actorCommandWindow.activate();
break;
case 'skill':
this._actorCommandWindow.show();
this._skillWindow.show();
this._skillWindow.activate();
break;
case 'item':
this._actorCommandWindow.show();
this._itemWindow.show();
this._itemWindow.activate();
break;
}
};

Scene_Battle.prototype.selectActorSelection = function() {
this._actorCommandWindow.hide();
this._actorWindow.refresh();
this._actorWindow.show();
this._actorWindow.activate();
};

Scene_Battle.prototype.onActorOk = function() {
this._actorCommandWindow.show();
var action = BattleManager.inputtingAction();
action.setTarget(this._actorWindow.index());
this._actorWindow.hide();
this._skillWindow.hide();
this._itemWindow.hide();
this.selectNextCommand();
};

Scene_Battle.prototype.onActorCancel = function() {
this._actorWindow.hide();
switch (this._actorCommandWindow.currentSymbol()) {
case 'skill':
this._actorCommandWindow.show();
this._skillWindow.show();
this._skillWindow.activate();
break;
case 'item':
this._actorCommandWindow.show();
this._itemWindow.show();
this._itemWindow.activate();
break;
}
};

Original thread: https://forums.rpgmakerweb.com/threads/temporality-remove-actor-command-window.182078/