Skill Tree

This commit is contained in:
dazedanon 2025-05-30 08:36:58 -05:00
parent 3504cfc6ec
commit c9fa8d1b10

View file

@ -2397,36 +2397,17 @@ function Scene_STS() {
this.contents.blt(bitmap, sx, sy, pw, ph, x, y, pw * scale, ph * scale);
};
// 制御文字を使えないフォーマットテキスト描画関数
Window_Base.prototype.drawStsFormatText = function (
fmt,
x,
y,
params,
width,
position
) {
var text = fmt.format(
params[0],
params[1],
params[2],
params[3],
params[4]
);
this.drawText(text, x, y, width - 4, position);
};
// 制御文字を使えないフォーマットテキスト描画関数
Window_Base.prototype.drawStsFormatText = function(fmt, x, y, params, width, position) {
var text = fmt.format(params[0], params[1], params[2], params[3], params[4]);
this.drawText(text, x, y, width, position);
};
// 制御文字を使えるフォーマットテキスト描画関数
Window_Base.prototype.drawFormatTextEx = function (fmt, x, y, params) {
var text = fmt.format(
params[0],
params[1],
params[2],
params[3],
params[4]
);
return this.drawTextExSkillTree(text, x, y);
};
// 制御文字を使えるフォーマットテキスト描画関数
Window_Base.prototype.drawFormatTextEx = function(fmt, x, y, params) {
var text = fmt.format(params[0], params[1], params[2], params[3], params[4]);
return this.drawTextExSkillTree(text, x, y);
};
/* 2023.01.28 added by nekoma */
Object.defineProperties(Window_Base, {