From 7041b327774d16b3ef0a3206a36ccae9fa53f190 Mon Sep 17 00:00:00 2001 From: xian18 <44394537+xian18@users.noreply.github.com> Date: Mon, 13 Nov 2023 00:30:30 +0800 Subject: [PATCH] Fix #37 Part MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 显示技能名称颜色 - 显示怪物名称颜色 --- js/plugins/YEP_BattleEngineCore.js | 4 ++-- js/plugins/YEP_BuffsStatesCore.js | 2 +- js/rpg_windows.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/plugins/YEP_BattleEngineCore.js b/js/plugins/YEP_BattleEngineCore.js index f4d028f..4d8e63d 100755 --- a/js/plugins/YEP_BattleEngineCore.js +++ b/js/plugins/YEP_BattleEngineCore.js @@ -4734,7 +4734,7 @@ Window_Help.prototype.drawBattler = function (battler) { var text = battler.name(); var wx = 0; var wy = (this.contents.height - this.lineHeight()) / 2; - this.drawText(text, wx, wy, this.contents.width, "center"); + this.drawTextEx(text, wx, wy); }; Window_Help.prototype.drawSpecialSelectionText = function (action) { @@ -5210,7 +5210,7 @@ Window_EnemyVisualSelect.prototype.refresh = function () { this.contents.fontSize = Yanfly.Param.BECEnemyFontSize; var text = this._battler.name(); var wy = this.contents.height - this.lineHeight(); - this.drawText(text, 0, wy, this.contents.width, "center"); + this.drawTextEx(text, 0, wy); }; //============================================================================= diff --git a/js/plugins/YEP_BuffsStatesCore.js b/js/plugins/YEP_BuffsStatesCore.js index 187f760..300f1ee 100644 --- a/js/plugins/YEP_BuffsStatesCore.js +++ b/js/plugins/YEP_BuffsStatesCore.js @@ -2134,7 +2134,7 @@ if (Imported.YEP_BattleEngineCore) { var text = battler.name(); var wx = 0; var wy = 0; - this.drawText(text, wx, wy, this.contents.width, "center"); + this.drawTextEx(text, wx, wy); wy += this.lineHeight(); var ww = icons.length * Window_Base._iconWidth; ww = Math.min(ww, this.contents.width); diff --git a/js/rpg_windows.js b/js/rpg_windows.js index fb9d5bf..192f689 100644 --- a/js/rpg_windows.js +++ b/js/rpg_windows.js @@ -608,7 +608,7 @@ Window_Base.prototype.drawItemName = function (item, x, y, width) { var iconBoxWidth = Window_Base._iconWidth + 4; this.resetTextColor(); this.drawIcon(item.iconIndex, x + 2, y + 2); - this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth); + this.drawTextEx(item.name, x + iconBoxWidth, y); } };