53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
const BridgeWindow = require("bridge.window");
|
|
const ArenaEvent = require("arena_event");
|
|
const FxSVC = require("nx.fx.sv.expand");
|
|
const CrossChampionController = require( "crosschampion_controller" );
|
|
|
|
cc.Class({
|
|
|
|
extends: BridgeWindow,
|
|
|
|
properties: {
|
|
|
|
nodRecords: { default: null, type : FxSVC },
|
|
nodEmpty: { default: null, type : cc.Node }
|
|
},
|
|
|
|
onLoad: function () {
|
|
|
|
this.bindGEvent( ArenaEvent.UpdateMylogListEvent, 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( _params ) {
|
|
|
|
let CC = CrossChampionController.getInstance();
|
|
if( CC ){
|
|
CC.sender26205();
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 重载:关闭前
|
|
onPreClosed: function () {
|
|
|
|
this.nodRecords.rebuild( [] );
|
|
|
|
},
|
|
|
|
freshChallengeLog: function( _cdata ){
|
|
|
|
let records = _cdata;
|
|
this.nodRecords.rebuild( records );
|
|
nx.gui.setActive( this.nodEmpty, "", nx.dt.arrEmpty( records ) );
|
|
|
|
}
|
|
|
|
});
|
|
|