Commit bcfa6a2b authored by 邱旭's avatar 邱旭

1

parent 882cfb9c
...@@ -21,5 +21,5 @@ ...@@ -21,5 +21,5 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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> </e:Skin>
\ No newline at end of file
...@@ -91,10 +91,10 @@ export default class MapScene extends Scene { ...@@ -91,10 +91,10 @@ export default class MapScene extends Scene {
async start(data?) { async start(data?) {
super.start(); super.start();
NetManager.ins.hc_submit(()=>{ // NetManager.ins.hc_submit(()=>{
const submitData = DataManager.ins.getData('hc_submit').data; // const submitData = DataManager.ins.getData('hc_submit').data;
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option }) // PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
},1,1,'','') // },1,1,'','')
this['actIconsGroup'].x = -999; this['actIconsGroup'].x = -999;
this.addIcon(); // 添加Icon this.addIcon(); // 添加Icon
......
...@@ -28,6 +28,8 @@ export default class HbCutTime extends Panel { ...@@ -28,6 +28,8 @@ export default class HbCutTime extends Panel {
initUI() { initUI() {
this.hbRainBaseInfo(); this.hbRainBaseInfo();
this.ok_btn.anchorOffsetX = 179;
this.ok_btn.anchorOffsetY = 52;
} }
private hbRainBaseInfo() { private hbRainBaseInfo() {
...@@ -48,6 +50,7 @@ export default class HbCutTime extends Panel { ...@@ -48,6 +50,7 @@ export default class HbCutTime extends Panel {
time = data.currentSession.endTime - sysTime + 3000; time = data.currentSession.endTime - sysTime + 3000;
if(data.canJoin) { if(data.canJoin) {
this.ok_btn.source = 'hbCutTime_btn_enable_png'; this.ok_btn.source = 'hbCutTime_btn_enable_png';
this.btnEffect();
this.ok_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOK, this); this.ok_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOK, this);
} else { } else {
this.ok_btn.source = 'hbCutTime_btn_disable_png'; this.ok_btn.source = 'hbCutTime_btn_disable_png';
...@@ -74,6 +77,18 @@ export default class HbCutTime extends Panel { ...@@ -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() { destroy() {
if(this.cutTimer) { if(this.cutTimer) {
this.cutTimer.stop(); this.cutTimer.stop();
......
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