赞 | 14 |
VIP | 0 |
好人卡 | 4 |
积分 | 24 |
经验 | 30333 |
最后登录 | 2024-3-12 |
在线时间 | 912 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2392
- 在线时间
- 912 小时
- 注册时间
- 2014-10-14
- 帖子
- 1331

|
本帖最后由 j296196585 于 2020-2-14 20:38 编辑
//=====================机械王座============================================== 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'); }; //=============================================================================
//=====================机械王座==============================================
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');
};
//=============================================================================
if (this._actor._kaiguan){//条件变量 这个怎么打开 哥哥
this.drawText( + this._actor._bianliang +"%净化率", x + 850, y +130, 200, 'right'); //变量显示 这个怎么使用 哥哥
我自己的那个变量会用 哥哥你教我的那个变量不会用
|
|