MZ Replacing the "message-end" arrow graphic and position

So, basically what I want to do is find some way to not only replace that graphic, but to also change it's position, because I want a bigger, horizontal arrow, and for it to be on the right side of the box, where no text go.
teste.png


If any of you has any idea on how to do this, I'd be eternally thankful. Thanks!
Not sure about MZ, but in MV, you can find code relevant to it by searching for "_windowPauseSignSprite" in the default .js files
To edit the picture, change the window.png file and change this part.
Window.png
Yeah, in MZ too you can change the position in the below method (change the coordinates in that .move line):

Window.prototype._refreshPauseSign = function() {
const sx = 144;
const sy = 96;
const p = 24;
this._pauseSignSprite.bitmap = this._windowskin;
this._pauseSignSprite.anchor.x = 0.5;
this._pauseSignSprite.anchor.y = 1;
this._pauseSignSprite.move(this._width / 2, this._height);
this._pauseSignSprite.setFrame(sx, sy, p, p);
this._pauseSignSprite.alpha = 0;
};

You can affect the graphic in the file shown by the above poster, but if it doesn't fit there, you have to change the scale or make it use another file.
as a side as the above poster rpgLord69, if you only want it to be
affected in the message window, change "window" to Window_Message
and it only work there, unless you want it global everywhere.
Yeah, in MZ too you can change the position in the below method (change the coordinates in that .move line):

Window.prototype._refreshPauseSign = function() {
const sx = 144;
const sy = 96;
const p = 24;
this._pauseSignSprite.bitmap = this._windowskin;
this._pauseSignSprite.anchor.x = 0.5;
this._pauseSignSprite.anchor.y = 1;
this._pauseSignSprite.move(this._width / 2, this._height);
this._pauseSignSprite.setFrame(sx, sy, p, p);
this._pauseSignSprite.alpha = 0;
};

You can affect the graphic in the file shown by the above poster, but if it doesn't fit there, you have to change the scale or make it use another file.
IT WORKED IT WORKED IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
thanks a lot!

Although I'd like to know how to make it point to another file, since the custom arrow I made is quite big and doesn't fit the window.png file's tiny space)
I think it'd be easier to draw smaller arrow that fits and scale it. But if you need another file, I guess you'd need to replace the line:
this._pauseSignSprite.bitmap = this._windowskin;
with:
this._pauseSignSprite.bitmap = ImageManager.loadSystem("myFileName");

But then you also need to replace the setFrame areas in that method (they're like x, y, width, height):
this._pauseSignSprite.setFrame(sx, sy, p, p);

And then there's the other method that makes the pause sign sprite animated, you need to change the setFrame areas there too:
Window.prototype._updatePauseSign = function() {
const sprite = this._pauseSignSprite;
const x = Math.floor(this._animationCount / 16) % 2;
const y = Math.floor(this._animationCount / 16 / 2) % 2;
const sx = 144;
const sy = 96;
const p = 24;
if (!this.pause) {
sprite.alpha = 0;
} else if (sprite.alpha < 1) {
sprite.alpha = Math.min(sprite.alpha + 0.1, 1);
}
sprite.setFrame(sx + x * p, sy + y * p, p, p);
sprite.visible = this.isOpen();
};
You need to change that setFrame stuff to fit with your new file coordinates and extended dimensions.
I think it'd be easier to draw smaller arrow that fits and scale it. But if you need another file, I guess you'd need to replace the line:
this._pauseSignSprite.bitmap = this._windowskin;
with:
this._pauseSignSprite.bitmap = ImageManager.loadSystem("myFileName");

But then you also need to replace the setFrame areas in that method (they're like x, y, width, height):
this._pauseSignSprite.setFrame(sx, sy, p, p);

And then there's the other method that makes the pause sign sprite animated, you need to change the setFrame areas there too:
Window.prototype._updatePauseSign = function() {
const sprite = this._pauseSignSprite;
const x = Math.floor(this._animationCount / 16) % 2;
const y = Math.floor(this._animationCount / 16 / 2) % 2;
const sx = 144;
const sy = 96;
const p = 24;
if (!this.pause) {
sprite.alpha = 0;
} else if (sprite.alpha < 1) {
sprite.alpha = Math.min(sprite.alpha + 0.1, 1);
}
sprite.setFrame(sx + x * p, sy + y * p, p, p);
sprite.visible = this.isOpen();
};
You need to change that setFrame stuff to fit with your new file coordinates and extended dimensions.
It took quite some time, but I finally got it! It's working now! For some reason it only has 2 frames of animation and idk how to add more, but hey, it works and I am happy with that! Thx for everything! 😀
Cool.
If you show how you changed the code (and a screenshot of the image file) maybe someone can help you spot why it only does 2 frames.

Original thread: https://forums.rpgmakerweb.com/threads/replacing-the-message-end-arrow-graphic-and-position.182728/