Преглед изворни кода

修改编辑器之前的可用版本

Citrus пре 7 месеци
родитељ
комит
a81a2a81f6

+ 1 - 526
assets/sub/Scene/Hall.fire

@@ -15,21 +15,6 @@
     "_children": [
       {
         "__id__": 2
-      },
-      {
-        "__id__": 106
-      },
-      {
-        "__id__": 108
-      },
-      {
-        "__id__": 110
-      },
-      {
-        "__id__": 112
-      },
-      {
-        "__id__": 114
       }
     ],
     "_active": false,
@@ -3926,7 +3911,7 @@
         "__id__": 92
       }
     ],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 97
@@ -4484,515 +4469,5 @@
       "__id__": 101
     },
     "_id": "296pfEyVdDwYXAMMBzY6jc"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "站着鹈鹕",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 107
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 575.93,
-      "height": 596.96
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        466.24,
-        593.542,
-        0,
-        0,
-        0,
-        0,
-        1,
-        0.5,
-        0.5,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "6b70YclDhIDo8Ay8KDl1tu"
-  },
-  {
-    "__type__": "sp.Skeleton",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 106
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
-      }
-    ],
-    "paused": false,
-    "defaultSkin": "default",
-    "defaultAnimation": "animation",
-    "_preCacheMode": 0,
-    "_cacheMode": 0,
-    "loop": true,
-    "premultipliedAlpha": true,
-    "timeScale": 1,
-    "_accTime": 0,
-    "_playCount": 0,
-    "_frameCache": null,
-    "_curFrame": null,
-    "_skeletonCache": null,
-    "_animationName": "animation",
-    "_animationQueue": [],
-    "_headAniInfo": null,
-    "_playTimes": 0,
-    "_isAniComplete": true,
-    "_N$skeletonData": {
-      "__uuid__": "4837ce43-ad90-417a-a8d5-8fdae6108068"
-    },
-    "_N$_defaultCacheMode": 0,
-    "_N$debugSlots": false,
-    "_N$debugBones": false,
-    "_N$debugMesh": false,
-    "_N$useTint": false,
-    "_N$enableBatch": false,
-    "_id": "a6LNOayqdPea3Z3OXOXq3N"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "飞鹈鹕",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 109
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 636.18,
-      "height": 576.6
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        244,
-        244,
-        0,
-        0,
-        0,
-        0,
-        1,
-        0.5,
-        0.5,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "d463cazsJPm50MbUm8LauD"
-  },
-  {
-    "__type__": "sp.Skeleton",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 108
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
-      }
-    ],
-    "paused": false,
-    "defaultSkin": "default",
-    "defaultAnimation": "animation",
-    "_preCacheMode": 0,
-    "_cacheMode": 0,
-    "loop": true,
-    "premultipliedAlpha": true,
-    "timeScale": 1,
-    "_accTime": 0,
-    "_playCount": 0,
-    "_frameCache": null,
-    "_curFrame": null,
-    "_skeletonCache": null,
-    "_animationName": "animation",
-    "_animationQueue": [],
-    "_headAniInfo": null,
-    "_playTimes": 0,
-    "_isAniComplete": true,
-    "_N$skeletonData": {
-      "__uuid__": "7e70dc09-577c-4b2e-ad8d-2d33979c2840"
-    },
-    "_N$_defaultCacheMode": 0,
-    "_N$debugSlots": false,
-    "_N$debugBones": false,
-    "_N$debugMesh": false,
-    "_N$useTint": false,
-    "_N$enableBatch": false,
-    "_id": "feyYXPBMxM0bfIPpYsU+7D"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "New Sprite",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 111
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 40,
-      "height": 36
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        163.104,
-        398.816,
-        0,
-        0,
-        0,
-        0,
-        1,
-        2,
-        2,
-        0.5
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "61O1e/IRRI/YDKxhrPfvrq"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 110
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
-    },
-    "_type": 0,
-    "_sizeMode": 1,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": "a43TfIwPZGDr0QFCdxpPIa"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "飞鹈鹕",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 113
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 636.18,
-      "height": 576.6
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        244,
-        244,
-        0,
-        0,
-        0,
-        0,
-        1,
-        0.5,
-        0.5,
-        0.25
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "fdhqbMmL1HJIXLRqtPZsow"
-  },
-  {
-    "__type__": "sp.Skeleton",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 112
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
-      }
-    ],
-    "paused": false,
-    "defaultSkin": "default",
-    "defaultAnimation": "animation",
-    "_preCacheMode": 0,
-    "_cacheMode": 0,
-    "loop": true,
-    "premultipliedAlpha": true,
-    "timeScale": 1,
-    "_accTime": 0,
-    "_playCount": 0,
-    "_frameCache": null,
-    "_curFrame": null,
-    "_skeletonCache": null,
-    "_animationName": "animation",
-    "_animationQueue": [],
-    "_headAniInfo": null,
-    "_playTimes": 0,
-    "_isAniComplete": true,
-    "_N$skeletonData": {
-      "__uuid__": "7e70dc09-577c-4b2e-ad8d-2d33979c2840"
-    },
-    "_N$_defaultCacheMode": 0,
-    "_N$debugSlots": false,
-    "_N$debugBones": false,
-    "_N$debugMesh": false,
-    "_N$useTint": false,
-    "_N$enableBatch": false,
-    "_id": "3dHCV+jQhFpaNV/PO5r7sw"
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "掉落方块",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 115
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 213,
-      "height": 67
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        611.256,
-        373.807,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "6bMEfoUqlFJqk2TwbNznd8"
-  },
-  {
-    "__type__": "sp.Skeleton",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 114
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
-      }
-    ],
-    "paused": false,
-    "defaultSkin": "default",
-    "defaultAnimation": "dowm",
-    "_preCacheMode": 0,
-    "_cacheMode": 0,
-    "loop": true,
-    "premultipliedAlpha": true,
-    "timeScale": 1,
-    "_accTime": 0,
-    "_playCount": 0,
-    "_frameCache": null,
-    "_curFrame": null,
-    "_skeletonCache": null,
-    "_animationName": "dowm",
-    "_animationQueue": [],
-    "_headAniInfo": null,
-    "_playTimes": 0,
-    "_isAniComplete": true,
-    "_N$skeletonData": {
-      "__uuid__": "e35f6f69-7ca4-46b8-bcc9-a3e82594788d"
-    },
-    "_N$_defaultCacheMode": 0,
-    "_N$debugSlots": false,
-    "_N$debugBones": false,
-    "_N$debugMesh": false,
-    "_N$useTint": false,
-    "_N$enableBatch": false,
-    "_id": "25N+oH1/tOzIBLVcpMWRqb"
   }
 ]

