- 显示技能名称颜色
- 显示怪物名称颜色
main
xian18 1 year ago
parent 709bcb5135
commit 7041b32777
Signed by: SaltedFish
GPG Key ID: B0C26448E9EF40CA

@ -4734,7 +4734,7 @@ Window_Help.prototype.drawBattler = function (battler) {
var text = battler.name(); var text = battler.name();
var wx = 0; var wx = 0;
var wy = (this.contents.height - this.lineHeight()) / 2; 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) { Window_Help.prototype.drawSpecialSelectionText = function (action) {
@ -5210,7 +5210,7 @@ Window_EnemyVisualSelect.prototype.refresh = function () {
this.contents.fontSize = Yanfly.Param.BECEnemyFontSize; this.contents.fontSize = Yanfly.Param.BECEnemyFontSize;
var text = this._battler.name(); var text = this._battler.name();
var wy = this.contents.height - this.lineHeight(); var wy = this.contents.height - this.lineHeight();
this.drawText(text, 0, wy, this.contents.width, "center"); this.drawTextEx(text, 0, wy);
}; };
//============================================================================= //=============================================================================

@ -2134,7 +2134,7 @@ if (Imported.YEP_BattleEngineCore) {
var text = battler.name(); var text = battler.name();
var wx = 0; var wx = 0;
var wy = 0; var wy = 0;
this.drawText(text, wx, wy, this.contents.width, "center"); this.drawTextEx(text, wx, wy);
wy += this.lineHeight(); wy += this.lineHeight();
var ww = icons.length * Window_Base._iconWidth; var ww = icons.length * Window_Base._iconWidth;
ww = Math.min(ww, this.contents.width); ww = Math.min(ww, this.contents.width);

@ -608,7 +608,7 @@ Window_Base.prototype.drawItemName = function (item, x, y, width) {
var iconBoxWidth = Window_Base._iconWidth + 4; var iconBoxWidth = Window_Base._iconWidth + 4;
this.resetTextColor(); this.resetTextColor();
this.drawIcon(item.iconIndex, x + 2, y + 2); this.drawIcon(item.iconIndex, x + 2, y + 2);
this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth); this.drawTextEx(item.name, x + iconBoxWidth, y);
} }
}; };

Loading…
Cancel
Save