future 1 год назад
Родитель
Сommit
4dca6b23b2

+ 861 - 44
assets/resources/prefab/scene_select_list_item.prefab

@@ -20,25 +20,28 @@
     "_children": [
       {
         "__id__": 2
+      },
+      {
+        "__id__": 10
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 10
+        "__id__": 44
       },
       {
-        "__id__": 12
+        "__id__": 46
       },
       {
-        "__id__": 14
+        "__id__": 48
       },
       {
-        "__id__": 16
+        "__id__": 50
       }
     ],
     "_prefab": {
-      "__id__": 18
+      "__id__": 52
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -136,7 +139,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1920,
+      "width": 1919.9999999999998,
       "height": 37.8
     },
     "_anchorPoint": {
@@ -244,22 +247,186 @@
     "targetOverrides": null,
     "nestedPrefabInstanceRoots": null
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "Node",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 25
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 39
+      },
+      {
+        "__id__": 41
+      }
+    ],
+    "_prefab": {
+      "__id__": 43
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 879.9999999999999,
+      "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": "btn_up",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 12
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 18
+      },
+      {
+        "__id__": 20
+      },
+      {
+        "__id__": 22
+      }
+    ],
+    "_prefab": {
+      "__id__": 24
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -35,
+      "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__": 11
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 13
+      },
+      {
+        "__id__": 15
+      }
+    ],
+    "_prefab": {
+      "__id__": 17
+    },
+    "_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__": 1
+      "__id__": 12
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 11
+      "__id__": 14
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1920,
-      "height": 100
+      "width": 50,
+      "height": 50
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -270,43 +437,93 @@
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "84T+S0LKRDS4Ph7k6tZ8V1"
+    "fileId": "8faRKMyVRMm4RvEqXUjA4w"
   },
   {
-    "__type__": "cc.Widget",
+    "__type__": "cc.Label",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 16
+    },
+    "_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": 1,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a6DfyEKZtJbI0Z0yswyob2"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
       "__id__": 1
     },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "7caGRIxpZAy7eqgb+MRvFs",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
     "_enabled": true,
     "__prefab": {
-      "__id__": 13
+      "__id__": 19
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
     },
-    "_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": 100,
-    "_originalHeight": 0,
-    "_alignMode": 2,
-    "_lockFlags": 0,
     "_id": ""
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "e5MN5syNJOB7jrE3c/+F8q"
+    "fileId": "ee3laXaX1FhbQqxLeU6lqi"
   },
   {
     "__type__": "cc.Sprite",
@@ -314,27 +531,27 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 1
+      "__id__": 11
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 15
+      "__id__": 21
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
     "_dstBlendFactor": 4,
     "_color": {
       "__type__": "cc.Color",
-      "r": 190,
-      "g": 182,
-      "b": 182,
+      "r": 255,
+      "g": 255,
+      "b": 255,
       "a": 255
     },
     "_spriteFrame": {
       "__uuid__": "b730527c-3233-41c2-aaf7-7cdab58f9749@f9941",
       "__expectedType__": "cc.SpriteFrame"
     },
-    "_type": 0,
+    "_type": 1,
     "_fillType": 0,
     "_sizeMode": 0,
     "_fillCenter": {
@@ -351,22 +568,622 @@
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "9bGq9FylJH/7HPJ1wfEq5J"
+    "fileId": "866hEfqM5KLq4P6gdKRcBw"
   },
   {
-    "__type__": "8b2fb8u58BFRqFUnozzIHt+",
+    "__type__": "cc.Button",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 1
+      "__id__": 11
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 17
+      "__id__": 23
     },
-    "lab_name": {
-      "__id__": 2
+    "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__": 11
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c2TcOdAuFG5ZbTFK0oHq7v"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c8vrlwq3tHtamwPen6BkXw",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_down",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [
+      {
+        "__id__": 26
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 32
+      },
+      {
+        "__id__": 34
+      },
+      {
+        "__id__": 36
+      }
+    ],
+    "_prefab": {
+      "__id__": 38
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 35,
+      "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__": 25
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 27
+      },
+      {
+        "__id__": 29
+      }
+    ],
+    "_prefab": {
+      "__id__": 31
+    },
+    "_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__": 26
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 28
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 50,
+      "height": 50
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9189l/SA9AIIApMZ2EP6KY"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 26
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 30
+    },
+    "_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": 1,
+    "_enableWrapText": false,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "1e7z5ygxNFErGXen8VW2U+"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a7D49MHsRHUbnwvgCFZJN/",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 25
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 33
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "63zEzieoZG7Zz5zRXQ9iTy"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 25
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 35
+    },
+    "_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": "4aFKGOR09AXbGihEGr86yw"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 25
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 37
+    },
+    "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__": 25
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "1fFrvtugNOzpug2yep7dYj"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "14kPEumWNMk7SPHM18+y2n",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 40
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 120,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "69jElxfSpPlruKGj4C3ndw"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 42
+    },
+    "_alignFlags": 37,
+    "_target": null,
+    "_left": 1564.7799999999997,
+    "_right": 20,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 300,
+    "_originalHeight": 100,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "eceqDajrxPH62mlEPF19AI"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "2eYtfBtzZAULXnzcLTvzhW",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 45
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1919.9999999999998,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "84T+S0LKRDS4Ph7k6tZ8V1"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 47
+    },
+    "_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": 100,
+    "_originalHeight": 0,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e5MN5syNJOB7jrE3c/+F8q"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 49
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 190,
+      "g": 182,
+      "b": 182,
+      "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": "9bGq9FylJH/7HPJ1wfEq5J"
+  },
+  {
+    "__type__": "8b2fb8u58BFRqFUnozzIHt+",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 51
+    },
+    "lab_name": {
+      "__id__": 2
+    },
+    "btn_up": {
+      "__id__": 11
+    },
+    "btn_down": {
+      "__id__": 25
     },
     "_id": ""
   },