+ 0 - 111
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.atlas

@@ -1,111 +0,0 @@
-
-站着鹈鹕.png
-size: 398,1015
-format: RGBA8888
-filter: Linear,Linear
-repeat: none
-chibang
-  rotate: true
-  xy: 2, 2
-  size: 256, 196
-  orig: 258, 198
-  offset: 1, 1
-  index: -1
-maofa
-  rotate: false
-  xy: 200, 62
-  size: 143, 132
-  orig: 146, 134
-  offset: 2, 1
-  index: -1
-shenti
-  rotate: true
-  xy: 2, 260
-  size: 408, 201
-  orig: 410, 203
-  offset: 1, 1
-  index: -1
-tou
-  rotate: false
-  xy: 205, 356
-  size: 183, 312
-  orig: 186, 314
-  offset: 1, 1
-  index: -1
-weijin
-  rotate: true
-  xy: 205, 196
-  size: 158, 175
-  orig: 160, 177
-  offset: 1, 1
-  index: -1
-weijin3
-  rotate: false
-  xy: 275, 736
-  size: 72, 74
-  orig: 74, 76
-  offset: 1, 1
-  index: -1
-youjiao
-  rotate: false
-  xy: 275, 907
-  size: 121, 106
-  orig: 136, 108
-  offset: 14, 1
-  index: -1
-youyan
-  rotate: true
-  xy: 275, 675
-  size: 59, 68
-  orig: 61, 70
-  offset: 1, 1
-  index: -1
-youyanbiyan
-  rotate: true
-  xy: 349, 751
-  size: 59, 42
-  orig: 61, 46
-  offset: 1, 3
-  index: -1
-youyanzhayan
-  rotate: false
-  xy: 262, 18
-  size: 59, 42
-  orig: 61, 46
-  offset: 1, 3
-  index: -1
-zui
-  rotate: false
-  xy: 2, 670
-  size: 271, 343
-  orig: 274, 345
-  offset: 1, 1
-  index: -1
-zuojiao
-  rotate: false
-  xy: 275, 812
-  size: 120, 93
-  orig: 122, 95
-  offset: 1, 1
-  index: -1
-zuoyan
-  rotate: true
-  xy: 200, 15
-  size: 45, 60
-  orig: 47, 63
-  offset: 1, 2
-  index: -1
-zuoyanbiyan
-  rotate: false
-  xy: 345, 115
-  size: 38, 33
-  orig: 40, 35
-  offset: 1, 1
-  index: -1
-zuoyanzayan
-  rotate: true
-  xy: 345, 150
-  size: 44, 42
-  orig: 46, 45
-  offset: 1, 1
-  index: -1

