26 lines
641 B
JavaScript
26 lines
641 B
JavaScript
|
|
"use strict";
|
||
|
|
cc._RF.push(module, '26f7fljCklIlbjKGJJG0I27', 'cmp.act.wreckagecol.reward');
|
||
|
|
// Scripts/mod/acts/wreckagecol/cmp/cmp.act.wreckagecol.reward.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 = "";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
cc._RF.pop();
|