Heyho! Is use Yanfly's GabWindow, but wanted it to have the default window skin. That's why I used @ATT_Turan s Code from this thread ( I guess it's okay to repost it here?)
However no, I'd also like to adjust the window width to GabText displayed. The plugin calculates the window widht via
But with the window skin enabled it cuts of the text if it's too long. I could just change it to a higher value, but this way there would be an awfully nog window, even with just a short line of text. I know it should be possible to get the text length with
but I fail to incorporate it correctly. Soo if anyone knows how to this, or has any other way, help would be greatly appreciated!
Code:
Window_Gab.prototype.updateFadeIn = function() {
this.contentsOpacity += Yanfly.Param.GabFadeRate;
this.opacity += Yanfly.Param.GabFadeRate;
};
Window_Gab.prototype.updateFadeOut = function() {
this.contentsOpacity -= Yanfly.Param.GabFadeRate;
this.opacity -= Yanfly.Param.GabFadeRate;
if (this.contentsOpacity > 0) return;
if (this._gabSwitchedOn) return;
if (this._gabSwitch) {
$gameSwitches.setValue(this._gabSwitch, true);
this._gabSwitchedOn = true;
}
};
However no, I'd also like to adjust the window width to GabText displayed. The plugin calculates the window widht via
Code:
var ww = Graphics.boxWidth + this.standardPadding() * 2;
Code:
this.contents.measureTextWidth