+ 0 - 6
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.atlas.meta

@@ -1,6 +0,0 @@
-{
-  "ver": "1.0.3",
-  "uuid": "ee115a1e-6e3a-44e8-9bea-38a0624cee23",
-  "importer": "asset",
-  "subMetas": {}
-}

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.json


+ 0 - 10
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.json.meta

@@ -1,10 +0,0 @@
-{
-  "ver": "1.2.5",
-  "uuid": "4837ce43-ad90-417a-a8d5-8fdae6108068",
-  "importer": "spine",
-  "textures": [
-    "f698201e-6682-4cba-acfb-5885fa708bfb"
-  ],
-  "scale": 1,
-  "subMetas": {}
-}

BIN
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.png


+ 0 - 38
assets/sub/Texture/Spine/鹈鹕/站着鹈鹕.png.meta

@@ -1,38 +0,0 @@
-{
-  "ver": "2.3.7",
-  "uuid": "f698201e-6682-4cba-acfb-5885fa708bfb",
-  "importer": "texture",
-  "type": "sprite",
-  "wrapMode": "clamp",
-  "filterMode": "bilinear",
-  "premultiplyAlpha": false,
-  "genMipmaps": false,
-  "packable": true,
-  "width": 398,
-  "height": 1015,
-  "platformSettings": {},
-  "subMetas": {
-    "站着鹈鹕": {
-      "ver": "1.0.6",
-      "uuid": "5f161dfb-faf5-4da6-a16e-7df8ca30f5fc",
-      "importer": "sprite-frame",
-      "rawTextureUuid": "f698201e-6682-4cba-acfb-5885fa708bfb",
-      "trimType": "auto",
-      "trimThreshold": 1,
-      "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 2,
-      "trimY": 2,
-      "width": 394,
-      "height": 1011,
-      "rawWidth": 398,
-      "rawHeight": 1015,
-      "borderTop": 0,
-      "borderBottom": 0,
-      "borderLeft": 0,
-      "borderRight": 0,
-      "subMetas": {}
-    }
-  }
-}

+ 0 - 132
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.atlas

@@ -1,132 +0,0 @@
-
-飞鹈鹕.png
-size: 1608,1087
-format: RGBA8888
-filter: Linear,Linear
-repeat: none
-maofa2
-  rotate: true
-  xy: 1471, 425
-  size: 143, 132
-  orig: 146, 134
-  offset: 2, 1
-  index: -1
-shangzui2
-  rotate: true
-  xy: 1367, 282
-  size: 286, 102
-  orig: 288, 104
-  offset: 1, 1
-  index: -1
-shenti2
-  rotate: false
-  xy: 1112, 884
-  size: 408, 201
-  orig: 410, 203
-  offset: 1, 1
-  index: -1
-tou2
-  rotate: false
-  xy: 1387, 570
-  size: 183, 312
-  orig: 186, 314
-  offset: 1, 1
-  index: -1
-weijin2
-  rotate: false
-  xy: 1416, 105
-  size: 158, 175
-  orig: 160, 177
-  offset: 1, 1
-  index: -1
-weijin3
-  rotate: false
-  xy: 1471, 349
-  size: 72, 74
-  orig: 74, 76
-  offset: 1, 1
-  index: -1
-xiazui2
-  rotate: false
-  xy: 1112, 586
-  size: 273, 296
-  orig: 275, 298
-  offset: 1, 1
-  index: -1
-youcibang2
-  rotate: false
-  xy: 1112, 21
-  size: 302, 255
-  orig: 304, 255
-  offset: 1, 0
-  index: -1
-youjiao2
-  rotate: true
-  xy: 1522, 996
-  size: 89, 81
-  orig: 96, 83
-  offset: 6, 1
-  index: -1
-youyan2
-  rotate: false
-  xy: 1500, 35
-  size: 59, 68
-  orig: 61, 70
-  offset: 1, 1
-  index: -1
-youyanbiyan2
-  rotate: false
-  xy: 1522, 952
-  size: 59, 42
-  orig: 61, 46
-  offset: 1, 3
-  index: -1
-youyanzhayan2
-  rotate: false
-  xy: 1471, 305
-  size: 59, 42
-  orig: 61, 46
-  offset: 1, 3
-  index: -1
-zuocibang2
-  rotate: false
-  xy: 1112, 278
-  size: 253, 306
-  orig: 253, 306
-  offset: 0, 0
-  index: -1
-zuojiao2
-  rotate: true
-  xy: 1416, 2
-  size: 101, 82
-  orig: 103, 84
-  offset: 1, 1
-  index: -1
-zuoyan2
-  rotate: false
-  xy: 1561, 43
-  size: 45, 60
-  orig: 47, 63
-  offset: 1, 2
-  index: -1
-zuoyanbiyan2
-  rotate: false
-  xy: 1522, 917
-  size: 38, 33
-  orig: 40, 35
-  offset: 1, 1
-  index: -1
-zuoyanzayan2
-  rotate: false
-  xy: 1545, 381
-  size: 44, 42
-  orig: 46, 45
-  offset: 1, 1
-  index: -1
-图层 31
-  rotate: false
-  xy: 2, 5
-  size: 1108, 1080
-  orig: 1110, 1082
-  offset: 1, 1
-  index: -1

