In battle skill/item menu adjustment Code Help

error1.JPG

I'm using Visustella's Frontview UI core but there are some changes I want to make that don't seem to be part of the plugin (or maybe it is and I can't find it.)

For starters I want to adjust the actor window and the item/skill windows that open up when you use the commands. I want the skill/item windows to parallel the actor command windows when you open them. Similar to this image below. (Potentially this could just be the item window as I could just add the skills to the main actor window.)

error3.JPG



(Also is it possible to have the item window have two items per row instead of 1 but keep the actor window 1 command and 1 row? I tried looking but couldn't find that either.)

The 2nd issue is the Blue bar help window. I want to remove that because its honestly redundant as the help window at the top of the screen already explains what the item does and it causes the item window to move awkwardly as the game tries to fit all these boxes on the screen. Again, I don't know if the option to do all those things are part of the plug in natural, I just can't find it.

If anyone knows anything, I appreciate the help.
You can turn off the shop status window in plugin settings.
Battle Scene Settings - General - Show Shop Stauts?

For the other things you can put this as a plugin below VS (copy paste to notepad, save as .js file and add as plugin).
You might need to add/subtract from the x values.

const _myEdit1_SceneBattle_updateFrontviewBattleUiPositions = Scene_Battle.prototype.updateFrontviewBattleUiPositions;
Scene_Battle.prototype.updateFrontviewBattleUiPositions = function() {
_myEdit1_SceneBattle_updateFrontviewBattleUiPositions.call(this);
this._itemWindow.x = this._actorCommandWindow.x + this._actorCommandWindow.width;
this._itemWindow.y = this._actorCommandWindow.y;
this._skillWindow.x = this._actorCommandWindow.x + this._actorCommandWindow.width;
this._skillWindow.y = this._actorCommandWindow.y;
}

Window_BattleItem.prototype.maxCols = function() {
return 2;
};

However, that might cause a bit of a 1 frame flash in some instances when the window moves for some reason. If you want to get rid of that, I think it works if you write that method name in the console and get the obfuscated method and try to comment out lines until you find the one that moves the item or skill windows and make a plugin out of that.
You can turn off the shop status window in plugin settings.
Battle Scene Settings - General - Show Shop Stauts?

For the other things you can put this as a plugin below VS (copy paste to notepad, save as .js file and add as plugin).
You might need to add/subtract from the x values.

const _myEdit1_SceneBattle_updateFrontviewBattleUiPositions = Scene_Battle.prototype.updateFrontviewBattleUiPositions;
Scene_Battle.prototype.updateFrontviewBattleUiPositions = function() {
_myEdit1_SceneBattle_updateFrontviewBattleUiPositions.call(this);
this._itemWindow.x = this._actorCommandWindow.x + this._actorCommandWindow.width;
this._itemWindow.y = this._actorCommandWindow.y;
this._skillWindow.x = this._actorCommandWindow.x + this._actorCommandWindow.width;
this._skillWindow.y = this._actorCommandWindow.y;
}

Window_BattleItem.prototype.maxCols = function() {
return 2;
};

However, that might cause a bit of a 1 frame flash in some instances when the window moves for some reason. If you want to get rid of that, I think it works if you write that method name in the console and get the obfuscated method and try to comment out lines until you find the one that moves the item or skill windows and make a plugin out of that.
Thanks. The code works perfectly. I decided to change the return value to 1 as having 2, squished the texts so much it was practically illegible.

Original thread: https://forums.rpgmakerweb.com/threads/in-battle-skill-item-menu-adjustment-code-help.184040/