Commit 96b98936 authored by wildfirecode's avatar wildfirecode

1

parent 0de990b7
......@@ -26,7 +26,7 @@ export default class MapScene extends Scene {
super.start();
// setTimeout(() => {
// getShowOffPic(this.stage,this)
// PanelCtrl.instance.show('failed',{level:1})
// }, 2000);
this._data = data;
//滚动的背景变黑
......
......@@ -10,17 +10,17 @@ export default class FailedPanel extends Panel {
if (data)
this._level = parseInt(data.level + '');
NetManager.ins.hc_home(() => { }, window['collectRuleId']);
}
onTouchTap_closeBtn() {
super.onTouchTap_closeBtn();
this['againBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this.hidePanel();
if (this._level)
SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level });
else
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
}, this);
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'], this['againBtn']] }
protected get closeBtns(): eui.Button[] { return [this['closeBtn']] }
get skinKey() { return 'Fail' }
}
\ No newline at end of file
......@@ -22,7 +22,7 @@
"num": 0
}
],
"remainEnargy": 0,
"remainEnargy": 10,
"askForEnergy": false,
"canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 150
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment