Files
fc/dev/project/library/imports/71/71bf5fa9-0b13-4568-b0de-668a005e22a1.js
2026-05-24 10:21:26 +08:00

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();