34 lines
816 B
JavaScript
34 lines
816 B
JavaScript
|
|
"use strict";
|
||
|
|
cc._RF.push(module, '23f00Gi5t9DrLx13jzJjzmH', 'cmp.endless.ui.award');
|
||
|
|
// Scripts/mod/pve/endless_trail/cmp/cmp.endless.ui.award.js
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
|
||
|
|
var BridgeComp = require("bridge.component");
|
||
|
|
var NxExpand = require("nx.fx.sv.expand");
|
||
|
|
cc.Class({
|
||
|
|
"extends": BridgeComp,
|
||
|
|
properties: {
|
||
|
|
award_list: {
|
||
|
|
"default": null,
|
||
|
|
type: NxExpand
|
||
|
|
}
|
||
|
|
},
|
||
|
|
// LIFE-CYCLE CALLBACKS:
|
||
|
|
onLoad: function onLoad() {
|
||
|
|
this._super();
|
||
|
|
},
|
||
|
|
start: function start() {},
|
||
|
|
onEnable: function onEnable() {
|
||
|
|
this.updateList();
|
||
|
|
},
|
||
|
|
onDisable: function onDisable() {
|
||
|
|
this.award_list.rebuild([]);
|
||
|
|
},
|
||
|
|
updateList: function updateList() {
|
||
|
|
var awards_data = game.configs.endless_data.data_rank_reward_data;
|
||
|
|
this.award_list.rebuild(awards_data);
|
||
|
|
} // update (dt) {},
|
||
|
|
});
|
||
|
|
|
||
|
|
cc._RF.pop();
|