RMMV GALV's Timed Message Popups - how to change window size?

Xiandata

Actually a sculptor...! What am I doing here?!
Member
Joined
Sep 22, 2013
Messages
21
Reaction score
25
First Language
English
Primarily Uses
RMMZ
Using this fantastic plugin by the illustrius GALV:

I have changed the font of the text to be smaller in-game(Using the Yanfly messagecore /FS text note)
However, the text box is now drawn far too large. Changing the padding to modify the width is easy enough. It's the height I'm stuck on.
Capture.PNG

I'm not sure how to go about changing this.
I've been trying to poke around in the plugin .js file to see if I could change the height parameter / padding but to be perfectly honest I know next to nothing about javascript. :(


If I'd hazard a guess (thank you code comments) I'd say I need to modify something here, but everything I've tried so far breaks everything..! :')

JavaScript:
Window_GalvCaption.prototype.setWindowDimensions = function() {
    var w = 10;
    this.contents.clear();
    // Calc max width and line height to get dimensions
  
    var xO = this._faceName ? Window_Base._faceWidth + 10 : 0;
  
    for (var i = 0; i < this._txtArray.length; i++) {
        var lineWidth = this.textWidthEx(this._txtArray[i]) + this.standardPadding() * 2;
        if (w < lineWidth) {
            w = lineWidth;
        };
        if (this.skin != 'Window') this.contents.outlineWidth = Galv.Mpup.outlineWidth;
        this.drawTextEx(this._txtArray[i], xO, this.lineHeight() * i);
      
    }
    this.width = w + xO;

    if (this._faceName) {
        this.drawFace(this._faceName, this._faceIndex, 0, 0);
    };
  
  
    this._offsetY = 0;

    if (this._pos == 0) {
        this._offsetY += -this.height + this._heightY;
    } else if (this._pos == 1) {
        this._offsetY += -this.height / 2 - 24;
    } else if (this._pos == 2) {
        this._offsetY += Math.abs(this._heightY * 0.2);
    };
};

If anyone has any suggestions, I'd be forever grateful! Thank you!

(Apologies if this is in the wrong place, was erring between posting it here and Plugin requests...)
 
Last edited:

Latest Threads

Latest Profile Posts

TFW you get a plugin working correctly with your other plugins ♡\( ̄▽ ̄)/♡

(CW for minor gore - Einar's Y incision is gone for his test portrait)

Cs5kAbZ.png
Doing some winter related edits for a cozy cottage!
I think it's the third time I am changing my skill info plugin, but as I get better at programming, I want to fix the trash I made earlier :p

Streaming while I am programming the plugin. Join in if you wish :)
Currently working on a side game for the One Map Game Challenge. :kaoblush:
3H2mUEI.png

As you can see, the game will be called "Welcome To November". Hopefully, I'll finish it before November ends. :dizzy:
In two days we already have the first advent sunday :eek: Time flies...

Forum statistics

Threads
116,977
Messages
1,103,475
Members
152,844
Latest member
schuzz6
Top