|
@@ -175,16 +175,24 @@ export class scene_page extends Component {
|
|
|
item.getComponent(widget_base).showZhaoButongFinishStatus()
|
|
|
}
|
|
|
on_zhao_bu_tong_all_finish(data: zhao_xi_jie_data) {
|
|
|
- let widget_list = gameManager.getWidgetList(this.mData)
|
|
|
- for (let index = 0; index < widget_list.length; index++) {
|
|
|
- const widget_data = widget_list[index];
|
|
|
+ this.mWidgetList.forEach((n,k)=>{
|
|
|
+ const widget_data = n.getComponent(widget_base).getData()
|
|
|
if(widget_data.type == config.Widget_Type_List.CLICK_TYPE ||
|
|
|
widget_data.type == config.Widget_Type_List.SLIDE_TYPE ||
|
|
|
widget_data.type == config.Widget_Type_List.DRAG_TYPE) {
|
|
|
- let item = this.mWidgetList.get(widget_data.att.id)
|
|
|
- item.getComponent(widget_base).hideZhaoButongFinishStatus()
|
|
|
+ n.getComponent(widget_base).hideZhaoButongFinishStatus()
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
+ // 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 ||
|
|
|
+ // widget_data.type == config.Widget_Type_List.SLIDE_TYPE ||
|
|
|
+ // widget_data.type == config.Widget_Type_List.DRAG_TYPE) {
|
|
|
+ // let item = this.mWidgetList.get(widget_data.att.id)
|
|
|
+ // item.getComponent(widget_base).hideZhaoButongFinishStatus()
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
public initViewAtt(){
|
|
|
if(this.mData.is_full_screen){
|