Hi all! I'm customizing my textboxes and windowskins. I've created a simple code to reposition the pause sprite, but I would like to make it a bit bigger, too, and I'm lost on how to do that! Any advice on a script that would work?
Changing the size of the pause sprite/text box arrow?
RPG Maker MZ SupportThe function that creates the sprite is:
The salient numbers are declared right at the beginning, then they're used in the setFrame() function call - it's saying the image is starting at 144, 96 in the windowskin file, and is 24 pixels across and down.
Code:
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;
};
The salient numbers are declared right at the beginning, then they're used in the setFrame() function call - it's saying the image is starting at 144, 96 in the windowskin file, and is 24 pixels across and down.
Original thread: https://forums.rpgmakerweb.com/threads/changing-the-size-of-the-pause-sprite-text-box-arrow.172300/