diff --git a/js/plugins/FTKR_SkillTreeSystem.js b/js/plugins/FTKR_SkillTreeSystem.js index 4d4cf64..e8eb010 100644 --- a/js/plugins/FTKR_SkillTreeSystem.js +++ b/js/plugins/FTKR_SkillTreeSystem.js @@ -2552,7 +2552,7 @@ function Scene_STS() { params[3], params[4] ); - this.drawText(text, x, y, width, position); + this.drawText(text, x, y, width - 4, position); }; // 制御文字を使えるフォーマットテキスト描画関数 @@ -2564,7 +2564,7 @@ function Scene_STS() { params[3], params[4] ); - return this.drawTextEx(text, x, y); + return this.drawTextExSkillTree(text, x, y); }; /* 2023.01.28 added by nekoma */ diff --git a/js/rmmz_windows.js b/js/rmmz_windows.js index 67e6443..d505167 100644 --- a/js/rmmz_windows.js +++ b/js/rmmz_windows.js @@ -229,6 +229,22 @@ Window_Base.prototype.drawTextEx = function (text, x, y, width) { return textState.outputWidth; }; +Window_Base.prototype.drawTextExHelp = function (text, x, y, width) { + this.resetFontSettings(); + this.contents.fontSize = 24; + const textState = this.createTextState(text, x, y, width); + this.processAllText(textState); + return textState.outputWidth; +}; + +Window_Base.prototype.drawTextExSkillTree = function (text, x, y, width) { + this.resetFontSettings(); + this.contents.fontSize = 18; + const textState = this.createTextState(text, x, y, width); + this.processAllText(textState); + return textState.outputWidth; +}; + Window_Base.prototype.textSizeEx = function (text) { this.resetFontSettings(); const textState = this.createTextState(text, 0, 0, 0);