Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) { var lineHeight = this.lineHeight(); var x2 = x + 180; var width2 = Math.min(200, width - 180 - this.textPadding()); this.drawActorName(actor, x, y); this.drawActorLevel(actor, x, y + lineHeight * 1); this.drawActorIcons(actor, x, y + lineHeight * 2); this.drawActorClass(actor, x2, y); this.drawActorHp(actor, x2, y + lineHeight * 1, width2); this.drawActorMp(actor, x2, y + lineHeight * 2, width2); };
Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
var lineHeight = this.lineHeight();
var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};
这个是菜单的 如果状态也需要的话再找我
打开工程文件的JS里面有一个rpg_windows.js你可以用记事本或者DW打开
然后找到这一串代码
如何修改 width2 这个是宽度 你可以修改基础值var width2 = Math.min(200, width - 180 - this.textPadding());
或则直接在 this.drawActorHp(actor, x2, y + lineHeight * 1, width2 * 2);基础值 X 2长度
虽然你HP显示条长度增加但是需要修改X2位置因为X2相当于显示起点
如果还有不会的可以加群问吧 727783732 密码5378938
|