+ 0 - 6
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.atlas.meta

@@ -1,6 +0,0 @@
-{
-  "ver": "1.0.3",
-  "uuid": "f9d91367-8f28-49c2-a7b2-1bfdbf0d7c70",
-  "importer": "asset",
-  "subMetas": {}
-}

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.json


+ 0 - 10
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.json.meta

@@ -1,10 +0,0 @@
-{
-  "ver": "1.2.5",
-  "uuid": "7e70dc09-577c-4b2e-ad8d-2d33979c2840",
-  "importer": "spine",
-  "textures": [
-    "d613524f-8204-4de9-a9eb-f5fccc2fff8b"
-  ],
-  "scale": 1,
-  "subMetas": {}
-}

BIN
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.png


+ 0 - 38
assets/sub/Texture/Spine/鹈鹕/飞鹈鹕.png.meta

@@ -1,38 +0,0 @@
-{
-  "ver": "2.3.7",
-  "uuid": "d613524f-8204-4de9-a9eb-f5fccc2fff8b",
-  "importer": "texture",
-  "type": "sprite",
-  "wrapMode": "clamp",
-  "filterMode": "bilinear",
-  "premultiplyAlpha": false,
-  "genMipmaps": false,
-  "packable": true,
-  "width": 1608,
-  "height": 1087,
-  "platformSettings": {},
-  "subMetas": {
-    "飞鹈鹕": {
-      "ver": "1.0.6",
-      "uuid": "5c948a38-a115-4993-8f81-66f445840fda",
-      "importer": "sprite-frame",
-      "rawTextureUuid": "d613524f-8204-4de9-a9eb-f5fccc2fff8b",
-      "trimType": "auto",
-      "trimThreshold": 1,
-      "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 2,
-      "trimY": 2,
-      "width": 1604,
-      "height": 1083,
-      "rawWidth": 1608,
-      "rawHeight": 1087,
-      "borderTop": 0,
-      "borderBottom": 0,
-      "borderLeft": 0,
-      "borderRight": 0,
-      "subMetas": {}
-    }
-  }
-}

+ 0 - 35
packages/citrus/main.js

@@ -1,35 +0,0 @@
-'use strict';
-
-module.exports = {
-  load() {
-
-  },
-  unload() {
-    // execute when package unloaded
-  },
-  // register your ipc messages here
-  messages: {
-    'NodeActiveDis'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-active', {});
-    },
-    'GetNodeThree'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-getThree', {});
-    },
-    'GetNodeImageThree'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-getImageThree', {});
-    },
-    'LoadingImagee'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-LoadingImagee', {});
-    },
-    'ReplaceImagee'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-ReplaceImagee', {});
-    },
-    'Nodejson'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-Nodejson', {});
-    },
-    'RestSetName'() {
-      Editor.Scene.callSceneScript('citrus', 'citrus-RestSetName', {});
-    },
-  },
-};
-

+ 0 - 49
packages/citrus/package.json

