|
@@ -55,6 +55,7 @@ export class scene_page extends Component {
|
|
|
this.initViewAtt()
|
|
|
ClientEvent.on(config.EventRun.NOTICE_EVENT,this.widgetBeActive.bind(this),this)
|
|
|
ClientEvent.on(config.EventRun.SHOW_ZHAO_BU_TONG_FINISH_STATUS,this.on_zhao_bu_tong_finish.bind(this),this)
|
|
|
+ ClientEvent.on(config.EventRun.ON_ZHAO_BU_TONG_ALL_FINISH,this.on_zhao_bu_tong_all_finish.bind(this),this)
|
|
|
}
|
|
|
|
|
|
public checkFinish(widget_id:number):boolean{
|
|
@@ -78,6 +79,7 @@ export class scene_page extends Component {
|
|
|
this.mWidgetList.clear()
|
|
|
ClientEvent.off(config.EventRun.SHOW_ZHAO_BU_TONG_FINISH_STATUS,this.on_zhao_bu_tong_finish.bind(this),this)
|
|
|
ClientEvent.off(config.EventRun.NOTICE_EVENT,this.widgetBeActive.bind(this),this)
|
|
|
+ ClientEvent.off(config.EventRun.ON_ZHAO_BU_TONG_ALL_FINISH,this.on_zhao_bu_tong_all_finish.bind(this),this)
|
|
|
}
|
|
|
|
|
|
widgetBeActive(widgetId:number,event:event_item){
|
|
@@ -118,6 +120,18 @@ export class scene_page extends Component {
|
|
|
}
|
|
|
item.getComponent(widget_base).showZhaoButongFinishStatus()
|
|
|
}
|
|
|
+ on_zhao_bu_tong_all_finish() {
|
|
|
+ setTimeout(()=>{
|
|
|
+ let widget_list = gameManager.getWidgetList(this.mData)
|
|
|
+ for (let index = 0; index < widget_list.length; index++) {
|
|
|
+ const widget_data = widget_list[index];
|
|
|
+ if(widget_data.type == config.Widget_Type_List.CLICK_TYPE) {
|
|
|
+ let item = this.mWidgetList.get(widget_data.att.id)
|
|
|
+ item.getComponent(widget_base).hideZhaoButongFinishStatus()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },1500)
|
|
|
+ }
|
|
|
public initViewAtt(){
|
|
|
if(this.mData.is_full_screen){
|
|
|
|