设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: jgwx0000
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
81
在线时间
65 小时
注册时间
2015-6-4
帖子
67
11
 楼主| 发表于 2016-3-23 14:16:54 | 只看该作者
jgwx0000 发表于 2016-3-23 14:11
为什么我左右对不齐呢。

JAVASCRIPT 代码复制
  1. Window_Status.prototype.drawUsertxt = function(x, y) {
  2.     var lineHeight = this.lineHeight();
  3.     this.changeTextColor(this.systemColor());
  4.         this.drawText("修为", x, y2, 160);
  5.       this.resetTextColor();
  6.         var xiuwei =$gameVariables.value(33)
  7.                 this.drawText(xiuwei, x + 160, y, 60, 'right');
  8.           this.changeTextColor(this.systemColor());
  9.          this.drawText("修为", x, y+lineHeight, 160);
  10.           this.changeTextColor(this.systemColor());
  11.           this.drawText("修为", x, y+2*lineHeight, 160);
  12.            this.changeTextColor(this.systemColor());
  13.           this.drawText("修为", x, y+3*lineHeight, 160);
  14.            this.changeTextColor(this.systemColor());
  15.           this.drawText("修为", x, y+4*lineHeight, 160);
  16.            this.changeTextColor(this.systemColor());
  17.           this.drawText("修为", x, y+5*lineHeight, 160);
  18.            this.changeTextColor(this.systemColor());
  19.           this.drawText("修为", x, y+6*lineHeight, 160);
  20.  
  21.  
  22. };

点评

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-21 08:54

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表