Center battler window (DreamX_Ext_BattleStatusCore)

Hey! 🙂

Edit: The plugin used here for the battle ui is
https://forums.rpgmakerweb.com/index.php?threads/yep-battle-status-window-extension.65531/
And my screen resolution is 1920x1080.

--------
I'm looking for a little bit of help with the DreamX_Ext_BattleStatusCore plugin.
There is a parameter called 'Battler status input x' & 'Battler status action x' that I have used to position the frontview actors on the screen. Which is great but I'd like to center the actor position on the screen. So if I only have one actor in my party then its in the middle of the screen. If I have 5 actors in my party then they are also centered on the screen.

I have a plugin that does this for the enemy position and the bit of code that sorts this out in the the plugin is
'screenWidth/2 -245 + (index - Math.floor((troopSize+2)/2)) * 300'

So I'm guessing I could do something similar but use '$gameParty.size()' instead?

Any help with this would be appreciated 🙂
So I've made some progress on this! But i'm a little stumped now :/
I'm using this bit of code to position the actors

Code:
1920/2 + ($gameParty.battleMembers().indexOf() - Math.floor(($gameParty.battleMembers().length+2)/2)) * 300 + 270

Which seems like it almost works! Basically i want the actors to be in the same positions as the red markers (So not exactly centered on the screen). So even if the party size is less than 5 they still look in the right place. You can see when i have 5 and 4 actors they are in the right position! 😀 but then when there is less they start to shift off slightly :/ Does anyone have a suggestion to fix this?


5.jpg
4.jpg
3.jpg
2.jpg
1.jpg

Appreciate any help with this 🙂
Can you edit your post to include a link to the plugin and also what is your screen resolution?
@Aloe Guvner Sure! Silly i missed that 😛 Updated the original post now.
Bump - still stuck on this. Any help? 🙂

Edit: SOLVED IT! 😀 It shouldn't have been this difficult but I've managed to get it working now 🙂

I got it working by multiplying a value by how many actors there is in the party to position them how I want 🙂
Code:
1920/2 - (Math.floor(($gameParty.battleMembers().length)/2) *340) -260

Original thread: https://forums.rpgmakerweb.com/threads/center-battler-window-dreamx_ext_battlestatuscore.94940/