Adjust Fonts

This commit is contained in:
DazedAnon 2025-02-27 12:06:55 -06:00
parent e9ab043500
commit b311908b33
2 changed files with 18 additions and 2 deletions

View file

@ -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 */

View file

@ -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);