楼主: jgwx0000

[已经解决] 什么插件能在角色状态栏 增加其他属性,比如杀戮值。

[复制链接]
梦石
0
星屑
81
在线时间
65 小时
注册时间
2015-6-4
回帖
54
 楼主| 发表于 2016-3-23 14:16:54 | 显示全部楼层
jgwx0000 发表于 2016-3-23 14:11
为什么我左右对不齐呢。

[pre lang="javascript" line="1"]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);
        
     
};[/pre]

点评

这种不对成是Y坐标的问题,通常需要不断调整的。  发表于 2016-3-23 21:07
很明显你需要调整y的值y+lineHeight你可以把每个对应的这条属性改成lineHeight - 某个值,  发表于 2016-3-23 21:00
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部