MZ Center Vertical Alignment + Message Arrow Placement?

So, I wanted to ask if anyone knew of a currently-existing plugin/would want to make a plugin that makes it so text in the Message Window is centered vertically (I've only found stuff to make it centered horizontally, which is not what I want) and maybe also, optionally, if the message arrow could be placed near the lower corner of the message box?

I'm using VIsustellaMZ's MessageCore plugin for dialogue, and using that, the message arrow is always right after the text no matter which position and I don't QUITE like it? Though I can live with it if that's not something that can be changed, I just thougth since I'm already asking for ONE Message Window thing, may as well ask for the other as a nice optional bonus.

I will attach an example of both things in a single Message Box (from videogame Ghost Trick) in case my explanation left anything to be desired and I didn't explain correctly!

So yeah, if it could be made it would be very helpful!
Thanks in advance, even if the answer ends up being that it couldn't be done at all!
that array is a pause arrow, for MV its always center on the bottom,
in MZ behind last text.

if you want it on the right always, than I can check, but I cannot test it
as I don't won MZ.

neither do I know if MessageCore of Visustella altered it or not.
so that can be harder, if not, it can be an overwrite if you don't mind.

Edit:
it refresh the cursor, and checking it, is a bit more complicated.
while it calls the geometric, it may be altered inside the window message
calling that function, but I'm unsure how to alter that for MZ though.

so it can be called cleanly as this is the main function for each window:
JavaScript:
Window.prototype._refreshCursor = function() {
    const drect = this._cursorRect.clone();
    const srect = { x: 96, y: 96, width: 48, height: 48 };
    const m = 4;
    for (const child of this._cursorSprite.children) {
        child.bitmap = this._windowskin;
    }
    this._setRectPartsGeometry(this._cursorSprite, srect, drect, m);
};

// mini plugin
Window_Message.prototype._refreshCursor = function() {
    // can be equal, but remove this._setRectPartsGeometry(....)
}

but I don't know how to move it from there unfortunately.
but someone that has MZ can guide you there correctly.
if you want it on the right always, than I can check, but I cannot test it
as I don't won MZ.
Thank you, that would be helpful! I also wouldn't be able to test it right now as I'm not home until Saturday, but it would still be helpful if you tried and I can test it out when I'm back home!
neither do I know if MessageCore of Visustella altered it or not.
so that can be harder, if not, it can be an overwrite if you don't mind.
You mean, modifying VisustellaMZ's Message Core? I'm not sure if that's allowed or not in the terms and conditions but if it is, then sure!
Visustella plugins are obfuscated, and if you are able, its more personal
use or create an extention, but I don't know how to alter it, but you can
use the function to alter inside the message window at least.

I did so for my own in MV, and move it, but this one is a bit over my lead,
so I hope someone is able to help you make it simple =)
so I hope someone is able to help you make it simple =)
Hopefully! Thanks for your help so far, though!
Did you write all your text boxes already? If not, you can just add at the beginning of every one the \PY[value] text code to set the y-coordinate depending on how many lines of text you're going to show, LOL. That will center it vertically.

Message Core has settings to automatically use text codes at the start of messages and also make custom text codes/actions. So, I'm pretty sure you could also automate it, by having the code check how many rows your message is going to be and setting the textState.y, but VS changes some stuff related to that. Ask their discord what the script is so you can give a variable value to push the text downward (or maybe someone here knows).

For the message arrow stuff, I'm a bit confused. If you have some icon right after the text, doesn't that come from a plugin like for example VS Extended Message Functionality? You can turn that off.
To set the arrow location to bottom right, I think it's enough to just modify one function (here I've aliased it because VS also changes it):
const _myVisuEdit1_refreshPauseSign = Window.prototype._refreshPauseSign;

Window.prototype._refreshPauseSign = function() {
_myVisuEdit1_refreshPauseSign.call(this);
this._pauseSignSprite.move(this._width - 16, this._height);
};

That does it for me according to a quick test. But yeah, I'm not sure what the setframe stuff etc is doing and if you'd want to give other values to those also. Maybe someone else can answer that, but anyway just testing it quickly it works like that.
Oh dang I didn't even think of doing that to center text vertically, it worked perfectly! Thank you!

In terms of the other stuff though, I didn't quite understand how to make the change you suggested. Where does that code go? Sorry, I'm not someone who works with code, I mostly just use plugins as they come and make any changes directly through the Plugin Manager. But if I have to, I'd like to know how to do this.

Thanks in advance!
Nice!
For the code copy paste it into notepad and save as a .js file into your plugin folder and add as a plugin after VisuStella. But like I said, it's not clear to me if you have other plugins that change the behaviour of that stuff.
Sorry, I put in the plugin like you told me and nothing changed. Thanks for the help regardless tho!
This is the change it does for me, pic below. Did you try it with only "level 1" VisuStella plugins ON?

EDIT: Or to be more clear, with other plugins that affect the cursor turned off, or their settings to change the cursor disabled.


Pause_Sign_RPGM.JPG
Oh yeah it did work when I disabled everything other than level 1, as well as when I disabled the message cursor on the VisustellaMZ plugin and enabled everything else, so this seems near solved!

But now I'd like to ask how I could maybe reposition it maybe like, 10 pixels up and 5 pixels to the left? Because the repositioning to the corner worked perfectly but now it's TOO close to the corner of the message box for the aesthetic I'm going for.

I apologize if this is annoying, I am 100% grateful for what you've done for me until now and wouldn't be able to do it myself, so thank you so much so far!!
Cool.

Yeah, to move it around just subtract from the width and height inside the last line (and save the changes). Like there's already a subtraction for the width (this._width - 16, this._height)
Thank you SO so much! It worked perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/center-vertical-alignment-message-arrow-placement.180379/