xx 1 year ago
parent
commit
ee4cc16c9b
37 changed files with 9401 additions and 799 deletions
  1. 18 1
      assets/data/data.ts
  2. 422 425
      assets/edit_game.scene
  3. 4261 236
      assets/resources/prefab/edit_event.prefab
  4. 83 107
      assets/resources/prefab/run/UiWidget/boss_info.prefab
  5. 1257 0
      assets/resources/prefab/task/other_widget_finish_item.prefab
  6. 13 0
      assets/resources/prefab/task/other_widget_finish_item.prefab.meta
  7. 10 10
      assets/resources/prefab/task/select_task_da_guai.prefab
  8. 2680 0
      assets/resources/prefab/ui/edit_event_view.prefab
  9. 13 0
      assets/resources/prefab/ui/edit_event_view.prefab.meta
  10. 4 0
      assets/script/config.ts
  11. 3 0
      assets/script/edit/animation/new_frame.ts
  12. 40 1
      assets/script/edit/attributes/attributes_drop.ts
  13. 13 1
      assets/script/edit/attributes/attributes_text_sound.ts
  14. 70 0
      assets/script/edit/attributes/other_widget_finish_item.ts
  15. 9 0
      assets/script/edit/attributes/other_widget_finish_item.ts.meta
  16. 4 0
      assets/script/edit/edit_scene.ts
  17. 14 1
      assets/script/edit/event/edit_event.ts
  18. 103 0
      assets/script/edit/event/edit_event_view.ts
  19. 9 0
      assets/script/edit/event/edit_event_view.ts.meta
  20. 34 0
      assets/script/edit/event/edit_event_view_select_btn.ts
  21. 9 0
      assets/script/edit/event/edit_event_view_select_btn.ts.meta
  22. 72 0
      assets/script/edit/event/event_delete_drag_other_data_view.ts
  23. 9 0
      assets/script/edit/event/event_delete_drag_other_data_view.ts.meta
  24. 23 1
      assets/script/edit/event/event_play_sound.ts
  25. 31 0
      assets/script/edit/event/event_stop_play_loop_sound.ts
  26. 9 0
      assets/script/edit/event/event_stop_play_loop_sound.ts.meta
  27. 14 1
      assets/script/edit/task/scene_task.ts
  28. 18 0
      assets/script/run/TaskSchedule/taskServce.ts
  29. 18 3
      assets/script/run/gameManager.ts
  30. 4 0
      assets/script/run/game_run.ts
  31. 46 3
      assets/script/run/scene_layer.ts
  32. 18 0
      assets/script/run/scene_page.ts
  33. 11 3
      assets/script/run/ui/sound_text_content.ts
  34. 5 0
      assets/script/run/ui/win.ts
  35. 1 1
      assets/script/run/widget/widget_base.ts
  36. 44 5
      assets/script/run/widget/widget_drag.ts
  37. 9 0
      assets/script/tools.ts

+ 18 - 1
assets/data/data.ts

@@ -76,6 +76,12 @@ export class att_drag_data{
     public other_event_id:number = -1; //其他拖拽的完成事件
     public is_err_drag_back:boolean = true; //拖拽错误是否回归原位
     public other_drag_list:att_drag_data[] = [];
+    public other_widget_finish_listen_list:other_widget_finish_listen_item[] = [];
+}
+
+export class other_widget_finish_listen_item{
+    public event_id:number = -1;
+    public widget_id:number = -1;
 }
 
 export class att_slide_data{
@@ -94,6 +100,7 @@ export class att_text_sound_data{
     public sound_data:bag_item_data = null;
     public text:string = '';
     public pos_y:number = 0;
+    public is_open_click_close:boolean = true;
 }
 
 export class scene_tips_rule_data{
@@ -363,7 +370,8 @@ export class event_item{
 
     public event_item_show_scene_title_data:event_item_show_scene_title = null; //场景标签
     public event_item_scene_ani:event_item_scene_ani = null; //场景动画
-
+    public event_item_delete_drag_other_data:event_item_delete_drag_other = null; //删除其他拖拽的目标
+    public event_item_stop_play_loop_sound_data:event_item_stop_play_loop_sound = null; //停止播放一个音效资源
 }
 export class base_event_item{
 
@@ -380,9 +388,18 @@ export class event_item_show_scene_title {
 export class event_item_scene_ani {
     public ani_id:number = -1;
 }
+export class event_item_stop_play_loop_sound{
+    public res:string = "";
+}
+export class event_item_delete_drag_other {
+    public widget_id:number = -1;
+    public delete_drag_other_index:number = -1;
+}
 
 export class event_item_play_sound { //播放一个音效
     public sound_res:bag_item_data =  new bag_item_data;
+    public isLoop:boolean = false;
+    public volume:number = 1; //音量
 }
 
 export class event_item_success { //成功

File diff suppressed because it is too large
+ 422 - 425
assets/edit_game.scene


File diff suppressed because it is too large
+ 4261 - 236
assets/resources/prefab/edit_event.prefab


+ 83 - 107
assets/resources/prefab/run/UiWidget/boss_info.prefab

@@ -22,20 +22,23 @@
         "__id__": 2
       },
       {
-        "__id__": 10
+        "__id__": 8
       },
       {
-        "__id__": 36
+        "__id__": 34
       },
       {
-        "__id__": 44
+        "__id__": 42
       },
       {
-        "__id__": 50
+        "__id__": 48
       }
     ],
     "_active": true,
     "_components": [
+      {
+        "__id__": 54
+      },
       {
         "__id__": 56
       },
@@ -44,13 +47,10 @@
       },
       {
         "__id__": 60
-      },
-      {
-        "__id__": 62
       }
     ],
     "_prefab": {
-      "__id__": 64
+      "__id__": 62
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -97,13 +97,10 @@
       },
       {
         "__id__": 5
-      },
-      {
-        "__id__": 7
       }
     ],
     "_prefab": {
-      "__id__": 9
+      "__id__": 7
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -184,10 +181,7 @@
       "b": 255,
       "a": 255
     },
-    "_spriteFrame": {
-      "__uuid__": "e22570ce-5553-4526-897a-8dafc317e577@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
+    "_spriteFrame": null,
     "_type": 0,
     "_fillType": 0,
     "_sizeMode": 0,
@@ -207,24 +201,6 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "49LKy67jdEg4O1TlbKuUMv"
   },
-  {
-    "__type__": "ec81fyAgaJMXIMeO+kYybju",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 8
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "4bbgHeVuRJd5NeCWB7iifb"
-  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -248,14 +224,17 @@
     },
     "_children": [
       {
-        "__id__": 11
+        "__id__": 9
       },
       {
-        "__id__": 19
+        "__id__": 17
       }
     ],
     "_active": true,
     "_components": [
+      {
+        "__id__": 25
+      },
       {
         "__id__": 27
       },
@@ -264,13 +243,10 @@
       },
       {
         "__id__": 31
-      },
-      {
-        "__id__": 33
       }
     ],
     "_prefab": {
-      "__id__": 35
+      "__id__": 33
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -307,23 +283,23 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 10
+      "__id__": 8
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 12
+        "__id__": 10
       },
       {
-        "__id__": 14
+        "__id__": 12
       },
       {
-        "__id__": 16
+        "__id__": 14
       }
     ],
     "_prefab": {
-      "__id__": 18
+      "__id__": 16
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -360,11 +336,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 13
+      "__id__": 11
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -388,11 +364,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 15
+      "__id__": 13
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -433,11 +409,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 11
+      "__id__": 9
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 17
+      "__id__": 15
     },
     "_id": ""
   },
@@ -464,23 +440,23 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 10
+      "__id__": 8
     },
     "_children": [],
     "_active": false,
     "_components": [
       {
-        "__id__": 20
+        "__id__": 18
       },
       {
-        "__id__": 22
+        "__id__": 20
       },
       {
-        "__id__": 24
+        "__id__": 22
       }
     ],
     "_prefab": {
-      "__id__": 26
+      "__id__": 24
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -517,11 +493,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 19
+      "__id__": 17
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 21
+      "__id__": 19
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -545,11 +521,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 19
+      "__id__": 17
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 23
+      "__id__": 21
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -590,11 +566,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 19
+      "__id__": 17
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 25
+      "__id__": 23
     },
     "_color": {
       "__type__": "cc.Color",
@@ -629,11 +605,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 10
+      "__id__": 8
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 28
+      "__id__": 26
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -657,11 +633,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 10
+      "__id__": 8
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 30
+      "__id__": 28
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -702,14 +678,14 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 10
+      "__id__": 8
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 32
+      "__id__": 30
     },
     "_barSprite": {
-      "__id__": 14
+      "__id__": 12
     },
     "_mode": 0,
     "_totalLength": 600,
@@ -727,11 +703,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 10
+      "__id__": 8
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 34
+      "__id__": 32
     },
     "_id": ""
   },
@@ -764,17 +740,17 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 37
+        "__id__": 35
       },
       {
-        "__id__": 39
+        "__id__": 37
       },
       {
-        "__id__": 41
+        "__id__": 39
       }
     ],
     "_prefab": {
-      "__id__": 43
+      "__id__": 41
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -811,11 +787,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 36
+      "__id__": 34
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 38
+      "__id__": 36
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -839,11 +815,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 36
+      "__id__": 34
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 40
+      "__id__": 38
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -884,11 +860,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 36
+      "__id__": 34
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 42
+      "__id__": 40
     },
     "_id": ""
   },
