| 赞 | 14 |
| VIP | |
| 好人卡 | |
| 积分 | 25 |
| 经验 | |
| 最后登录 | 2024-3-12 |
| 在线时间 | 912 小时 |
- 梦石
- 0
- 星屑
- 2457
- 在线时间
- 912 小时
- 注册时间
- 2014-10-14
- 回帖
- 1155

|
楼主 |
发表于 2020-2-14 20:36:05
|
显示全部楼层
本帖最后由 j296196585 于 2020-2-14 20:38 编辑
[pre lang="javascript"]//=====================机械王座==============================================
if (this._actor._kaiguan){//条件变量
// this.drawIcon( 3, x + 350, y, 60, 'right');//图标显示
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("机械王座:", x + 800, y +130, 100, 'right');//文字显示
this.changeTextColor('rgba(255,0,0,255)');
this.drawText( + this._actor._bianliang +"%净化率", x + 850, y +130, 200, 'right'); //变量显示
} else{
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("机械王座:", x + 800, y +130, 100, 'right');
// this.drawText("之塔:", x + 680, y -20, 100, 'right');
this.changeTextColor('rgba(255,0,0,255)');
this.drawText("关闭", x + 850, y +130, 100, 'right');
};
//=============================================================================[/pre]
if (this._actor._kaiguan){//条件变量 这个怎么打开 哥哥
this.drawText( + this._actor._bianliang +"%净化率", x + 850, y +130, 200, 'right'); //变量显示 这个怎么使用 哥哥
我自己的那个变量会用 哥哥你教我的那个变量不会用
|
-
|