|
@@ -154,8 +154,8 @@ export class ui_layer extends Component {
|
|
}else if(event.type===config.event_type.stop_active_event){
|
|
}else if(event.type===config.event_type.stop_active_event){
|
|
let time_count = this.mCountDownLlist.get(widgetId)
|
|
let time_count = this.mCountDownLlist.get(widgetId)
|
|
if(time_count!=null){
|
|
if(time_count!=null){
|
|
- if(this.mAttCountDown==null){
|
|
|
|
- this.createCountDown(time_count)
|
|
|
|
|
|
+ if(this.mAttCountDown!=null){
|
|
|
|
+ this.stopCountDown()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else if(event.type===config.event_type.hide){
|
|
}else if(event.type===config.event_type.hide){
|
|
@@ -221,6 +221,13 @@ export class ui_layer extends Component {
|
|
ClientEvent.off(config.EventRun.ON_WIDGET_FINISH_COLLECT_EVENT,this.onCountDownListening.bind(this),this)
|
|
ClientEvent.off(config.EventRun.ON_WIDGET_FINISH_COLLECT_EVENT,this.onCountDownListening.bind(this),this)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ stopCountDown() {
|
|
|
|
+ this.mAttCountDown.stopCountDown()
|
|
|
|
+ this.mAttCountDown.node.removeFromParent()
|
|
|
|
+ this.mAttCountDown = null;
|
|
|
|
+ ClientEvent.off(config.EventRun.ON_WIDGET_FINISH_COLLECT_EVENT,this.onCountDownListening.bind(this),this)
|
|
|
|
+ }
|
|
|
|
+
|
|
initTaskUi(data:task_data){
|
|
initTaskUi(data:task_data){
|
|
this.ui_manifestations.active = false;
|
|
this.ui_manifestations.active = false;
|
|
this.content_rule_and_tips.active = false;
|
|
this.content_rule_and_tips.active = false;
|