"use strict"; cc._RF.push(module, '280cf69sodENbs6QALkyNit', 'cmp.act.limitChallenge.rank'); // Scripts/mod/acts/limitChallenge/cmp/cmp.act.limitChallenge.rank.js "use strict"; var BridgeWindow = require("bridge.window"); var FxSVC = require("nx.fx.sv.expand"); cc.Class({ "extends": BridgeWindow, properties: { list: { "default": null, type: FxSVC }, ti: { "default": null, type: cc.Node } }, // LIFE-CYCLE CALLBACKS: onLoad: function onLoad() {}, onOpenConfigs: function onOpenConfigs(params) { if (!params) { this.delayClose(); return; } this.camp_id = params.camp_id; var cfgs = params.config; if (!cfgs) { this.delayClose(); return; } var info = cfgs.data_info[params.camp_id]; if (info) { if (info.type == 1) { nx.gui.setString(this.ti, "", nx.text.getKey("btn_buff_fight_number")); } else if (info.type == 2) { nx.gui.setString(this.ti, "", nx.text.getKey("btn_buff_savehp_number")); } } var list = []; for (var i in params.list) { var ob = {}; ob.info = params.list[i]; ob.cfg = cfgs; list.push(ob); } this.list.svcKey = this.camp_id; this.list.rebuild(list); }, onPreClosed: function onPreClosed() { this.list.rebuild([]); } // update (dt) {}, }); cc._RF.pop();