MV How to move portraits in a specific plugin

Hi, so I'm using the Portraits in Battle script from Michael Dionne (http://forums.rpgmakerweb.com/index.php?/topic/48633-portraits/), I was wondering if there was a way I could make the actor info be centered when the party isn't full? Move it to the center so it's not going to be obvious theres a third party member by having a huge "third party member" shaped empty space.
1763003175462.png
1763003102604.png
Yeah, if it's 2 or 3 actors, I think change in the plugin code like what I commented out here to what I replaced line below (you might need to change some plugin settings offsets after this):

Window_BattleStatus.prototype.maxCols = function()
{
// return Portraits.Param.actorsquantity;
return $gameParty.members().length;
};


Window_BattleStatus.prototype.gaugeAreaRect = function(index)
{
var rect = this.itemRectForText(index);
// rect.x += rect.width - this.gaugeAreaWidth() + Portraits.Param.barshorizontalpadding;
rect.x += $gameParty.members().length === 2 ? 50 : 0;
rect.width = this.gaugeAreaWidth();
return rect;
};

Then a bit below change the drawMethods for face, name, icons -> add conditional to the rect.x, like:

rect.x + ($gameParty.members().length === 2 ? 50 : 0)

EDIT: Or instead of the drawMethods, I guess you could modify the basicAreaRect method in a similar fashion like the above gaugeAreaRect. But yeah, whatever should work.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-move-portraits-in-a-specific-plugin.181002/