@@ -921,14 +897,14 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 45
+        "__id__": 43
       },
       {
-        "__id__": 47
+        "__id__": 45
       }
     ],
     "_prefab": {
-      "__id__": 49
+      "__id__": 47
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -965,11 +941,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 44
+      "__id__": 42
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 46
+      "__id__": 44
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -993,11 +969,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 44
+      "__id__": 42
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 48
+      "__id__": 46
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1057,14 +1033,14 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 51
+        "__id__": 49
       },
       {
-        "__id__": 53
+        "__id__": 51
       }
     ],
     "_prefab": {
-      "__id__": 55
+      "__id__": 53
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1101,11 +1077,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 50
+      "__id__": 48
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 52
+      "__id__": 50
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1129,11 +1105,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 50
+      "__id__": 48
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 54
+      "__id__": 52
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1191,12 +1167,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 57
+      "__id__": 55
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1920,
-      "height": 1080
+      "width": 1919.9999999999998,
+      "height": 1919.9999999999998
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1219,7 +1195,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 59
+      "__id__": 57
     },
     "_alignFlags": 45,
     "_target": null,
@@ -1255,7 +1231,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 61
+      "__id__": 59
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1297,28 +1273,28 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 63
+      "__id__": 61
     },
     "btn_close": {
-      "__id__": 44
+      "__id__": 42
     },
     "btn_jump": {
-      "__id__": 50
+      "__id__": 48
     },
     "bg": {
       "__id__": 2
     },
     "bg_bar": {
-      "__id__": 10
+      "__id__": 8
     },
     "bar": {
-      "__id__": 11
+      "__id__": 9
     },
     "head": {
-      "__id__": 36
+      "__id__": 34
     },
     "hp_ani": {
-      "__id__": 19
+      "__id__": 17
     },
     "_id": ""
   },

+ 1257 - 0
assets/resources/prefab/task/other_widget_finish_item.prefab

@@ -0,0 +1,1257 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "other_widget_finish_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "other_widget_finish_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 8
+      },
+      {
+        "__id__": 28
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 48
+      },
+      {
+        "__id__": 50
+      }
+    ],
+    "_prefab": {
+      "__id__": 52
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_close",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      }
+    ],
+    "_prefab": {
+      "__id__": 7
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -2.767,
+      "y": -117.03,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 50,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c8V+7poS5HgI3jq/q9/Tmi"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "64c1f2bf-dc82-4530-bd30-7879d5a3e03e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e4AadIjHlG35IUPRpZCapc"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "49yiEC7N1JrLtbsDIQtXKl",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_not_finish_event",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 9
+      },
+      {
+        "__id__": 15
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 21
+      },
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 25
+      }
+    ],
+    "_prefab": {
+      "__id__": 27
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 83.974,
+      "y": -41.304,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 512,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 8
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 10
+      },
+      {
+        "__id__": 12
+      }
+    ],
+    "_prefab": {
+      "__id__": 14
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -200.233,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 9
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 11
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "21x2GA9J5DuZ8q7fMwDUDw"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 9
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 13
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "监听未完成调用的事件",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "68xiuLPrhM6ZllxEG8PBgv"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a8cD+w2LNNr4zIZ6dAi5Ti",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label-001",
+    "_objFlags": 512,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 8
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 16
+      },
+      {
+        "__id__": 18
+      }
+    ],
+    "_prefab": {
+      "__id__": 20
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 6.459,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 15
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 17
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 20,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "15jChr1nRIRYLvshsNjm3U"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 15
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 19
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "无",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a7aM7h799DAKSBYZUTwJL0"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "78BW1546VNJI+YQ0B/Ayw6",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 22
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "04y6Lp0bpJTqUSGop9DZqI"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 24
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "feW/yK5qROlK9BvjDnNosE"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 8
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 26
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_hoverSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_pressedSprite": {
+      "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_disabledSprite": {
+      "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_duration": 0.1,
+    "_zoomScale": 1.2,
+    "_target": {
+      "__id__": 8
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "ffUTmy8KNN4Z3wippgNU0M"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c4VtTiob1Pvof1+hS4jKLW",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_select_widget",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 29
+      },
+      {
+        "__id__": 35
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 41
+      },
+      {
+        "__id__": 43
+      },
+      {
+        "__id__": 45
+      }
+    ],
+    "_prefab": {
+      "__id__": 47
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 83.974,
+      "y": 57.913,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 512,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 28
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 30
+      },
+      {
+        "__id__": 32
+      }
+    ],
+    "_prefab": {
+      "__id__": 34
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -200.233,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 29
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 31
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 80,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "4d7aXBnDBFF4wlk7lEdSdg"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 29
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 33
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "选择控件",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d0tLKGwJ1CPb/RFRYGx/Me"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "45IGo+s3REDJEt7XidM8er",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label-001",
+    "_objFlags": 512,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 28
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 36
+      },
+      {
+        "__id__": 38
+      }
+    ],
+    "_prefab": {
+      "__id__": 40
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 6.459,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 37
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 20,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "39i7+44axAtoSjB1NhQyvV"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 39
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "无",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7dRGimORtAw4STmCbGfpGj"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "566enInDBMSLmqmrRuHBQ0",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 42
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 200,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "caiW/+NPVI1LFomsF8ChxD"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 44
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "baCWLKWq9Jf7RFMh9RE+Hc"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 28
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 46
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_hoverSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_pressedSprite": {
+      "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_disabledSprite": {
+      "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_duration": 0.1,
+    "_zoomScale": 1.2,
+    "_target": {
+      "__id__": 28
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a5EdFpv9xBppWO4L4LoOyW"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "39Qc5Vlk5Cl6tjQvxglYuE",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 49
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 420,
+      "height": 300
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "93aluRbAVPbZdgzcrnYeK2"
+  },
+  {
+    "__type__": "bfcf4k3SptP4pqB6s3N1Tva",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 51
+    },
+    "btn_not_finish_event": {
+      "__id__": 8
+    },
+    "lab_not_finish_event": {
+      "__id__": 15
+    },
+    "btn_select_widget": {
+      "__id__": 28
+    },
+    "lab_select_widget": {
+      "__id__": 35
+    },
+    "btn_delete": {
+      "__id__": 2
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a7c8dFASVOULdcboVv8JqI"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "1c5li0i4ZC240TExUNkMpy",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/prefab/task/other_widget_finish_item.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.49",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "ea81d269-68d2-4fe1-afd7-a1004c77cb71",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "other_widget_finish_item"
+  }
+}

+ 10 - 10
assets/resources/prefab/task/select_task_da_guai.prefab

@@ -139,8 +139,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 3840,
-      "height": 2160
+      "width": 3839.9999999999995,
+      "height": 3839.9999999999995
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1004,8 +1004,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 10,
-      "height": 200
+      "width": 2200,
+      "height": 0
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -1030,10 +1030,10 @@
     "__prefab": {
       "__id__": 43
     },
-    "_alignFlags": 40,
+    "_alignFlags": 0,
     "_target": null,
-    "_left": 1245,
-    "_right": 1245,
+    "_left": 1140,
+    "_right": 1140,
     "_top": 0,
     "_bottom": 0,
     "_horizontalCenter": 0,
@@ -1073,7 +1073,7 @@
       "width": 40,
       "height": 40
     },
-    "_startAxis": 1,
+    "_startAxis": 0,
     "_paddingLeft": 10,
     "_paddingRight": 0,
     "_paddingTop": 0,
@@ -1850,8 +1850,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 3840,
-      "height": 2160
+      "width": 3839.9999999999995,
+      "height": 3839.9999999999995
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 2680 - 0
assets/resources/prefab/ui/edit_event_view.prefab

