/****************************************************************** * * 技能学习图标 * ******************************************************************/ const SKBase = require( "cmp.skill.base" ); cc.Class( { extends: SKBase, properties: { }, // 重置 setData: function( _data, _lock = false ) { this.mdata = _data; if( !this.mdata ) { return; } // 获取技能信息 this.info = gskilldata( 'data_get_skill', _data.id ); this.locked = _lock || false; // 刷新 this.freshAll(); }, // 刷新 freshAll: function() { this._super(); // 两个标记 nx.gui.setActive( this, "mk_had", this.mdata.career_order != 1000 ); nx.gui.setActive( this, "mk_can", this.mdata.order_can == 1 ); }, } );