+ 1 - 0
assets/script/config.ts

@@ -6,6 +6,7 @@ const { ccclass, property } = _decorator;
 export class config {
     static debug = true;
     static domain = "https://zcapi.xwrun.com";
+    static is_MAC_edit = false; //目前临时处理
     static select_res_and_control_type = {
         RES_TYPE:0,
         CONTROL_TYPE:1,

+ 28 - 3
assets/script/edit/scene_select_list.ts

@@ -4,6 +4,7 @@ import { scene_item_data } from '../../data/data';
 import { scene_select_list_item } from './scene_select_list_item';
 import { ClientEvent } from '../clientEvent';
 import { config } from '../config';
+import { tools } from '../tools';
 const { ccclass, property } = _decorator;
 
 @ccclass('scene_select_list')
@@ -20,15 +21,20 @@ export class scene_select_list extends Component {
         ClientEvent.on(config.Event.UpdateSceneList,this.onUpdateSceneList,this)
     }
 
-    onUpdateSceneList(){
+    onUpdateSceneList(is_move:boolean = false){
         let list = this.m_main.control_view.get_bag_data().content;
-        this.cur_select_index = list.length>0?list.length-1:0;
+        if(is_move==false) {
+            this.cur_select_index = list.length>0?list.length-1:0;
+        }
         this.content.removeAllChildren()
         for (let index = 0; index < list.length; index++) {
             const element:scene_item_data = list[index];
             let item = instantiate(this.scene_select_list_item_prefab)
             item.parent = this.content;
-            item.getComponent(scene_select_list_item).initView(element,this.onItemSelect.bind(this),index)
+            let scene_select_list_item_component = item.getComponent(scene_select_list_item)
+            scene_select_list_item_component.initView(list.length,element,this.onItemSelect.bind(this),index)
+            scene_select_list_item_component.moveCallback(this.onItemMoveClick.bind(this))
+            
         }
         this.updaetSelectStatus()
     }
@@ -42,6 +48,25 @@ export class scene_select_list extends Component {
         }
     }
 
+    onItemMoveClick(item:scene_select_list_item, is_up:boolean) {
+        // let list = this.m_main.control_view.get_bag_data().content;
+        // let c_index = item.getIndex()
+        // let c_data = list[c_index]
+        // let move_index=-1;
+        // if(is_up) {
+        //     move_index = c_index - 1
+        //     this.cur_select_index -=1
+        // } else {
+        //     move_index = c_index + 1
+        //     this.cur_select_index +=1
+        // }
+        // if(move_index == -1) {return}
+        // let move_data = list[move_index]
+        // list[c_index] = move_data
+        // list[move_index] = c_data
+        // this.onUpdateSceneList(true)
+    }
+
     updaetSelectStatus(){
         for (let index = 0; index < this.content.children.length; index++) {
             const element = this.content.children[index];

+ 46 - 6
assets/script/edit/scene_select_list_item.ts

@@ -5,23 +5,49 @@ const { ccclass, property } = _decorator;
 @ccclass('scene_select_list_item')
 export class scene_select_list_item extends Component {
     @property(Node) lab_name:Node = null;
+    @property(Node) btn_up:Node = null;
+    @property(Node) btn_down:Node = null;
     private m_data:scene_item_data = null;
     private m_is_select:boolean = false;
     private m_call_back = null;
+    private m_dataListLength:number = 0;
     private m_index:number = 0;
-    public initView(data:scene_item_data,call,index){
+    private m_move_call_back = null;
+
+    protected start(): void {
+        this.node.on(Node.EventType.TOUCH_END,()=>{
+            if( this.m_call_back!=null){
+                this.m_call_back(this)
+            }
+        })
+        this.btn_up.on(Node.EventType.TOUCH_END, ()=> {
+            if(this.m_move_call_back!=null) {
+                this.m_move_call_back(this,true)
+            }
+        })
+        this.btn_down.on(Node.EventType.TOUCH_END, ()=> {
+            if(this.m_move_call_back!=null) {
+                this.m_move_call_back(this,false)
+            }
+        })
+    }
+
+    public initView(dataListLength:number,data:scene_item_data,call,index){
+        this.m_dataListLength = dataListLength
         this.m_data = data;
         this.m_call_back  = call;
         this.m_call_back = call;
         this.m_index = index;
         this.lab_name.getComponent(Label).string = this.m_data.scene_diy_name
         this.updatSelectStatus()
-        this.node.on(Node.EventType.TOUCH_END,()=>{
-            if( this.m_call_back!=null){
-                this.m_call_back(this)
-            }
-        })
+        this.updateUpDownBtnStatus()
+    }
+
+
+    public moveCallback(callback:Function) {
+        this.m_move_call_back = callback
     }
+    
     getIndex(){
         return this.m_index;
     }
@@ -38,6 +64,20 @@ export class scene_select_list_item extends Component {
         }
     }
 
+    updateUpDownBtnStatus() {
+        if(this.m_index==0) {
+            this.btn_up.active = false
+        } else {
+            this.btn_up.active = true
+        }
+
+        if(this.m_index >= this.m_dataListLength - 1) {
+            this.btn_down.active = false
+        } else {
+            this.btn_down.active = true
+        }
+    }
+
     public getSelect(){
         return this.m_is_select;
     }

+ 31 - 21
assets/script/edit/widget_item.ts

@@ -231,17 +231,25 @@ export class widget_item extends Component {
         this.m_data = data;
         this.initWidgetHaveAtt(att)
         if(this.m_data.type===config.Widget_Type_List.UI_TOP){ //弹窗不可以拖动
-            // this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
-            //     ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
-            // })
-            this.node.on(Node.EventType.TOUCH_END,(et:EventTouch)=>{
+            // MAC电脑浏览器
+            if(config.is_MAC_edit) {
+                this.node.on(Node.EventType.TOUCH_END,(et:EventTouch)=>{
+                    ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
+                })
+                return
+            }
+            this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
                 ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
             })
         }else if(this.m_data.type===config.Widget_Type_List.TEXT_SOUND){
-            // this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
-            //     ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
-            // })
-            this.node.on(Node.EventType.TOUCH_END,(et:EventTouch)=>{
+            // MAC电脑浏览器
+            if(config.is_MAC_edit) {
+                this.node.on(Node.EventType.TOUCH_END,(et:EventTouch)=>{
+                    ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
+                })
+                return
+            }
+            this.node.on(Node.EventType.MOUSE_DOWN,(et:EventTouch)=>{
                 ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
             })
         }else{
@@ -289,19 +297,21 @@ export class widget_item extends Component {
                 this.x_len =  0;
                 this.y_len = 0;
 
-                // mac电脑浏览器
-                let pos = this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
-                if(this.x_len==0){
-                    this.x_len = (et.getUILocation().x - pos.x)*2;
-                    this.y_len = (et.getUILocation().y - pos.y)*2;
-                    let p = new Vec3(et.getUILocation().x,et.getUILocation().y)
-                    let n_p = this.node.parent.getComponent(UITransform).convertToNodeSpaceAR(p)
-                    this.node.position = new Vec3(n_p.x-this.x_len,n_p.y-this.y_len);
-                    // console.log("a_x",this.x_len, this.y_len ,et.getUILocation().x,this.m_att.width)
-                }
-                // console.log("this.x_len",this.x_len,this.y_len)
-                this.isMove = true;
-                ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
+                 // MAC电脑浏览器
+                if(config.is_MAC_edit) {
+                    let pos = this.node.parent.getComponent(UITransform).convertToWorldSpaceAR(this.node.position)
+                    if(this.x_len==0){
+                        this.x_len = (et.getUILocation().x - pos.x)*2;
+                        this.y_len = (et.getUILocation().y - pos.y)*2;
+                        let p = new Vec3(et.getUILocation().x,et.getUILocation().y)
+                        let n_p = this.node.parent.getComponent(UITransform).convertToNodeSpaceAR(p)
+                        this.node.position = new Vec3(n_p.x-this.x_len,n_p.y-this.y_len);
+                        // console.log("a_x",this.x_len, this.y_len ,et.getUILocation().x,this.m_att.width)
+                    }
+                    // console.log("this.x_len",this.x_len,this.y_len)
+                    this.isMove = true;
+                    ClientEvent.dispatchEvent(config.Event.UpdateAttributes,this.getWidgetAtt())
+                } 
             })
           
         }