35 lines
941 B
JavaScript
35 lines
941 B
JavaScript
|
|
"use strict";
|
||
|
|
cc._RF.push(module, '003a4c9p3lNspr1fQIOBD+P', 'cmp.canpfight.push');
|
||
|
|
// Scripts/mod/pvp/campfight/cmp/cmp.canpfight.push.js
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
|
||
|
|
var FID = require("bridge.function.ids");
|
||
|
|
var CampfightMod = require("campfight.mod");
|
||
|
|
var BridgeWindow = require("bridge.window");
|
||
|
|
var BCT = require("battle_controller");
|
||
|
|
cc.Class({
|
||
|
|
"extends": BridgeWindow,
|
||
|
|
properties: {},
|
||
|
|
// LIFE-CYCLE CALLBACKS:
|
||
|
|
onLoad: function onLoad() {
|
||
|
|
this.mod = CampfightMod.getInstance();
|
||
|
|
},
|
||
|
|
onOpenConfigs: function onOpenConfigs(params) {
|
||
|
|
if (params) {
|
||
|
|
var status = params.status;
|
||
|
|
nx.gui.setActive(this, String(status), true);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onPreClosed: function onPreClosed() {},
|
||
|
|
touchJumnper: function touchJumnper() {
|
||
|
|
if (BCT.getInstance().getModel().isInRealBattle()) {
|
||
|
|
nx.tbox("battle_str18");
|
||
|
|
} else {
|
||
|
|
nx.bridge.jumper.jump2Window(FID.CampFitPvP);
|
||
|
|
}
|
||
|
|
this.delayClose();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
cc._RF.pop();
|