jgwx0000 发表于 2016-3-23 14:11
为什么我左右对不齐呢。
Window_Status.prototype.drawUsertxt = function(x, y) { var lineHeight = this.lineHeight(); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y2, 160); this.resetTextColor(); var xiuwei =$gameVariables.value(33) this.drawText(xiuwei, x + 160, y, 60, 'right'); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+lineHeight, 160); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+2*lineHeight, 160); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+3*lineHeight, 160); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+4*lineHeight, 160); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+5*lineHeight, 160); this.changeTextColor(this.systemColor()); this.drawText("修为", x, y+6*lineHeight, 160); };
Window_Status.prototype.drawUsertxt = function(x, y) {
var lineHeight = this.lineHeight();
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y2, 160);
this.resetTextColor();
var xiuwei =$gameVariables.value(33)
this.drawText(xiuwei, x + 160, y, 60, 'right');
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+lineHeight, 160);
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+2*lineHeight, 160);
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+3*lineHeight, 160);
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+4*lineHeight, 160);
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+5*lineHeight, 160);
this.changeTextColor(this.systemColor());
this.drawText("修为", x, y+6*lineHeight, 160);
};
|