SRD_Battle Status Customizer: Align character's status window to center?

BrunoDeSN

Villager
Member
Joined
Dec 1, 2019
Messages
9
Reaction score
5
First Language
PT-BR
Primarily Uses
RMMV
Hi everyone!

I'm using SRD_BattleStatusCustomizer in my game, and I wanted to ask if anyone know how can I write the code to align the Status Windows to the horizontal center of the screen? (with some spacing between them when more than 1 character is in the party)

I've got something working with the battler sprites (frontview) using Yanfly BattleEngineCore and the code in the "Frontview Position X" is "Graphics.boxWidth / 2 + 250 * ($gameParty.battleMembers().length / 2 - index - 0.5) * -1"

But I know close to nothing about programming so I don't know how to translate this into the other plugin config

Here are some mockups I've made to exemplify

n2Btl7F.png


Bdm65Pm.png
 

Muk adel heid

Veteran
Veteran
Joined
Aug 3, 2013
Messages
38
Reaction score
42
First Language
Spanish
Primarily Uses
How many characters are you intended to have at max per battle?
 

BrunoDeSN

Villager
Member
Joined
Dec 1, 2019
Messages
9
Reaction score
5
First Language
PT-BR
Primarily Uses
RMMV
Hi everyone! I hope this doesn't count as spam posting I'm still new to the forum, after some research I found the code I needed, so I'm posting it here in case someone needs it in the future:


SRD_BattleStatusCustomizer - Align Party status windows to center:

Actor Window Ori. X: Graphics.boxWidth / 2 - ((this.width * $gameParty.members().length) / 2)

Actor Window X: prev._mainX + prev.width + (this.width / 8)
 

Latest Threads

Latest Profile Posts

Valentines Entry, first contest I'm in and it is so much fun to just participate!
Anatomy is really hard. I'm not an artist.
just destroyed hours of work again. i don't know why I bother.

Forum statistics

Threads
109,003
Messages
1,041,191
Members
141,471
Latest member
Crazya
Top