@@ -1,49 +0,0 @@
-{
-  "name": "citrus",
-  "version": "0.0.4",
-  "scene-script": "panel/citrus.js",
-  "description": "The package template for getting started.",
-  "author": "Cocos Creator",
-  "main": "main.js",
-  "main-menu": {
-    "i18n:MAIN_MENU.package.title/citrus/显示节点": { 
-      "message": "citrus:NodeActiveDis",
-      "accelerator": "alt+s"  
-    }, 
-    "i18n:MAIN_MENU.package.title/citrus/获取节点": {
-      "message": "citrus:GetNodeThree",   
-      "accelerator": "alt+c"     
-    }, 
-    "i18n:MAIN_MENU.package.title/citrus/重命名": {    
-      "message": "citrus:RestSetName", 
-      "accelerator": "alt+b"   
-    },
-    "i18n:MAIN_MENU.package.title/citrus/ImageJson": {
-      "message": "citrus:GetNodeImageThree",  
-      "accelerator": "alt+p" 
-    },
-    "i18n:MAIN_MENU.package.title/citrus/加载图片": {
-      "message": "citrus:LoadingImagee", 
-      "accelerator": "alt+o"
-    },
-    "i18n:MAIN_MENU.package.title/citrus/替换图片": {
-      "message": "citrus:ReplaceImagee",
-      "accelerator": "alt+i"
-    },
-    "i18n:MAIN_MENU.package.title/citrus/NodeJson": { 
-      "message": "citrus:Nodejson",
-      "accelerator": "alt+u"
-    }
-  } 
-}
-
-
-
- 
-
-
-
-
-
-
-

+ 0 - 371
packages/citrus/panel/citrus.js

