Commit 68d22009 authored by wildfirecode's avatar wildfirecode

1

parents 8bcce330 bcfa6a2b
......@@ -60,7 +60,7 @@
<script src="libs/fileSave.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;"/>
<script>
window['hbRainTime'] = 10;
window['hbRainTime'] = 30;
window['plugs'] = [1, 2, 3]
// localStorage.clear();
window['isInvitePage'] = 0;
......
......@@ -21,5 +21,5 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Image id="ok_btn" y="717" source="hbCutTime_btn_enable_png" horizontalCenter="1"/>
<e:Image id="ok_btn" y="769" source="hbCutTime_btn_enable_png" horizontalCenter="1" anchorOffsetX="179" anchorOffsetY="52"/>
</e:Skin>
\ No newline at end of file
......@@ -91,11 +91,10 @@ export default class MapScene extends Scene {
async start(data?) {
super.start();
NetManager.ins.hc_submit(()=>{
const submitData = DataManager.ins.getData('hc_submit').data;
// PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:89, option: submitData.option })
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL,{ level:89, option: submitData.option })
},1,1,'','')
// NetManager.ins.hc_submit(()=>{
// const submitData = DataManager.ins.getData('hc_submit').data;
// PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
// },1,1,'','')
this['actIconsGroup'].x = -999;
this.addIcon(); // 添加Icon
......
......@@ -28,6 +28,8 @@ export default class HbCutTime extends Panel {
initUI() {
this.hbRainBaseInfo();
this.ok_btn.anchorOffsetX = 179;
this.ok_btn.anchorOffsetY = 52;
}
private hbRainBaseInfo() {
......@@ -48,6 +50,7 @@ export default class HbCutTime extends Panel {
time = data.currentSession.endTime - sysTime + 3000;
if(data.canJoin) {
this.ok_btn.source = 'hbCutTime_btn_enable_png';
this.btnEffect();
this.ok_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOK, this);
} else {
this.ok_btn.source = 'hbCutTime_btn_disable_png';
......@@ -74,6 +77,18 @@ export default class HbCutTime extends Panel {
}
}
private btnEffect() {
egret.Tween.get(this.ok_btn).to({scaleX: 0.9, scaleY: 1.1}, 200, egret.Ease.quadInOut).call(() => {
egret.Tween.get(this.ok_btn).to({scaleX: 1, scaleY: 1}, 200, egret.Ease.quadInOut).call(() => {
egret.Tween.get(this.ok_btn).to({scaleX: 0.9618, scaleY: 1.0618}, 200, egret.Ease.quadInOut).call(() => {
egret.Tween.get(this.ok_btn).to({scaleX: 1, scaleY: 1}, 200, egret.Ease.quadInOut).wait(1000).call(() => {
this.btnEffect();
})
});
})
});
}
destroy() {
if(this.cutTimer) {
this.cutTimer.stop();
......
......@@ -35,7 +35,7 @@ export default class RainMgr {
GDispatcher.addEvent('hbRainGameOver', this.gameOver, this);
this.timer = new egret.Timer(1400, 0);
this.timer = new egret.Timer(1200, 0);
this.timer.addEventListener(egret.TimerEvent.TIMER, this.addRain, this);
this.timer.start();
}
......
......@@ -27,6 +27,7 @@ export default class RainObj {
}
private start() {
this.module.alpha = 1;
this.module.touchEnabled = true;
this.module.source = `hbGame_${this.data.key}_png`;
this.module.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchTap, this);
......
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