46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
"use strict";
|
|
cc._RF.push(module, 'eef431hfs5Bar1ptSquoUGR', 'cmp.ladder.record.wnd');
|
|
// Scripts/mod/pvp/ladder/cmp/cmp.ladder.record.wnd.js
|
|
|
|
"use strict";
|
|
|
|
var BridgeWindow = require("bridge.window");
|
|
var LadderEvent = require("ladder_event");
|
|
var FxSVC = require("nx.fx.sv.expand");
|
|
var LadderController = require("ladder_controller");
|
|
cc.Class({
|
|
"extends": BridgeWindow,
|
|
properties: {
|
|
nodRecords: {
|
|
"default": null,
|
|
type: FxSVC
|
|
},
|
|
nodEmpty: {
|
|
"default": null,
|
|
type: cc.Node
|
|
}
|
|
},
|
|
onLoad: function onLoad() {
|
|
this.bindGEvent(LadderEvent.UpdateLadderMyLogData, this.freshChallengeLog.bind(this));
|
|
// this.bindGEvent( ArenaEvent.UpdateLoopChallengeTimesList, this.freshSelf.bind(this) );
|
|
// this.bindGEvent( ArenaEvent.UpdateLoopChallengeTimesList, this.showNode.bind(this));
|
|
// this.bindGEvent( ArenaEvent.UpdateArena_Number, this.updateRankListInfo.bind(this));
|
|
},
|
|
onOpenConfigs: function onOpenConfigs(_params) {
|
|
var AC = LadderController.getInstance();
|
|
if (AC) {
|
|
AC.requestMyLogData();
|
|
}
|
|
},
|
|
// 重载:关闭前
|
|
onPreClosed: function onPreClosed() {
|
|
this.nodRecords.rebuild([]);
|
|
},
|
|
freshChallengeLog: function freshChallengeLog(_cdata) {
|
|
var records = _cdata.log_list;
|
|
this.nodRecords.rebuild(records);
|
|
nx.gui.setActive(this.nodEmpty, "", nx.dt.arrEmpty(records));
|
|
}
|
|
});
|
|
|
|
cc._RF.pop(); |