@@ -0,0 +1,2680 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "edit_event_view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "edit_event_view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 10
+      },
+      {
+        "__id__": 88
+      },
+      {
+        "__id__": 96
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 114
+      },
+      {
+        "__id__": 116
+      },
+      {
+        "__id__": 118
+      },
+      {
+        "__id__": 120
+      }
+    ],
+    "_prefab": {
+      "__id__": 122
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Sprite",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1919.9999999999998,
+      "height": 1919.9999999999998
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7aCiHjPDhAuo5Nx4hTAdKF"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 173
+    },
+    "_spriteFrame": {
+      "__uuid__": "bd1bcaba-bd7d-4a71-b143-997c882383e4@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "73dZ3p4xFEhqgVH6bt5HNg"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 8
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 40,
+    "_originalHeight": 36,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d9kWsU1HtA54fyj1pdMH8h"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "dbr3RJoNpAmo6BZ0VF7wz/",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bg",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 35
+      },
+      {
+        "__id__": 77
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 83
+      },
+      {
+        "__id__": 85
+      }
+    ],
+    "_prefab": {
+      "__id__": 87
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "select_type",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 12
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 28
+      },
+      {
+        "__id__": 30
+      },
+      {
+        "__id__": 32
+      }
+    ],
+    "_prefab": {
+      "__id__": 34
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 14.217,
+      "y": 300.863,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 11
+    },
+    "_children": [
+      {
+        "__id__": 13
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 19
+      },
+      {
+        "__id__": 21
+      },
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 25
+      }
+    ],
+    "_prefab": {
+      "__id__": 27
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -900,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "type_content",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 14
+      },
+      {
+        "__id__": 16
+      }
+    ],
+    "_prefab": {
+      "__id__": 18
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 13
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 15
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8772ncQCRBBpDUuOoC8z3p"
+  },
+  {
+    "__type__": "cc.Layout",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 13
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 17
+    },
+    "_resizeMode": 1,
+    "_layoutType": 1,
+    "_cellSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 40
+    },
+    "_startAxis": 0,
+    "_paddingLeft": 20,
+    "_paddingRight": 0,
+    "_paddingTop": 0,
+    "_paddingBottom": 0,
+    "_spacingX": 20,
+    "_spacingY": 0,
+    "_verticalDirection": 1,
+    "_horizontalDirection": 0,
+    "_constraint": 0,
+    "_constraintNum": 2,
+    "_affectedByScale": false,
+    "_isAlign": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "67P+71uRBEAbeCiCyoD3lW"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "e84ZdBqRhLrIg1Q039Qv5C",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 20
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1800,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "713C4ZGglAPLl3SrffP0Yv"
+  },
+  {
+    "__type__": "cc.Mask",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 22
+    },
+    "_type": 0,
+    "_inverted": false,
+    "_segments": 64,
+    "_alphaThreshold": 0.1,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "1eVQ5wb8BLm4Lnw6PpTTH8"
+  },
+  {
+    "__type__": "cc.Graphics",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 24
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_lineWidth": 1,
+    "_strokeColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_lineJoin": 2,
+    "_lineCap": 0,
+    "_fillColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 0
+    },
+    "_miterLimit": 10,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "83q+H4qiRCbahnzMolyZ4D"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 26
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 240,
+    "_originalHeight": 250,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "04s+QiTFhMSbYqWhUdr5qP"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "74cTucTl1J3qBlZsaUugdm",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 29
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1800,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c7mzhp3F1KpZJwW2ez75vM"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 31
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "b730527c-3233-41c2-aaf7-7cdab58f9749@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c2URGdUgRO3pWr14EKG9DH"
+  },
+  {
+    "__type__": "cc.ScrollView",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 33
+    },
+    "bounceDuration": 0.23,
+    "brake": 0.75,
+    "elastic": false,
+    "inertia": false,
+    "horizontal": true,
+    "vertical": false,
+    "cancelInnerEvents": true,
+    "scrollEvents": [],
+    "_content": {
+      "__id__": 13
+    },
+    "_horizontalScrollBar": null,
+    "_verticalScrollBar": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "350GJjPTtIu7NVA6sXheUf"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "8ejwAeX71J2JM0XDBW9Gig",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "ScrollView",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 36
+      },
+      {
+        "__id__": 54
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 72
+      },
+      {
+        "__id__": 74
+      },
+      {
+        "__id__": 51
+      }
+    ],
+    "_prefab": {
+      "__id__": 76
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -104.096,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "scrollBar",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 35
+    },
+    "_children": [
+      {
+        "__id__": 37
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 43
+      },
+      {
+        "__id__": 45
+      },
+      {
+        "__id__": 47
+      },
+      {
+        "__id__": 49
+      }
+    ],
+    "_prefab": {
+      "__id__": 71
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 900,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bar",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 36
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 38
+      },
+      {
+        "__id__": 40
+      }
+    ],
+    "_prefab": {
+      "__id__": 42
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -11,
+      "y": -31.25,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 39
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 10,
+      "height": 156.25
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "78SKuN1IFAMImQ1hSx/wSR"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 37
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 41
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "afc47931-f066-46b0-90be-9fe61f213428@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "51ftgeE4BLy7DF6n270o0e"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "1dwVQlB6ZMDJQdVWLIWkr3",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 36
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 44
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 12,
+      "height": 700
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 1,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "66nvTsvm5NbqIsMgAkpxDi"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 36
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 46
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "ffb88a8f-af62-48f4-8f1d-3cb606443a43@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b2IKbgGaNCw7OSK4yDl3sG"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 36
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 48
+    },
+    "_alignFlags": 37,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 250,
+    "_alignMode": 1,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "bc5aZ//glPzosisuYtBT7q"
+  },
+  {
+    "__type__": "cc.ScrollBar",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 36
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 50
+    },
+    "_scrollView": {
+      "__id__": 51
+    },
+    "_handle": {
+      "__id__": 40
+    },
+    "_direction": 1,
+    "_enableAutoHide": false,
+    "_autoHideTime": 1,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b7I5KC1rhAaI63OHYOGKMi"
+  },
+  {
+    "__type__": "cc.ScrollView",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 52
+    },
+    "bounceDuration": 0.23,
+    "brake": 0.75,
+    "elastic": false,
+    "inertia": false,
+    "horizontal": false,
+    "vertical": true,
+    "cancelInnerEvents": true,
+    "scrollEvents": [],
+    "_content": {
+      "__id__": 53
+    },
+    "_horizontalScrollBar": null,
+    "_verticalScrollBar": {
+      "__id__": 49
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "286pSNkHtNdaxRsB1ZIhf3"
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "content",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 54
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 64
+      },
+      {
+        "__id__": 66
+      },
+      {
+        "__id__": 68
+      }
+    ],
+    "_prefab": {
+      "__id__": 70
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 35
+    },
+    "_children": [
+      {
+        "__id__": 53
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 55
+      },
+      {
+        "__id__": 57
+      },
+      {
+        "__id__": 59
+      },
+      {
+        "__id__": 61
+      }
+    ],
+    "_prefab": {
+      "__id__": 63
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 330,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 54
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 56
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1760,
+      "height": 660
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "baR5XEV1RGt7WolkqoTFu0"
+  },
+  {
+    "__type__": "cc.Mask",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 54
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 58
+    },
+    "_type": 0,
+    "_inverted": false,
+    "_segments": 64,
+    "_alphaThreshold": 0.1,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b3/wBXVTFG/rHldwPoMkBK"
+  },
+  {
+    "__type__": "cc.Graphics",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 54
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 60
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_lineWidth": 1,
+    "_strokeColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_lineJoin": 2,
+    "_lineCap": 0,
+    "_fillColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 0
+    },
+    "_miterLimit": 10,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "beuFbz4p9Ocb2HFnBKw1ep"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 54
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 62
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 20,
+    "_right": 20,
+    "_top": 20,
+    "_bottom": 20,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 240,
+    "_originalHeight": 250,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a7LE9vcAVFDbEMSIG4kZdr"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "18WlQS92hHlJB+cFYkVRlJ",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 53
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 65
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1760,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "fajekJ9MZBtoARUy7xsPXY"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 53
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 67
+    },
+    "_alignFlags": 40,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 220,
+    "_originalHeight": 0,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "82u6A4SS5KQ4K6K1BZl1YZ"
+  },
+  {
+    "__type__": "cc.Layout",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 53
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 69
+    },
+    "_resizeMode": 1,
+    "_layoutType": 3,
+    "_cellSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 40
+    },
+    "_startAxis": 0,
+    "_paddingLeft": 20,
+    "_paddingRight": 0,
+    "_paddingTop": 0,
+    "_paddingBottom": 0,
+    "_spacingX": 50,
+    "_spacingY": 50,
+    "_verticalDirection": 1,
+    "_horizontalDirection": 0,
+    "_constraint": 2,
+    "_constraintNum": 4,
+    "_affectedByScale": false,
+    "_isAlign": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "235XFuphJEDJzm9NrUpp3O"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f4+HMnPgBIvoOqX3XqQUVn",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "81pYysttlI/qQhdDk4jV5x",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 73
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1800,
+      "height": 700
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8eZK/IvppFRI/mKm2GUWSg"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 75
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "b730527c-3233-41c2-aaf7-7cdab58f9749@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "64AelbQBNCMY7GpsQJfCSb"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "aesgh/39xG7Jjyh5FzWMlR",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "title",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 78
+      },
+      {
+        "__id__": 80
+      }
+    ],
+    "_prefab": {
+      "__id__": 82
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 448.787,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 77
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 79
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 240,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "80tc4MlfBPIqS37PcNx/kg"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 77
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 81
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "事件编辑页面",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 40,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7ao6Opv1dF8L7bRlNURA04"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "39Z11EK4xOaaPaGcVpzsUs",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 84
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 2000,
+      "height": 1000
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "07E4LdK/hDNYBRqAMFrk0U"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 86
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "6eRl+SFCpFc732Let8vrKE"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "13hhvIzd1OML30AxBM7YL8",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_close",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 89
+      },
+      {
+        "__id__": 91
+      },
+      {
+        "__id__": 93
+      }
+    ],
+    "_prefab": {
+      "__id__": 95
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 827.504,
+      "y": 441.999,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 2,
+      "y": 2,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 88
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 90
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 59,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b1BM8DN2dIYIuIoSdMXr9j"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 88
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 92
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "64c1f2bf-dc82-4530-bd30-7879d5a3e03e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3d1EUe0MVNvYG7J+CdKVuK"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 88
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 94
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 1.2,
+    "_target": {
+      "__id__": 88
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "78OyJLecRNQZLngwP1Gjbu"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a8aax96kZNUrxHqunALmm4",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Button",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 97
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 105
+      },
+      {
+        "__id__": 107
+      },
+      {
+        "__id__": 109
+      },
+      {
+        "__id__": 111
+      }
+    ],
+    "_prefab": {
+      "__id__": 113
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -1365.851,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 512,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 96
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 98
+      },
+      {
+        "__id__": 100
+      },
+      {
+        "__id__": 102
+      }
+    ],
+    "_prefab": {
+      "__id__": 104
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 97
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 99
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 300,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "287L2n3DJChamTRZslArDU"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 97
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 101
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "删除其他拖拽目标的属性",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 27,
+    "_fontSize": 30,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 2,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "db6zbL7hhNZ6IGJtlm47yF"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 97
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 103
+    },
+    "_alignFlags": 40,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 111.2109375,
+    "_originalHeight": 0,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "05pFsPt9ZOooyhC8GPFA4i"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "5ehmXUcklLrqsAgp1Cthwy",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 96
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 106
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 300,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "cd/eSotjxO0q4RPKjlklgg"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 96
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 108
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "8a0OxIHgZPiZwNttjfupjT"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 96
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 110
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 0,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_hoverSprite": {
+      "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_pressedSprite": {
+      "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_disabledSprite": {
+      "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_duration": 0.1,
+    "_zoomScale": 1.2,
+    "_target": {
+      "__id__": 96
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a4MQKrU51D+YCuUpLi8vyk"
+  },
+  {
+    "__type__": "c725dzz5MlOf5Eyfng2RM4o",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 96
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 112
+    },
+    "lab_name": {
+      "__id__": 97
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "4dWW7qPHZMfocGlr3ZRG2/"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "6eGV4B6XdJLKK5Nn196IAJ",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 115
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1919.9999999999998,
+      "height": 1919.9999999999998
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "15BdqC1qpGdJgHpYLk0x/o"
+  },
+  {
+    "__type__": "cc.BlockInputEvents",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 117
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "74rlKLlphL/YUAMpFjMuyA"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 119
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 1000,
+    "_originalHeight": 1000,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "6f7vWSt+9JC5/DHFG+gv3R"
+  },
+  {
+    "__type__": "2d85aewZ+lAyr+zqBOFFzbk",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 121
+    },
+    "event_item_prefab": {
+      "__uuid__": "f0c5eb2c-f29e-40ea-938c-c1e4101d120d",
+      "__expectedType__": "cc.Prefab"
+    },
+    "btn_close": {
+      "__id__": 88
+    },
+    "content": {
+      "__id__": 53
+    },
+    "type_content": {
+      "__id__": 13
+    },
+    "type_btn": {
+      "__id__": 96
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d6Xv5kM5VELYKbfzZLkD1i"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "58aKbXdDlG2aldLdMHOLO0",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/prefab/ui/edit_event_view.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.49",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "4727ede7-0093-42fb-9f83-2d503bae0cb0",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "edit_event_view"
+  }
+}

+ 4 - 0
assets/script/config.ts

@@ -86,6 +86,8 @@ export class config {
         config.event_type_map.set(config.event_type.play_sound,"播放音效")
         config.event_type_map.set(config.event_type.show_scene_title,"显示场景标签")
         config.event_type_map.set(config.event_type.scene_ani,"场景动画")
+        config.event_type_map.set(config.event_type.stop_play_loop_sound,"停止播放一个音效")
+        config.event_type_map.set(config.event_type.delete_drag_other_data,"删除拖拽控件的其他拖拽目标")
         //top_view_type_map
         config.top_view_type_map.set(config.top_view_type.__null,"暂未选择")
         config.top_view_type_map.set(config.top_view_type.not_have_interact,"没有交互")
@@ -221,6 +223,8 @@ export class config {
         play_sound:15, //播放一个音效
         show_scene_title:16,//显示场景的标签
         scene_ani:17,//场景动画
+        delete_drag_other_data:18,//删除其他拖拽目标的属性
+        stop_play_loop_sound:19,//停止一个音效
     }
 
     static top_view_type_map:Map<number,string> = new Map();

+ 3 - 0
assets/script/edit/animation/new_frame.ts

@@ -175,6 +175,9 @@ export class new_frame extends Component {
         this.size_height.getComponent(EditBox).string =  this.m_data.size_height.toString()
         this.color.getComponent(EditBox).string =  this.m_data.color.toString()
         this.transparent.getComponent(EditBox).string =  this.m_data.transparent.toString()
+        if(this.m_data.rotation==undefined){
+            this.m_data.rotation = 0;
+        }
         this.rotation.getComponent(EditBox).string =  this.m_data.rotation.toString()
     }
 

+ 40 - 1
assets/script/edit/attributes/attributes_drop.ts

@@ -1,6 +1,7 @@
 import { _decorator, Component, EditBox, instantiate, Label, Node, Prefab, Size } from 'cc';
-import { att_drag_data } from '../../../data/data';
+import { att_drag_data, other_widget_finish_listen_item } from '../../../data/data';
 import { other_drag_list_item } from './other_drag_list_item';
+import { other_widget_finish_item } from './other_widget_finish_item';
 const { ccclass, property } = _decorator;
 
 @ccclass('attributes_drop')
@@ -14,6 +15,10 @@ export class attributes_drop extends Component {
     @property(Node) btn_add_other_drag_dis:Node = null; 
     @property(Node) content:Node = null;
     @property(Prefab) other_drag_item:Prefab = null;
+
+    @property(Node) btn_add_listen_other_widget_finish_event:Node = null;
+    @property(Prefab) other_widget_finish_item:Prefab = null;
+    @property(Node) other_widget_finish_content:Node = null;
     private call_back = null;
     private _err_back_status_call = null;
     private _is_err_drag_back:boolean = false;
@@ -38,6 +43,19 @@ export class attributes_drop extends Component {
             let item_data = this.m_data.other_drag_list[index]
             item.getComponent(other_drag_list_item).initView(item_data,this.onOtherDragItemClickDelete.bind(this))
         }
+
+        if(this.m_data.other_widget_finish_listen_list==undefined){
+            this.m_data.other_widget_finish_listen_list = []
+        }
+        this.other_widget_finish_content.removeAllChildren()
+        for (let index = 0; index < this.m_data.other_widget_finish_listen_list.length; index++) {
+            let item = instantiate(this.other_widget_finish_item)
+            item.parent = this.other_widget_finish_content;
+            let item_data = this.m_data.other_widget_finish_listen_list[index]
+            item.getComponent(other_widget_finish_item).initView(item_data,this.onOtherWidgetFinishListenItemClickDelete.bind(this))
+        }
+
+
     }
     protected start(): void {
         this.drag_width.node.on('editing-did-ended', this.change, this);
@@ -56,11 +74,32 @@ export class attributes_drop extends Component {
         this.btn_add_other_drag_dis.on(Node.EventType.TOUCH_END,()=>{
             this.addOtherDragItem()
         })
+
+        this.btn_add_listen_other_widget_finish_event.on(Node.EventType.TOUCH_END,()=>{
+            this.addOtherWidgetFinishListenItem()
+        })
     }
     public initView(call,err_back_status_call){
         this.call_back = call;
         this._err_back_status_call = err_back_status_call;
     }
+
+    addOtherWidgetFinishListenItem(){
+        let item = instantiate(this.other_widget_finish_item)
+        item.parent = this.other_widget_finish_content;
+        let item_data = new other_widget_finish_listen_item;
+        this.m_data.other_widget_finish_listen_list.push(item_data)
+        item.getComponent(other_widget_finish_item).initView(this.m_data.other_widget_finish_listen_list[this.m_data.other_widget_finish_listen_list.length-1],this.onOtherWidgetFinishListenItemClickDelete.bind(this))
+        this.change()
+    }
+
+    onOtherWidgetFinishListenItemClickDelete(data:other_widget_finish_listen_item){
+        let index = this.m_data.other_widget_finish_listen_list.indexOf(data)
+        this.m_data.other_widget_finish_listen_list.splice(index,1)
+        this.change()
+    }
+
+
     addOtherDragItem(){
         let item = instantiate(this.other_drag_item)
         item.parent = this.content;

+ 13 - 1
assets/script/edit/attributes/attributes_text_sound.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, EditBox, Label, Node } from 'cc';
+import { _decorator, Component, EditBox, Label, Node, Toggle } from 'cc';
 import { att_text_sound_data } from '../../../data/data';
 import { receive_sound_item } from '../uiWidget/receive_sound_item';
 const { ccclass, property } = _decorator;
@@ -8,6 +8,7 @@ export class attributes_text_sound extends Component {
     @property(Node) edit_text:Node = null;
     @property(Node) sound:Node = null;
     @property(Node) edit_y:Node = null;
+    @property(Toggle) toggle:Toggle = null;
     private call_back = null;
     private m_data:att_text_sound_data = null;
     public initView(call){
@@ -18,11 +19,18 @@ export class attributes_text_sound extends Component {
         this.edit_y.on('editing-did-ended',()=>{
             this.change()
         })
+        this.toggle.node.on(Toggle.EventType.TOGGLE,()=>{
+            this.change()
+        })
     }
 
     change(){
         this.m_data.pos_y = parseInt(this.edit_y.getComponent(EditBox).string)
         this.m_data.text = this.edit_text.getComponent(EditBox).string;
+        if(this.m_data.is_open_click_close==undefined){
+            this.m_data.is_open_click_close = true;
+        }
+        this.m_data.is_open_click_close = this.toggle.isChecked
         if(this.call_back!=null){
             this.call_back(this.m_data)
         }
@@ -33,6 +41,10 @@ export class attributes_text_sound extends Component {
         this.edit_text.getComponent(EditBox).string = this.m_data.text;
         this.sound.getComponent(receive_sound_item).updateView(this.m_data.sound_data)
         this.edit_y.getComponent(EditBox).string = this.m_data.pos_y.toString()
+        if(this.m_data.is_open_click_close==undefined){
+            this.m_data.is_open_click_close = true;
+        }
+        this.toggle.isChecked = this.m_data.is_open_click_close 
     }
 }
 

+ 70 - 0
assets/script/edit/attributes/other_widget_finish_item.ts

@@ -0,0 +1,70 @@
+import { _decorator, Component, Label, Node } from 'cc';
+import { event_item, other_widget_finish_listen_item, widget_item_data } from '../../../data/data';
+import { tools } from '../../tools';
+import { Attributes } from '../Attributes';
+import { config } from '../../config';
+import { ClientEvent } from '../../clientEvent';
+const { ccclass, property } = _decorator;
+
+@ccclass('other_widget_finish_item')
+export class other_widget_finish_item extends Component {
+    @property(Node) btn_not_finish_event:Node = null;
+    @property(Node) lab_not_finish_event:Node = null;
+    @property(Node) btn_select_widget:Node = null;
+    @property(Node) lab_select_widget:Node = null;
+    @property(Node) btn_delete:Node = null;
+    private m_data:other_widget_finish_listen_item = null;
+    private delete_call = null;
+    public initView(data:other_widget_finish_listen_item,call){
+        this.m_data = data;
+        this.delete_call = call;
+        this.btn_delete.on(Node.EventType.TOUCH_END,()=>{
+            if(this.delete_call){
+                this.delete_call(this.m_data)
+            }
+            this.node.removeFromParent()
+        })
+
+        this.btn_select_widget.on(Node.EventType.TOUCH_END,()=>{
+            let list =  Attributes.Singleton.get_cur_scene_all_only_widget()
+            if(list.length<=0){
+                return tools.showToast("当前场景没有添加控件!")
+            }
+            tools.show_select_widget_list(list,(item:widget_item_data)=>{
+                this.m_data.widget_id = item.att.id;
+                this.update_att(this.m_data)
+                ClientEvent.dispatchEvent(config.Event.UpdateAttributesToView, Attributes.Singleton.get_cur_att_data(),config.attributes_list_type.drag)
+            },this.m_data.widget_id)
+        })
+
+
+        this.btn_not_finish_event.on(Node.EventType.TOUCH_END,()=>{
+            let list = Attributes.Singleton.getEventList()
+            tools.show_select_evele_list(list,(data:event_item)=>{
+                this.m_data.event_id = data.event_id;
+                this.update_att(this.m_data)
+                ClientEvent.dispatchEvent(config.Event.UpdateAttributesToView, Attributes.Singleton.get_cur_att_data(),config.attributes_list_type.drag)
+            })
+        })
+        this.update_att(this.m_data)
+    }
+
+
+    public update_att(data:other_widget_finish_listen_item){
+
+        if(this.m_data.widget_id==-1){
+            this.btn_not_finish_event.active = false;
+            this.lab_select_widget.getComponent(Label).string = "无"
+        }else{
+            this.btn_not_finish_event.active = true;
+            this.lab_select_widget.getComponent(Label).string = `id:${this.m_data.widget_id}`
+            if(this.m_data.event_id==-1){
+                this.lab_not_finish_event.getComponent(Label).string = "无"
+            }else{
+                this.lab_not_finish_event.getComponent(Label).string = `id:${this.m_data.event_id}`
+            }
+        }
+    }
+}
+
+

+ 9 - 0
assets/script/edit/attributes/other_widget_finish_item.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "bfcf4937-4a9b-4fe2-9a81-eacdcdd53bda",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 4 - 0
assets/script/edit/edit_scene.ts

@@ -36,6 +36,10 @@ export class edit_scene extends Component {
         this.scene_task.getComponent(scene_task).initView(this)
     }
 
+    public getTaskData(){
+        return this.scene_task.getComponent(scene_task).getTaskData()
+    }
+
     public getCurSelectSceneIndex(){
         return  this.scene_select_list.getComponent(scene_select_list).getCurSelectSceneIndex(); 
     }

+ 14 - 1
assets/script/edit/event/edit_event.ts

@@ -20,6 +20,8 @@ import { event_fail_event } from './event_fail_event';
 import { event_play_sound } from './event_play_sound';
 import { event_show_scene_title } from './event_show_scene_title';
 import { event_scene_ani } from './event_scene_ani';
+import { event_delete_drag_other_data_view } from './event_delete_drag_other_data_view';
+import { event_stop_play_loop_sound } from './event_stop_play_loop_sound';
 const { ccclass, property } = _decorator;
 
 @ccclass('edit_event')
@@ -43,8 +45,11 @@ export class edit_event extends Component {
 
     @property(Node) scene_ani:Node = null;
 
+    @property(Node) delete_drag_other_data:Node = null;
+
     @property(Node) fail_event:Node = null;
     @property(Node) play_sound:Node = null;
+    @property(Node) stop_play_loop_sound:Node = null;
 
     @property(Node) show_scene_title:Node = null;
 
@@ -167,6 +172,8 @@ export class edit_event extends Component {
         this.widget_map.set(config.event_type.play_sound,this.play_sound)
         this.widget_map.set(config.event_type.show_scene_title,this.show_scene_title)
         this.widget_map.set(config.event_type.scene_ani,this.scene_ani)
+        this.widget_map.set(config.event_type.delete_drag_other_data,this.delete_drag_other_data)
+        this.widget_map.set(config.event_type.stop_play_loop_sound,this.stop_play_loop_sound)
     }
     hideAllWidget(){
         this.widget_map.forEach((v,k)=>{
@@ -228,9 +235,15 @@ export class edit_event extends Component {
             case config.event_type.show_scene_title: //显示一个场景标签
             this.show_scene_title.getComponent(event_show_scene_title).initView(this.m_data.event_item_show_scene_title_data)
             break;
-            case config.event_type.scene_ani: //显示一个场景标签
+            case config.event_type.scene_ani: //
             this.scene_ani.getComponent(event_scene_ani).initView(this.m_data.event_item_scene_ani)
             break;
+            case config.event_type.delete_drag_other_data: //
+            this.delete_drag_other_data.getComponent(event_delete_drag_other_data_view).initView(this.m_data.event_item_delete_drag_other_data)
+            break;
+            case config.event_type.stop_play_loop_sound: //
+            this.stop_play_loop_sound.getComponent(event_stop_play_loop_sound).initView(this.m_data.event_item_stop_play_loop_sound_data)
+            break;
         }
     }
 

+ 103 - 0
assets/script/edit/event/edit_event_view.ts

@@ -0,0 +1,103 @@
+import { _decorator, Component, instantiate, Node, Prefab, Vec3 } from 'cc';
+import { config } from '../../config';
+import { edit_event_view_select_btn } from './edit_event_view_select_btn';
+import { Attributes } from '../Attributes';
+import { event_item } from '../../../data/data';
+import { event_item_view } from './event_item_view';
+import { control } from '../control';
+import { main } from '../../main';
+import { ClientEvent } from '../../clientEvent';
+const { ccclass, property } = _decorator;
+
+@ccclass('edit_event_view')
+export class edit_event_view extends Component {
+    @property(Prefab) event_item_prefab:Prefab = null;
+    @property(Node) btn_close:Node = null;
+    @property(Node) content:Node = null;
+    @property(Node) type_content:Node = null;
+    @property(Node) type_btn:Node = null;
+    private m_cur_select_type:number = -1;
+    public show(){
+        this.btn_close.on(Node.EventType.TOUCH_END,()=>{
+            this.node.removeFromParent()
+        })
+        this.type_content.removeAllChildren()
+
+        let btn = instantiate(this.type_btn)
+        btn.getComponent(edit_event_view_select_btn).initView(-1,"全部",this.onTypeItemClick.bind(this))
+        btn.getComponent(edit_event_view_select_btn).selectStatus()
+        btn.parent = this.type_content
+        btn = instantiate(this.type_btn)
+        btn.parent = this.type_content
+        btn.getComponent(edit_event_view_select_btn).initView(-2,"搜索",this.onTypeItemClick.bind(this))
+
+        config.event_type_map.forEach((v,k)=>{
+            let item = instantiate(this.type_btn)
+            item.parent = this.type_content
+            item.getComponent(edit_event_view_select_btn).initView(k,v,this.onTypeItemClick.bind(this))
+        })
+        this.m_cur_select_type = -1;
+        this.updateView()
+    } 
+
+    allBtnUnSelect(){
+        for (let index = 0; index < this.type_content.children.length; index++) {
+            const element = this.type_content.children[index];
+            element.getComponent(edit_event_view_select_btn).unselectStatus()
+        }
+    }
+
+    onTypeItemClick(item:edit_event_view_select_btn){
+        this.allBtnUnSelect()
+        item.selectStatus()
+        if(this.m_cur_select_type!=item.getType()){
+            this.m_cur_select_type = item.getType()
+            this.updateView()
+        }
+    }
+
+    updateView(){
+        this.content.removeAllChildren()
+        let list = this.getEventListByType()
+        for (let index = 0; index < list.length; index++) {
+            const element = list[index];
+            let item = instantiate(this.event_item_prefab)
+            item.parent = this.content;
+            item.getComponent(event_item_view).initView(element.type,element,this.onDeleteItem.bind(this))
+        }
+    }
+    public onDeleteItem(item:event_item){
+        let task_data = main.Singleton.edit_scene_view.getTaskData()
+        if(task_data!=null){
+            for (let index = 0; index < task_data.event_list.length; index++) {
+                const element = task_data.event_list[index];
+                if(element.event_id===item.event_id){
+                    task_data.event_list.splice(index,1)
+                    this.updateView()
+                    ClientEvent.dispatchEvent(config.Event.UpdateEditScene)
+                    break;
+                }
+            }
+        }
+    }
+    getEventListByType(){
+        let list = Attributes.Singleton.getEventList()
+        if(this.m_cur_select_type==-1){
+            return list;
+        }else if(this.m_cur_select_type==2){
+            return []
+        }else{
+            let temp:event_item[] = []
+            for (let index = 0; index < list.length; index++) {
+                const element = list[index];
+                if(element.type==this.m_cur_select_type){
+                    temp.push(element)
+                }
+            }
+            return temp;
+        }
+    }
+
+}
+
+

+ 9 - 0
assets/script/edit/event/edit_event_view.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "2d85a7b0-67e9-40ca-bfb3-a813851736e4",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 34 - 0
assets/script/edit/event/edit_event_view_select_btn.ts

@@ -0,0 +1,34 @@
+import { _decorator, Color, Component, Label, Node, Sprite } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('edit_event_view_select_btn')
+export class edit_event_view_select_btn extends Component {
+    @property(Node) lab_name:Node = null;
+    private m_type:number = 0;
+    private m_call_back = null;
+    public initView(type:number,name:string,call){
+        this.m_type = type;
+        this.m_call_back = call;
+        this.lab_name.getComponent(Label).string = name;
+        this.node.off(Node.EventType.TOUCH_END)
+        this.node.on(Node.EventType.TOUCH_END,()=>{
+            if(this.m_call_back!=null){
+                this.m_call_back(this)
+            }
+        })
+        this.unselectStatus()
+    }
+
+    public selectStatus(){
+        this.node.getComponent(Sprite).color = Color.YELLOW;
+    }
+    public unselectStatus(){
+        this.node.getComponent(Sprite).color = Color.GRAY;
+    }
+
+    public getType(){
+        return this.m_type;
+    }
+}
+
+

+ 9 - 0
assets/script/edit/event/edit_event_view_select_btn.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "c725dcf3-e4c9-4e7f-9132-7e783644ce28",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 72 - 0
assets/script/edit/event/event_delete_drag_other_data_view.ts

@@ -0,0 +1,72 @@
+import { _decorator, Component, EditBox, Label, Node } from 'cc';
+import { event_item_delete_drag_other, widget_item_data } from '../../../data/data';
+import { Attributes } from '../Attributes';
+import { tools } from '../../tools';
+import { config } from '../../config';
+const { ccclass, property } = _decorator;
+
+@ccclass('event_delete_drag_other_data_view')
+export class event_delete_drag_other_data_view extends Component {
+    @property(Node) btn_select_widget:Node = null;
+    @property(Node) btn_select_select_other:Node = null;
+    @property(Node) lab_cur_select_widget:Node = null;
+    @property(EditBox) edit_other:EditBox = null;
+    // @property(Node) lab_cur_select_other:Node = null;
+    private m_data:event_item_delete_drag_other = null;
+    private m_widget_item_data:widget_item_data = null;
+    public initView(data:event_item_delete_drag_other){
+        this.m_data = data;
+        this.btn_select_widget.on(Node.EventType.TOUCH_END,()=>{
+            let list =  Attributes.Singleton.get_cur_scene_widget_by_type(config.Widget_Type_List.DRAG_TYPE)
+            if(list.length<=0){
+                return tools.showToast("当前场景没有添加拖拽控件!")
+            }
+            tools.show_select_widget_list(list,(item:widget_item_data)=>{
+                this.m_data.widget_id = item.att.id;
+                this.m_widget_item_data = item;
+                this.updateStatus()
+            },this.m_data.widget_id)
+        })
+        this.edit_other.node.on(EditBox.EventType.EDITING_DID_ENDED,()=>{
+            let index = parseInt(this.edit_other.string)
+            if(this.m_widget_item_data==null){
+                return tools.showToast("控件数据是空")
+            }
+            if(this.m_widget_item_data.att.drag_data==null||this.m_widget_item_data.att.drag_data==undefined){
+                return tools.showToast("控件拖拽数据是空")
+            }
+
+            if(this.m_widget_item_data.att.drag_data.other_drag_list==null||this.m_widget_item_data.att.drag_data==undefined){
+                return tools.showToast("当前控件其他控件列表是空的")
+            }
+            if(this.m_widget_item_data.att.drag_data.other_drag_list.length<=0){
+                return tools.showToast("拖拽的列表是空的")
+            }
+            if(index>=this.m_widget_item_data.att.drag_data.other_drag_list.length){
+                return tools.showToast("输入的拖拽目标不存在")
+            }
+            this.m_data.delete_drag_other_index = index;
+            this.updateStatus()
+        })
+        this.updateStatus()
+    }
+    updateStatus(){
+        if(this.m_data.widget_id==-1){
+            this.lab_cur_select_widget.getComponent(Label).string = "选择控件"
+            // this.lab_cur_select_other.getComponent(Label).string = "选择目标"
+        }else{
+            if(this.m_widget_item_data===null){
+                this.m_widget_item_data = Attributes.Singleton.get_cur_scene_widget_by_id(this.m_data.widget_id)  
+            }  
+            this.btn_select_select_other.active = true;
+            this.lab_cur_select_widget.getComponent(Label).string = `选择控件id:${this.m_data.widget_id}`
+            if(this.m_data.delete_drag_other_index==-1){
+            }else{
+                this.edit_other.string = this.m_data.delete_drag_other_index.toString()
+            }
+        }
+
+    }
+}
+
+

+ 9 - 0
assets/script/edit/event/event_delete_drag_other_data_view.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "244b6324-6cb0-4110-92a6-cc633514b7c4",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 23 - 1
assets/script/edit/event/event_play_sound.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, Label, Node } from 'cc';
+import { _decorator, Component, Label, Node, Slider, Toggle } from 'cc';
 import { bag_item_data, event_item_play_sound } from '../../../data/data';
 import { tools } from '../../tools';
 const { ccclass, property } = _decorator;
@@ -7,6 +7,10 @@ const { ccclass, property } = _decorator;
 export class event_play_sound extends Component {
     @property(Node) btn_select_sound:Node = null;
     @property(Node) lab_name:Node = null;
+    @property(Toggle) toggle:Toggle = null;
+    @property(Slider) slider_volume:Slider = null;
+    @property(Node) select_loop:Node = null;
+    @property(Node) select_volume:Node = null;
     private m_data:event_item_play_sound = null;
     public initView(data:event_item_play_sound){
         this.m_data = data;
@@ -18,14 +22,32 @@ export class event_play_sound extends Component {
             })
         })
         this.updateStatus()
+        this.toggle.node.on(Toggle.EventType.TOGGLE,()=>{
+            this.m_data.isLoop = this.toggle.isChecked
+        })
+    }
+    onSlider(){
+        this.m_data.volume = this.slider_volume.progress;
     }
 
     updateStatus(){
         if(this.m_data.sound_res.name.length>0){
             this.lab_name.getComponent(Label).string = this.m_data.sound_res.name
+            this.select_loop.active = true;
+            this.select_volume.active = true;
         }else{
             this.lab_name.getComponent(Label).string   = "选择一个音频文件"
+            this.select_loop.active = false;
+            this.select_volume.active = false;
+        }
+        if(this.m_data.isLoop==undefined){
+            this.m_data.isLoop = false;
+        }
+        if( this.m_data.volume==undefined){
+            this.m_data.volume = 1;
         }
+        this.toggle.isChecked = this.m_data.isLoop;
+        this.slider_volume.progress = this.m_data.volume;
     }
 }
 

+ 31 - 0
assets/script/edit/event/event_stop_play_loop_sound.ts

@@ -0,0 +1,31 @@
+import { _decorator, Component, Label, Node } from 'cc';
+import { bag_item_data, event_item_stop_play_loop_sound } from '../../../data/data';
+import { tools } from '../../tools';
+const { ccclass, property } = _decorator;
+
+@ccclass('event_stop_play_loop_sound')
+export class event_stop_play_loop_sound extends Component {
+    @property(Node) btn_select_sound:Node = null;
+    @property(Node) lab_name:Node = null;
+    private m_data:event_item_stop_play_loop_sound = null;
+    public initView(data:event_item_stop_play_loop_sound){
+        this.m_data = data;
+        this.btn_select_sound.on(Node.EventType.TOUCH_END,()=>{
+            tools.select_sound_list((data:bag_item_data)=>{
+                this.m_data.res = data.url;
+                this.updateStatus()
+            })
+        })
+        this.updateStatus()
+    }
+
+    updateStatus(){
+        if(this.m_data.res.length>0){
+            this.lab_name.getComponent(Label).string = this.m_data.res
+        }else{
+            this.lab_name.getComponent(Label).string   = "选择停止播放语音文件"
+        }
+    }
+}
+
+

+ 9 - 0
assets/script/edit/event/event_stop_play_loop_sound.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "3495ffcf-dec8-4d0a-a42e-7bef5ff4dfc0",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 14 - 1
assets/script/edit/task/scene_task.ts

@@ -3,7 +3,7 @@ import { tools } from '../../tools';
 import { edit_scene } from '../edit_scene';
 import { ClientEvent } from '../../clientEvent';
 import { config } from '../../config';
-import { da_guai_data, event_active_event_item, event_collect_event_item, event_item, event_item_be_event, event_item_change_one_item_status, event_item_countdown_over, event_item_delay_exe_event, event_item_fail, event_item_fail_event, event_item_hide, event_item_play_ani, event_item_play_sound, event_item_scene_ani, event_item_show_new_item, event_item_show_question_select, event_item_show_scene_title, event_item_success, event_item_text_sound, event_item_top_view, event_start_event_item, guo_ju_qing_data, scene_item_data, task_data, zhao_xi_jie_data, zhao_xi_jie_item_data } from '../../../data/data';
+import { da_guai_data, event_active_event_item, event_collect_event_item, event_item, event_item_be_event, event_item_change_one_item_status, event_item_countdown_over, event_item_delay_exe_event, event_item_delete_drag_other, event_item_fail, event_item_fail_event, event_item_hide, event_item_play_ani, event_item_play_sound, event_item_scene_ani, event_item_show_new_item, event_item_show_question_select, event_item_show_scene_title, event_item_stop_play_loop_sound, event_item_success, event_item_text_sound, event_item_top_view, event_start_event_item, guo_ju_qing_data, scene_item_data, task_data, zhao_xi_jie_data, zhao_xi_jie_item_data } from '../../../data/data';
 import { event_item_view } from '../event/event_item_view';
 import { task_zhao_xi_jie } from './task_zhao_xi_jie';
 import { task_guo_ren_wu } from './task_guo_ren_wu';
@@ -18,6 +18,7 @@ export class scene_task extends Component {
     @property(Node) event_content:Node = null;
     @property(Prefab) event_item_prefab:Prefab = null;
     @property(Node) btn_update:Node = null;
+    @property(Node) btn_edit_event:Node = null;
     @property(Node) task_zhao_xi_jie:Node = null;
     @property(Node) task_guo_ju_qing:Node = null;
     @property(Node) task_da_guai:Node = null;
@@ -46,6 +47,10 @@ export class scene_task extends Component {
                 tools.showToast("正在刷新请稍后!")
             }
         })
+
+        this.btn_edit_event.on(Node.EventType.TOUCH_END,()=>{
+            tools.show_edit_event_view()
+        })
     }
 
 
@@ -60,6 +65,7 @@ export class scene_task extends Component {
         this.btn_add_task.active = false;
         this.btn_add_event.active = false;
         this.btn_update.active = false;
+        this.btn_edit_event.active = false;
         this.task_zhao_xi_jie.active = false;
         this.task_guo_ju_qing.active = false;
         this.task_da_guai.active = false;
@@ -68,6 +74,7 @@ export class scene_task extends Component {
         this.lab_task_title.getComponent(Label).string = ""
         if(scene_data!=null){
             this.btn_update.active = true;
+            this.btn_edit_event.active = true;
            let data:scene_item_data = scene_data.getData()
            if(!data._task_data){
                 this.btn_add_task.active = true;
@@ -225,6 +232,12 @@ export class scene_task extends Component {
             case config.event_type.scene_ani:
                 new_event.event_item_scene_ani = new event_item_scene_ani
             break;
+            case config.event_type.delete_drag_other_data:
+                new_event.event_item_delete_drag_other_data = new event_item_delete_drag_other
+            break;
+            case config.event_type.stop_play_loop_sound:
+                new_event.event_item_stop_play_loop_sound_data = new event_item_stop_play_loop_sound
+            break;
         }
         this.addEventItemView(type,new_event)
         task_data.event_list.push(new_event)

+ 18 - 0
assets/script/run/TaskSchedule/taskServce.ts

@@ -123,6 +123,10 @@ export class taskServce {
 
     public static DistributedEvent(event:event_item){
 
+        // console.log("event",event)
+        if(event==null){
+            return
+        }
         if(event.event_id===taskServce.guo_ju_qing_binding_event_id){
             taskServce.guo_ju_qing_binding_event_id = -1;
             ClientEvent.dispatchEvent(config.EventRun.ON_SHOW_RULE_BTN)
@@ -213,6 +217,12 @@ export class taskServce {
             case config.event_type.scene_ani:
                 ClientEvent.dispatchEvent(config.EventRun.NOTICE_EVENT,-11,event)
             break;
+            case config.event_type.delete_drag_other_data:
+                ClientEvent.dispatchEvent(config.EventRun.NOTICE_EVENT,-11,event)
+            break;
+            case config.event_type.stop_play_loop_sound:
+                ClientEvent.dispatchEvent(config.EventRun.NOTICE_EVENT,-11,event)
+            break;
 
         }
         taskServce.exeNextDelayEvent(event)
@@ -298,6 +308,9 @@ export class taskServce {
 
 
     public static onWidgetFinishEvent(widget_id:number){ //监听被动控件完成了自己的任务
+        if(taskServce.mTaskData==null){
+            return
+        }
         let event = this.exeWidgeTaskDic.get(widget_id)
         if(taskServce.cur_collect_event!=null){
             if(event!=null){
@@ -347,6 +360,9 @@ export class taskServce {
 
     public static checkFinishDaBossTask(){
         let isFinish  = true;
+        if(!taskServce.mTaskData._da_guai){
+            return isFinish
+        }
         for (let index = 0; index < taskServce.mTaskData._da_guai.widget_id_list.length; index++) {
             const element = taskServce.mTaskData._da_guai.widget_id_list[index];
             if(!taskServce.finishDaGuai.get(element.widget_id)){
@@ -392,6 +408,7 @@ export class taskServce {
         let id = -1;
         if(event!=null){
             if(event.success.is_finish_game){
+                tools.showToast("调用了游戏结束")
                 return gameManager.Singleton.gameOver()
                 
             }else{
@@ -420,6 +437,7 @@ export class taskServce {
     }
 
     public static exeNextDelayEvent(event:event_item){
+
         if(event!=null){
             if(event.success.is_finish_game){
                 return gameManager.Singleton.gameOver()

+ 18 - 3
assets/script/run/gameManager.ts

@@ -1,6 +1,6 @@
 import { _decorator, AudioClip, AudioSource, Component, Node, Size, Sprite, SpriteFrame, sys, UITransform, Vec3 } from 'cc';
 import { game_run } from './game_run';
-import { attributes_data, LevelItemData, scene_item_data, sysMessage, task_data, ui_att_item, UserData, widget_item_data } from '../../data/data';
+import { attributes_data, LevelItemData, other_widget_finish_listen_item, scene_item_data, sysMessage, task_data, ui_att_item, UserData, widget_item_data } from '../../data/data';
 import { config } from '../config';
 import { sceneManager } from './sceneManager';
 import { control } from '../edit/control';
@@ -201,8 +201,10 @@ export class gameManager extends Component {
     }
 
     public backGameList(){
-        this.unscheduleAllCallbacks()
-        this.mGameRun.backGameList()
+        if(this.getLevelData()!=null){
+            this.unscheduleAllCallbacks()
+            this.mGameRun.backGameList()
+        }
     }
 
     public initEvent(){
@@ -466,6 +468,19 @@ export class gameManager extends Component {
         return taskServce.guo_ju_qing_binding_event_id==-1;
     }
 
+    public checkWidgetList(list:other_widget_finish_listen_item[]):number{
+        let event_id = -1;
+        for (let index = 0; index < list.length; index++) {
+            const item = list[index];
+            let isFinish =  this.mGameRun.isCurScenePageCheckWidgetFinish(item.widget_id)
+            if(!isFinish){
+                event_id = item.event_id;
+                break;
+            }
+        }
+        return event_id;
+    }
+
     //点击按钮音效
     public sys_click_button_music(){
         if(gameManager.sys_data!=null){

+ 4 - 0
assets/script/run/game_run.ts

@@ -68,6 +68,10 @@ export class game_run extends Component {
         })
     }
 
+    public isCurScenePageCheckWidgetFinish(widget_id:number):boolean{
+       return this.scene_layer.getComponent(scene_layer).isCurScenePageCheckWidgetFinish(widget_id)
+    }
+
     public showGameList(call){
         this.game_list.active = true;
         this.game_list.getComponent(game_list).initView(call,()=>{

+ 46 - 3
assets/script/run/scene_layer.ts

@@ -14,6 +14,7 @@ export class scene_layer extends Component {
     @property(Node) scenePageDir:Node = null;
     protected mScenePages:scene_item_data[] =[]
     private mCurPage:number = 0;
+    private mAudioList:Map<string,Node> = new Map;
     protected start(): void {
         this.node.addComponent(AudioSource)
     }
@@ -29,6 +30,7 @@ export class scene_layer extends Component {
         this.content.removeAllChildren()
         this.mScenePages = []
         this.mCurPage = 0;
+        this.mAudioList.clear()
         ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
     }
 
@@ -50,12 +52,44 @@ export class scene_layer extends Component {
             }
             if(is_can_play){
                 if(event.event_item_play_sound_data!=null){
-                    this.getAudioSource().clip = gameManager.getCacheSoundByName(event.event_item_play_sound_data.sound_res.url);
-                    this.getAudioSource().play();
-                    this.getAudioSource().volume = 1;
+                    if(event.event_item_play_sound_data.isLoop==undefined){
+                        event.event_item_play_sound_data.isLoop = false;
+                    }
+                    if(event.event_item_play_sound_data.volume==undefined){
+                        event.event_item_play_sound_data.volume = 1;
+                    }
+                    this.addAudioItemAndPlay(event.event_item_play_sound_data.sound_res.url,event.event_item_play_sound_data.volume ,event.event_item_play_sound_data.isLoop)
                 }
             }
    
+        }else if(event.type===config.event_type.stop_play_loop_sound){
+            if(event.event_item_stop_play_loop_sound_data!=null){
+                this.deleteAudioItem(event.event_item_stop_play_loop_sound_data.res)
+            }
+        }
+    }
+
+    addAudioItemAndPlay(res:string, volume:number,isLopp:boolean = false){
+        let content = this.getCurScenePage().node;
+        let audio_node = this.mAudioList.get(res)
+        if(audio_node==null){
+            audio_node = new Node
+            audio_node.parent = content;
+            audio_node.addComponent(AudioSource)
+            this.mAudioList.set(res,audio_node)
+        }
+        audio_node.getComponent(AudioSource).clip = gameManager.getCacheSoundByName(res);
+        audio_node.getComponent(AudioSource).play();
+        audio_node.getComponent(AudioSource).volume = volume;
+        audio_node.getComponent(AudioSource).loop = isLopp;
+    }
+
+    deleteAudioItem(res:string){
+        let audio_node = this.mAudioList.get(res)
+        if(audio_node){
+            audio_node.getComponent(AudioSource).stop()
+            audio_node.removeFromParent()
+            this.mAudioList.delete(res)
         }
     }
     changePage(page:number){
@@ -92,6 +126,15 @@ export class scene_layer extends Component {
         this.changePage(0)
     }
 
+    public getCurScenePage(){
+        return this.content.children[this.mCurPage].getComponent(scene_page)
+    }
+
+    public isCurScenePageCheckWidgetFinish(widget_id:number):boolean{
+        let page:scene_page = this.getCurScenePage()
+        return  page.checkFinish(widget_id)
+    }
+
     onUp(){
         let up_page = this.mCurPage -1;
         if(up_page>=0){

+ 18 - 0
assets/script/run/scene_page.ts

@@ -5,6 +5,7 @@ import { tools } from '../tools';
 import { gameManager } from './gameManager';
 import { widget_base } from './widget/widget_base';
 import { ClientEvent } from '../clientEvent';
+import { widget_drag } from './widget/widget_drag';
 const { ccclass, property } = _decorator;
 class BindTarget{
     color : Color;
@@ -54,6 +55,14 @@ export class scene_page extends Component {
         ClientEvent.on(config.EventRun.SHOW_ZHAO_BU_TONG_FINISH_STATUS,this.on_zhao_bu_tong_finish.bind(this),this)
     }
 
+    public checkFinish(widget_id:number):boolean{
+        let widget = this.mWidgetList.get(widget_id)
+        if(!widget){
+            tools.showToast("配置监听其他控件错误")
+            return true
+        }
+        return widget.getComponent(widget_base).getIsFinish();
+    }
     protected onDestroy(): void {
         this.mWidgetList.clear()
         ClientEvent.off(config.EventRun.SHOW_ZHAO_BU_TONG_FINISH_STATUS,this.on_zhao_bu_tong_finish.bind(this),this)
@@ -80,6 +89,15 @@ export class scene_page extends Component {
             }else{
                 return tools.showToast(`错误的动画配置!id:${this.mData.att.id}-请检查`)
             }
+        }else if(event.type===config.event_type.delete_drag_other_data){
+            let wd = event.event_item_delete_drag_other_data.widget_id
+            let index = event.event_item_delete_drag_other_data.delete_drag_other_index
+            item = this.mWidgetList.get(wd)
+            if(item){
+                item.getComponent(widget_drag).deleteOtherDrag(index)
+            }else{
+                tools.showToast("删除拖拽目标配置错误!")
+            }
         }
     }
     on_zhao_bu_tong_finish(widget:zhao_xi_jie_item_data){

+ 11 - 3
assets/script/run/ui/sound_text_content.ts

@@ -16,11 +16,19 @@ export class sound_text_content extends Component {
     protected start(): void {
         this.node.addComponent(AudioSource)
     }
-
+    public isCanClose(){
+        if(this.mData.is_open_click_close==undefined){
+            this.mData.is_open_click_close = true;
+            return true;
+        }
+        return this.mData.is_open_click_close;
+    }
     public show(widget_id,data:att_text_sound_data,ac:AudioClip){
         this.node.on(Node.EventType.TOUCH_START,()=>{
-            this.node.off(Node.EventType.TOUCH_START)
-            this.onAudioEnded()
+            if(this.isCanClose()){
+                this.node.off(Node.EventType.TOUCH_START)
+                this.onAudioEnded()
+            }
         })
         this.mWidgetId = widget_id;
         this.mData = data;

+ 5 - 0
assets/script/run/ui/win.ts

@@ -12,6 +12,7 @@ export class win extends Component {
     private m_call_share = null;
     private m_call_next = null;
     public show(call_share,call_next){
+        this.node.active = true;
         this.m_call_next = call_next;
         this.m_call_share = call_share;
         this.btn_share.off(Node.EventType.TOUCH_END)
@@ -28,6 +29,10 @@ export class win extends Component {
                 this.m_call_next()
             }
         })
+        this.btn_close.on(Node.EventType.TOUCH_END,()=>{
+            this.node.active = false;
+            gameManager.Singleton.backGameList()
+        })
         if(gameManager.Singleton.getLevelData()!=null){
             tools.loadUrl(gameManager.Singleton.getLevelData().complete_img,this.icon.getComponent(Sprite))
         }

+ 1 - 1
assets/script/run/widget/widget_base.ts

@@ -223,7 +223,7 @@ export class widget_base extends Component {
         color_opactiy_tw_size.start();
 
     }
-    protected getIsFinish():boolean{
+    public getIsFinish():boolean{
         return this.mIsFinish
     }
     protected registeredEvent(){

+ 44 - 5
assets/script/run/widget/widget_drag.ts

@@ -11,10 +11,24 @@ export class widget_drag extends widget_base {
     private offset_x:number = 0;
     private offset_y:number = 0;
     private mDragRect:Rect = null;
+    private other_drag_list:att_drag_data[] = [];
     protected init(){
         if(this.mData.att.drag_data!=null){
             this.mDragData = this.mData.att.drag_data
         }
+        if(this.mData.att.drag_data.other_drag_list!=undefined){
+            for (let index = 0; index <  this.mData.att.drag_data.other_drag_list.length; index++) {
+                const element =  this.mData.att.drag_data.other_drag_list[index];
+                let item = new att_drag_data;
+                item.drag_pos_x = element.drag_pos_x;
+                item.drag_pos_y = element.drag_pos_y;
+                item.other_event_id = element.other_event_id;
+                item.drag_size_width = element.drag_size_width;
+                item.drag_size_height = element.drag_size_height;
+                this.other_drag_list.push(item)
+            }
+        }
+
     }
     protected start(): void {
         if(this.mIsActive){
@@ -24,7 +38,6 @@ export class widget_drag extends widget_base {
     protected registeredEvent(): void {
         this.node.on(Node.EventType.TOUCH_START,(et:EventTouch)=>{
             if(!this.mIsActive) return
-            console.log("target",et.target)
             this.mIsStartMove = true;
             let p = new Vec3(et.getUILocation().x,et.getUILocation().y)
             let n_p = this.node.parent.getComponent(UITransform).convertToNodeSpaceAR(p)
@@ -54,9 +67,9 @@ export class widget_drag extends widget_base {
             return false;
         }
         let isCheck = false;
-        if(this.mDragData.other_drag_list.length>0){
-            for (let index = 0; index < this.mDragData.other_drag_list.length; index++) {
-                const item_data = this.mDragData.other_drag_list[index];
+        if(this.other_drag_list.length>0){
+            for (let index = 0; index < this.other_drag_list.length; index++) {
+                const item_data = this.other_drag_list[index];
                 let w = item_data.drag_size_width;
                 let h = item_data.drag_size_height;
                 let pos =  new Vec3(this.mData.att.x+item_data.drag_pos_x,this.mData.att.y+item_data.drag_pos_y)
@@ -78,10 +91,36 @@ export class widget_drag extends widget_base {
         return isCheck;
     }
 
+    checkOtherListenWidgetFinish(){
+        let is_finish = true;
+        if(this.mDragData.other_widget_finish_listen_list==undefined){
+            return true
+        }
+        if(this.mDragData.other_widget_finish_listen_list.length<=0){
+            return true;
+        }
+        let event_id = gameManager.Singleton.checkWidgetList(this.mDragData.other_widget_finish_listen_list)
+        if(event_id==-1){
+            is_finish = true;
+        }else{
+            is_finish = false;
+            gameManager.Singleton.exeEvent(event_id)
+        }
+        return is_finish;
+    }
+
+    public deleteOtherDrag(index:number){
+        this.other_drag_list.splice(index,1)
+    }
+
     private checkOnecFinish(){
         if(this.checkMoveToDragRect()){
             this.mIsStartMove = false;
-            this.onFinishEvent()
+            if(this.checkOtherListenWidgetFinish()){
+                this.onFinishEvent()
+            }else{
+
+            }
         }else{
 
             if(this.checkOther()){

+ 9 - 0
assets/script/tools.ts

@@ -26,6 +26,7 @@ import { config } from './config';
 import { edit_event } from './edit/event/edit_event';
 import { select_sound_list } from './edit/select_sound_list';
 import { select_task_da_guai } from './edit/task/select_task_da_guai';
+import { edit_event_view } from './edit/event/edit_event_view';
 export class tools  {
 
     public static show_dialog(title="是否确定?",sure_callback,cancel_callback=null){
@@ -218,6 +219,14 @@ export class tools  {
         }) 
     }
 
+    public static show_edit_event_view(){
+        resources.load("prefab/ui/edit_event_view",Prefab,(err, prefab)=>{
+            let node:Node = instantiate(prefab);
+            node.parent = main.g_canvas.node;
+            node.getComponent(edit_event_view).show()
+        }) 
+    }
+
     public static show_select_dir(call){
         resources.load("prefab/show_select_z_index",Prefab,(err, prefab)=>{
             let node:Node = instantiate(prefab);

Some files were not shown because too many files changed in this diff