哈哈哈哈哈,问了下大佬,再参考源码js,弄出了一个原始的表现。
大致是这种效果
说下步骤吧:
找到Window_Status;
照着其他条目编写:
Window_Status.prototype.drawxyz = function(x, y) { var lineHeight = this.lineHeight(); this.changeTextColor(this.systemColor()); this.drawText("名望", x, y + lineHeight * 0,160); this.drawText("艺术", x, y + lineHeight * 1,160); this.resetTextColor(); this.drawText($gameVariables.value(N), x + 160, y + lineHeight * 0, 60, 'right'); this.drawText($gameVariables.value(N2), x + 160, y + lineHeight * 1, 60, 'right'); };
Window_Status.prototype.drawxyz = function(x, y) {
var lineHeight = this.lineHeight();
this.changeTextColor(this.systemColor());
this.drawText("名望", x, y + lineHeight * 0,160);
this.drawText("艺术", x, y + lineHeight * 1,160);
this.resetTextColor();
this.drawText($gameVariables.value(N), x + 160, y + lineHeight * 0, 60, 'right');
this.drawText($gameVariables.value(N2), x + 160, y + lineHeight * 1, 60, 'right');
};
记得在Window_Status.prototype.drawBlock3这里把你修改的部分加上去,不然不会显示。我这里是把装备去掉了。
Window_Status.prototype.drawBlock3 = function(y) { this.drawParameters(48, y); this.drawxyz(432, y); };
Window_Status.prototype.drawBlock3 = function(y) {
this.drawParameters(48, y);
this.drawxyz(432, y);
};
这种方法非常原始,内容和数值完全靠硬写完成,对我来说还算够用,等技术提高了再改成变量式的显示好了哈哈哈哈。
希望可以帮到你。
|