Commit 04b776dc authored by zjz1994's avatar zjz1994

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole into dev

parents e1f2a46f b03a492e
......@@ -43,7 +43,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Label id="countdown" text="00:00:00" verticalAlign="middle" textAlign="center" size="20" fontFamily="FZY4JW" anchorOffsetX="0" width="87" anchorOffsetY="0" height="37" strokeColor="0x4365ac" stroke="2" verticalCenter="0.5" horizontalCenter="-84.25"/>
<e:Label id="countdown" text="00:00:00" verticalAlign="middle" textAlign="center" size="19" fontFamily="FZY4JW" anchorOffsetX="0" width="87" anchorOffsetY="0" height="37" strokeColor="0x4365ac" stroke="2" verticalCenter="0.5" horizontalCenter="-84.25"/>
</e:Group>
<e:Button id="shopBtn" label="" x="613.08" y="174.01" visible="false">
<e:skinName>
......
......@@ -1509,7 +1509,7 @@ export default class MainScene extends Scene {
this.eliminate();
break;
case PropType.CHANCE_NUM:
this.playAni(RecoverName.STEP_ANI, [50, 100]);
this.playAni(RecoverName.STEP_ANI, [120, 125]);
setTimeout(() => {
this.steps += 5;
}, 333)
......
......@@ -2,8 +2,9 @@ export default class CountDown extends egret.EventDispatcher {
_txt: eui.Label;
_timer: egret.Timer;
_func;
_addspace:boolean = false;
constructor(txt?,func?,addspace=false) {
_addspace: boolean = false;
constructor(txt?, func?, addspace = false) {
super();
this._txt = txt;
this._func = func;
......@@ -24,15 +25,15 @@ export default class CountDown extends egret.EventDispatcher {
updateTxt() {
if(!this._txt) return;
const left = this._timer.repeatCount - this._timer.currentCount;
const h = Math.floor( left / 3600);
const m = Math.floor ( (left % 3600) / 60 );
const h = Math.floor(left / 3600);
const m = Math.floor((left % 3600) / 60);
const s = left % 3600 % 60;
if(this._addspace){
if(this._addspace) {
this._txt.text = `${this.getNumber(h)} : ${this.getNumber(m)} : ${this.getNumber(s)}`;
}else{
} else {
this._txt.text = `${this.getNumber(h)}:${this.getNumber(m)}:${this.getNumber(s)}`;
}
if(this._func) {
this._txt.text = this._func(this._txt.text);
}
......@@ -50,8 +51,8 @@ export default class CountDown extends egret.EventDispatcher {
this._timer.stop();
this._timer.repeatCount = repeatCount;
this._timer.reset();
if(repeatCount > 0)
this._timer.start();
if(repeatCount > 0)
this._timer.start();
this.updateTxt();
}
}
\ No newline at end of file
......@@ -3029,8 +3029,9 @@
"num": 3
}
],
"remainEnargy": 99,
"remainEnargy": 10,
"askForEnergy": false,
"refectionCountdown": 77777,
"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