EDIT THIS WAS SOLVED. SCROLL DOWN ON THIS ORIGINAL POST FOR THE SOLUTION
Hey hey,
So I've been doing a lot of tweaks and I ran into a bit of a wall trying to fix the alignment of an element I'm drawing on screen.
What I'm looking looking to do is move the Flipped Grimoire and Flipped Weapon sections as far to the right in the Rectangle as possible.
Currently this is the result I'm seeing with the attached "Portrait Stacked" script:
I'm using a plugin @Arthran put together for me that handles the flipped images, hence the need for the "if /else" in there to make sure the names, gauges, and weapons adjust as well. I've attached that as well. I'm playing around with it and manually adjusting the X value. The issue with doing that is adding a hard X value in their doesn't guarantee it will always start at the same place.
The "8" in
const cx = rect.x + gw - grimIconSize - grimoireNameWidth - 8;
and
const cx2 = rect.x + gw - weaponIconSize - weaponNameWidth - 8;
is just to add padding.
My guess is the updated icon size and text widths aren't being accounted for properly in the cx and cx 2 formulas for the Flipped Grimoire and Default
Any ideas?
Bonus Points if we can also get non flipped characters portraits (on the left) to move as far right as possible too.
EDIT: COMPLETE! SEE ATTACHED UPDATED SCRIPTS THAT MAKE THE BELOW MAIN MENU SETUP POSSIBLE ^_^ , note that plugin parameter and plugin commands are in use to designate when portraits should be flipped as you'll note the differences of when Penelope is or isn't flipped
2 Actor Party:
4 Actor Party:
I haven't tested the icons Y position with font sizes beyond what I set up in the Portrait mode script, so your results may vary if you change it. Any tweaks to that function are welcome for your uses, if you find a "one size fits all" solve for keeping the icon centered be sure to shoot me a message.
Thanks again @Arthran and @NaosoX for getting this Main Menu to the awesomeness that it is so far!
Hey hey,
So I've been doing a lot of tweaks and I ran into a bit of a wall trying to fix the alignment of an element I'm drawing on screen.
What I'm looking looking to do is move the Flipped Grimoire and Flipped Weapon sections as far to the right in the Rectangle as possible.
Currently this is the result I'm seeing with the attached "Portrait Stacked" script:
I'm using a plugin @Arthran put together for me that handles the flipped images, hence the need for the "if /else" in there to make sure the names, gauges, and weapons adjust as well. I've attached that as well. I'm playing around with it and manually adjusting the X value. The issue with doing that is adding a hard X value in their doesn't guarantee it will always start at the same place.
The "8" in
const cx = rect.x + gw - grimIconSize - grimoireNameWidth - 8;
and
const cx2 = rect.x + gw - weaponIconSize - weaponNameWidth - 8;
is just to add padding.
My guess is the updated icon size and text widths aren't being accounted for properly in the cx and cx 2 formulas for the Flipped Grimoire and Default
Any ideas?
Bonus Points if we can also get non flipped characters portraits (on the left) to move as far right as possible too.
EDIT: COMPLETE! SEE ATTACHED UPDATED SCRIPTS THAT MAKE THE BELOW MAIN MENU SETUP POSSIBLE ^_^ , note that plugin parameter and plugin commands are in use to designate when portraits should be flipped as you'll note the differences of when Penelope is or isn't flipped
2 Actor Party:
4 Actor Party:
I haven't tested the icons Y position with font sizes beyond what I set up in the Portrait mode script, so your results may vary if you change it. Any tweaks to that function are welcome for your uses, if you find a "one size fits all" solve for keeping the icon centered be sure to shoot me a message.
Thanks again @Arthran and @NaosoX for getting this Main Menu to the awesomeness that it is so far!