Using this fantastic plugin by the illustrius GALV:
galvs-scripts.com
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.
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..! :')
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...)
MV Timed Message Popups
FEATURES Display popup messages on the screen or over characters. These messages do not prevent player movement and last for a specified amount of time before closing. Added: Ability to specify dif…
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.
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...)