@@ -1,371 +0,0 @@
-'use strict';
-var CopyStr = function (str) {
-  var input = str;
-  const el = document.createElement('textarea');
-  el.value = input;
-  el.setAttribute('readonly', '');
-  el.style.contain = 'strict';
-  el.style.position = 'absolute';
-  el.style.left = '-9999px';
-  el.style.fontSize = '12pt'; // Prevent zooming on iOS
-  const selection = getSelection();
-  var originalRange = false;
-  if (selection.rangeCount > 0) {
-    originalRange = selection.getRangeAt(0);
-  }
-  document.body.appendChild(el);
-  el.select();
-  el.selectionStart = 0;
-  el.selectionEnd = input.length;
-  var success = false;
-  try {
-    success = document.execCommand('copy');
-  } catch (err) { }
-  document.body.removeChild(el);
-  if (originalRange) {
-    selection.removeAllRanges();
-    selection.addRange(originalRange);
-  }
-  return success;
-}
-
-//第三个参数是否需要let
-var FindNodeParentName = function (CurrNode, ParentNode, HaveLet) {
-  let temp_node = CurrNode
-  let NameList = ""
-  while (1) {
-    if (temp_node.parent == ParentNode) {
-      NameList += temp_node.name
-      // NameList += temp_node.parent.name
-      let c = NameList.split("-").reverse()
-      let script_str
-      if (HaveLet) {
-        script_str = `let ${CurrNode.name} =this.node`
-        for (let index = 0; index < c.length; index++) {
-          const element = c[index];
-          script_str += `.getChildByName("${element}")`
-        }
-      } else {
-        script_str = []
-        script_str.push(ParentNode.name)
-        for (let index = 0; index < c.length; index++) {
-          const element = c[index];
-          script_str.push(element)
-        }
-      }
-      return script_str
-    } else {
-      NameList += temp_node.name + "-"
-      temp_node = temp_node.parent
-    }
-  }
-}
-
-//返回所有后代所有带精灵帧
-var SumNode = []//sprite[]
-var Return_ALL_Sp_By_Node = function (Curr_Node) {
-  SumNode = []
-  Return_ALL_Child(Curr_Node)
-  return SumNode
-}
-//返回所有后代节点
-var Return_ALL_Child = function (m_node) {
-  if (m_node.getComponent(cc.Sprite)) {
-    SumNode.push(m_node)
-  }
-  m_node.children.forEach(e => {
-    if (e.childrenCount > 0) {
-      Return_ALL_Child(e)
-    } else {
-      if (e.getComponent(cc.Sprite)) {
-        SumNode.push(e)
-      }
-    }
-  })
-}
-//判断是否是默认图片
-var Check_Is_Default_Image = function (data) {
-  let d = "atom@atom@default_panel@default_sprite@default-particle@default_scrollbar@default_btn_normal@default_editbox_bg@default_btn_pressed@default_progressbar@default_btn_disabled@default_scrollbar_bg@default_sprite_splash@default_toggle_normal@default_progressbar_bg@default_toggle_pressed@default_radio_button_on@default_toggle_disabled@default_radio_button_off@default_toggle_checkmark@default_scrollbar_vertical@default_scrollbar_vertical_bg"
-  if (d.split("@").indexOf(data) > -1) {
-    return true
-  } else {
-    return false
-  }
-}
-
-//在资源文件夹得到资源文件夹里面的UUid的路径
-var In_Assent_By_UUID_Return_DbPath = function (uuid) { return Editor.remote.assetdb.uuidToUrl(uuid) }
-
-//在资源文件夹根据uuid获得名字
-var In_Assent_By_UUID_Return_Name = function (uuid) {
-  let d = Editor.assetdb.assetInfoByUuid(uuid).path.split("/")[c.length - 1]
-  let c = d
-  return c
-}
-
-
-//在场景中得到节点上的Sp的UUid
-var In_Scene_By_Node_SpriteFrame_Return_UUID = function (m_node) { return m_node.getComponent(cc.Sprite).spriteFrame._uuid }
-
-var Get_One_Prefab_Json = function (Curr_Node) {
-  var Prefabjson = []
-  Return_ALL_Sp_By_Node(Curr_Node).forEach(e => {
-    //如果图片帧存在 并且不是默认图片
-    if (e.getComponent(cc.Sprite).spriteFrame && !Check_Is_Default_Image(e.getComponent(cc.Sprite).spriteFrame.name)) {
-      let subJson = {}
-      let nameList
-      if (e.uuid == Curr_Node.uuid) {
-        nameList = Curr_Node.name
-      } else {
-        nameList = FindNodeParentName(e, Curr_Node, false)
-      }
-
-      subJson["FindMe"] = nameList
-      let split_str_arry = In_Assent_By_UUID_Return_DbPath(In_Scene_By_Node_SpriteFrame_Return_UUID(e)).slice(5).split("/")
-      let temp_ppp = ""
-      for (let index = 0; index < split_str_arry.length - 1; index++) {
-        const element = split_str_arry[index];
-        if (index == split_str_arry.length - 2) {
-          temp_ppp += element
-          break
-        }
-        temp_ppp += element + "/"
-      }
-      subJson["ImagePath"] = temp_ppp
-      // Alljson[Curr_Node.name + "-" + e.name] = subJson
-      Prefabjson.push(subJson)
-
-    }
-  })
-  return Prefabjson
-}
-var Get_One_Prefab_image = function (Curr_Node) {
-  let Prefabimage = []
-  Return_ALL_Sp_By_Node(Curr_Node).forEach(e => {
-    //如果图片帧存在 并且不是默认图片
-    if (e.getComponent(cc.Sprite).spriteFrame && !Check_Is_Default_Image(e.getComponent(cc.Sprite).spriteFrame.name)) {
-      Prefabimage.push(e)
-    }
-  })
-  return Prefabimage
-}
-
-var WriteFile = function (data) {
-  Editor.assetdb.createOrSave('db://assets/citrus.json', data);
-}
-//获得URL的后缀   db://assets/Texture/HelloWorld.png  得到.png
-var GetUrlType = function (url) {
-  let temp = (url).split('.')
-  return "." + temp[temp.length - 1]
-}
-//获得URL的名字  db://assets/Texture/HelloWorld.png  得到HelloWorld
-var GetUrlName = function (url) {
-  let temp = (url).split('/')
-  return temp[temp.length - 1].replace(GetUrlType(url), "")
-}
-//获得URL的名字前的路径     db://assets/Texture/HelloWorld.png  得到  db://assets/Texture/
-var GetUrlBeforeName = function (url) {
-  return url.replace(GetUrlName(url) + GetUrlType(url), "")
-}
-
-//图片字典
-var iamgeData = new Map();
-//加载几个图片
-var imageCount
-
-let CitrusFuncs =
-{
-  //设置显示与否
-  'citrus-active'(event) {
-    let nodes = Editor.Selection.curSelection('node');
-    if (nodes && nodes.length != 0) {
-      let active = cc.engine.getInstanceById(nodes[0]).active;
-      for (let i = 0; i < nodes.length; i++) {
-        const id = nodes[i];
-        let node = cc.engine.getInstanceById(id)
-        if (node) {
-          node.active = !active;
-        }
-      }
-    }
-  },
-  'citrus-getThree'(event) {
-    let CurrNodeThree = Editor.Selection.curSelection('node');
-    if (CurrNodeThree.length > 1) {
-      let Curr_Node_Parent = cc.engine.getInstanceById(CurrNodeThree[0])
-      let citrus_script_str = ""
-      for (let index = 1; index < CurrNodeThree.length; index++) {
-        const element = cc.engine.getInstanceById(CurrNodeThree[index])
-        citrus_script_str += FindNodeParentName(element, Curr_Node_Parent, true) + "\n"
-      }
-      CopyStr(citrus_script_str)
-      Editor.info('Citrus_复制节点树成功!');
-      return
-    } else {
-      Editor.info('Citrus_复制节点树失败!')
-      return
-    }
-  },
-  //不能有/ - @ 字符
-  'citrus-getImageThree'(event) {
-    // 检测面板焦点在资源管理器还是层级管理器
-    let activeInfo = Editor.Selection.curGlobalActivate()
-    let CurrNodeThree
-    if (activeInfo && activeInfo.type == "node") {
-      CurrNodeThree = Editor.Selection.curSelection('node');
-      if (CurrNodeThree.length > 0) {
-        var AllJson = {}
-        for (let index = 0; index < CurrNodeThree.length; index++) {
-          const element = cc.engine.getInstanceById(CurrNodeThree[index]);
-          AllJson[element.name] = Get_One_Prefab_Json(element)
-        }
-        WriteFile(JSON.stringify(AllJson))
-        Editor.info('Citrus_json树成功!')
-      }
-    }
-    else if (activeInfo && activeInfo.type == "asset") {
-      CurrNodeThree = Editor.Selection.curSelection('asset');
-    }
-  },
-  'citrus-LoadingImagee'(event) {
-    cc.log('Citrus_你等我会儿!')
-    //先加载图片
-    Editor.assetdb.queryAssets('db://assets/CitrusImage/**\/*', 'sprite-frame', function (err, results) {
-      imageCount = results.length
-      results.forEach(function (result, iindex) {
-        let temp = (result.url).split('/')
-        let imageName = temp[temp.length - 1]
-        cc.loader.load({ uuid: result.uuid }, (err, image) => {
-          iamgeData.set(imageName, image);
-          imageCount -= 1
-          if (imageCount == 0) {
-            Editor.info('Citrus_资源图片个数' + results.length)
-            Editor.info('Citrus_资源加载完毕!')
-          }
-        });
-      });
-    });
-  },
-  //替换图片
-  'citrus-ReplaceImagee'(event) {
-    // 检测面板焦点在资源管理器还是层级管理器
-    let activeInfo = Editor.Selection.curGlobalActivate()
-    let CurrNodeThree
-    if (activeInfo && activeInfo.type == "node") {
-      CurrNodeThree = Editor.Selection.curSelection('node');
-      if (CurrNodeThree.length > 0) {
-        //赋值
-        for (let index = 0; index < CurrNodeThree.length; index++) {
-          const element = cc.engine.getInstanceById(CurrNodeThree[index]);
-          let vvvv = Get_One_Prefab_image(element)
-          for (let iii = 0; iii < vvvv.length; iii++) {
-            let e = vvvv[iii];
-            e.getComponent(cc.Sprite).spriteFrame = iamgeData.get(e.getComponent(cc.Sprite).spriteFrame.name)
-          }
-        }
-        Editor.info('Citrus_替换成功!')
-      }
-    }
-  },
-  //得到nodejson属性
-  'citrus-Nodejson'(event) {
-    // 检测面板焦点在资源管理器还是层级管理器
-    let activeInfo = Editor.Selection.curGlobalActivate()
-    let CurrNodeThree
-    if (activeInfo && activeInfo.type == "node") {
-      CurrNodeThree = Editor.Selection.curSelection('node');
-      if (CurrNodeThree.length > 0) {
-        let setNode = cc.engine.getInstanceById(CurrNodeThree[0]);
-        let parentJson = {}
-        for (let index = 1; index < CurrNodeThree.length; index++) {
-          const element = cc.engine.getInstanceById(CurrNodeThree[index]);
-          let subJson = {}
-          if (setNode.position.x != 0) { subJson["PosX"] = element.position.x }
-          if (setNode.position.y != 0) { subJson["PosY"] = element.position.y }
-          if (setNode.rotation != 0) { subJson["rotation"] = element.rotation }
-          if (setNode.scaleX != 0) { subJson["scaleX"] = element.scaleX }
-          if (setNode.scaleY != 0) { subJson["scaleY"] = element.scaleY }
-          if (setNode.anchorX != 0) { subJson["anchorX"] = element.anchorX }
-          if (setNode.anchorY != 0) { subJson["anchorY"] = element.anchorY }
-          if (setNode.getContentSize().width != 0) { subJson["width"] = element.getContentSize().width }
-          if (setNode.getContentSize().height != 0) { subJson["height"] = element.getContentSize().height }
-          if (setNode.opacity != 0) { subJson["opacity"] = element.opacity }
-          if (setNode.skewX != 0) { subJson["skewX"] = element.skewX }
-          if (setNode.skewY != 0) { subJson["skewY"] = element.skewY }
-          parentJson[element.name] = subJson
-        }
-        CopyStr(JSON.stringify(parentJson))
-        Editor.info('Citrus_NodeJson-剪切板成功!')
-      }
-    }
-  },
-  //批量重命名节点名字
-  'citrus-RestSetName'(event) {
-    // 检测面板焦点在资源管理器还是层级管理器
-    let activeInfo = Editor.Selection.curGlobalActivate()
-    let ScenceNode, AssetsNode//场景节点,资源节点
-    if (activeInfo && activeInfo.type == "node") {
-      ScenceNode = Editor.Selection.curSelection('node');
-      let NodeName = cc.engine.getInstanceById(ScenceNode[0]).name;//citrus123
-      let NameNum = parseInt(NodeName.replace(/[^0-9]/ig, ""));//123
-      if (!NameNum) {
-        return Editor.error('节点名称里面没有数字:请设置数字')
-      }
-      for (let i = 0; i < ScenceNode.length; i++) {
-        let temp1, temp2
-        temp1 = NodeName
-        temp2 = NodeName
-        const element = ScenceNode[i];
-        cc.engine.getInstanceById(element).name = NodeName.replace(NameNum, NameNum + i)
-      }
-      Editor.info('Citrus_设置场景名称成功!')
-    }
-    if (activeInfo && activeInfo.type == "asset") {
-      AssetsNode = Editor.Selection.curSelection('asset');
-      if (AssetsNode.length < 2) {
-        return Editor.error('选择的太少了最少2个')
-      }
-      Editor.assetdb.queryInfoByUuid(AssetsNode[0], function (err, info) { // info.path// info.url // info.type
-        if (!GetUrlType(info.url).includes("/")) {
-          let MainName = GetUrlName(info.url)
-
-          let NameNum = parseInt(MainName.replace(/[^0-9]/ig, ""));//123
-          if (!NameNum) {
-            return Editor.error('节点名称里面没有数字:请设置数字')
-          }
-
-          let ADDnum = 1
-
-          for (let i = 1; i < AssetsNode.length; i++) {
-            const element = AssetsNode[i];
-            // 打印文件信息
-            Editor.assetdb.queryInfoByUuid(element, function (err, info) { // info.path// info.url // info.type
-              if (!GetUrlType(info.url).includes("/")) {
-                let Type = GetUrlType(info.url)
-                let BeforeName = GetUrlBeforeName(info.url)
-
-                let newName = MainName.replace(NameNum, NameNum + ADDnum++)
-
-                Editor.assetdb.move(info.url, BeforeName + newName + Type);
-              }
-            });
-          }
-        }
-      });
-
-
-
-
-
-      // Editor.assetdb.move("db://assets/Texture/HelloWorld.png", "db://assets/Texture/HelloWorld222.png");
-      //移动、重命名文件
-      // Editor.assetdb.move("db://assets/foo/bar/foobar.js", "db://assets/foo/bar/foobar02.js");
-
-
-
-      Editor.info('Citrus_设置资源名称成功!')
-    }
-  },
-};
-
-module.exports = CitrusFuncs;

+ 0 - 17
packages/citrus/panel/index.js

@@ -1,17 +0,0 @@
-// panel/index.js, this filename needs to match the one registered in package.json
-Editor.Panel.extend({
-  // css style for panel
-  style: ``,
-
-  // html template for panel
-  template: ``,
-
-  // element and variable binding
-  $: {},
-
-  // method executed when template and styles are successfully loaded and initialized
-  ready() {
-
-  },
-
-});

Неке датотеке нису приказане због велике количине промена