33 lines
867 B
JavaScript
33 lines
867 B
JavaScript
"use strict";
|
|
cc._RF.push(module, '71bf5+pCxNFaLDeZooAXiKh', 'cmp.partner.holy.preview.item');
|
|
// Scripts/mod/partner/cmps/artifact/cmp.partner.holy.preview.item.js
|
|
|
|
"use strict";
|
|
|
|
var ItemBase = require("cmp.item.base");
|
|
cc.Class({
|
|
"extends": ItemBase,
|
|
properties: {},
|
|
// 单设:品质
|
|
setQuality: function setQuality(_qa) {
|
|
if (this.nodBG) {
|
|
var qa = null;
|
|
if (nx.dt.numPositive(_qa)) {
|
|
qa = cc.path.join("coms/images", "bg_qa" + _qa);
|
|
}
|
|
nx.gui.setSpriteFrame(this.nodBG, "", qa);
|
|
if (!qa) {
|
|
nx.gui.getComponent(this.nodBG, "", cc.Sprite).curKey = "";
|
|
}
|
|
}
|
|
|
|
// if ( this.nodName ) {
|
|
// let color = BackPackConst.quality_color( _qa );
|
|
// let cur = this.nodName.node.color;
|
|
// cur.fromHEX( color );
|
|
// this.nodName.node.color = cur;
|
|
// }
|
|
}
|
|
});
|
|
|
|
cc._RF.pop(); |