删除了老的英雄图片 和卡牌文件
This commit is contained in:
@@ -1,236 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>frames</key>
|
|
||||||
<dict>
|
|
||||||
<key>1101.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{0,-4}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{76,72}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{159,313},{76,72}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1102.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{1,1}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{78,78}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{177,91},{78,78}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>1103.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-2,-4}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{66,80}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{169,243},{66,80}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1104.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{0,-1}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{62,84}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{91,173},{62,84}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1105.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-1,3}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{76,80}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{77,313},{76,80}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1106.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{1,1}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{88,82}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{1,91},{88,82}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>1107.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-3,2}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{70,78}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{177,171},{70,78}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1108.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-2,3}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{74,86}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{81,237},{74,86}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1109.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-6,0}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{78,90}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{1,175},{78,90}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>1110.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-3,0}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{88,74}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{1,267},{88,74}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1113.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{0,-2}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{84,80}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{91,91},{84,80}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>1114.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{0,0}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{86,76}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{179,1},{86,76}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>1115.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{0,2}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{92,88}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{1,1},{92,88}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>1116.png</key>
|
|
||||||
<dict>
|
|
||||||
<key>aliases</key>
|
|
||||||
<array/>
|
|
||||||
<key>spriteOffset</key>
|
|
||||||
<string>{-3,2}</string>
|
|
||||||
<key>spriteSize</key>
|
|
||||||
<string>{82,88}</string>
|
|
||||||
<key>spriteSourceSize</key>
|
|
||||||
<string>{96,96}</string>
|
|
||||||
<key>textureRect</key>
|
|
||||||
<string>{{95,1},{82,88}}</string>
|
|
||||||
<key>textureRotated</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>metadata</key>
|
|
||||||
<dict>
|
|
||||||
<key>format</key>
|
|
||||||
<integer>3</integer>
|
|
||||||
<key>pixelFormat</key>
|
|
||||||
<string>RGBA8888</string>
|
|
||||||
<key>premultiplyAlpha</key>
|
|
||||||
<false/>
|
|
||||||
<key>realTextureFileName</key>
|
|
||||||
<string>heros.png</string>
|
|
||||||
<key>size</key>
|
|
||||||
<string>{256,390}</string>
|
|
||||||
<key>smartupdate</key>
|
|
||||||
<string>$TexturePacker:SmartUpdate:209a4ddc0b9177a3ccee41d0e4c93daa:842cf67d6153d8e76c1e88f86446dfec:757b9ddd41d3352a4ebb204a2b6924d3$</string>
|
|
||||||
<key>textureFileName</key>
|
|
||||||
<string>heros.png</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,661 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.0.8",
|
|
||||||
"importer": "sprite-atlas",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {
|
|
||||||
"c29c5": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@c29c5",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "c29c5",
|
|
||||||
"name": "1101",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": -4,
|
|
||||||
"trimX": 159,
|
|
||||||
"trimY": 313,
|
|
||||||
"width": 76,
|
|
||||||
"height": 72,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"c3a1e": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@c3a1e",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "c3a1e",
|
|
||||||
"name": "1102",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 1,
|
|
||||||
"offsetY": 1,
|
|
||||||
"trimX": 177,
|
|
||||||
"trimY": 91,
|
|
||||||
"width": 78,
|
|
||||||
"height": 78,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"acfe0": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@acfe0",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "acfe0",
|
|
||||||
"name": "1103",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": -2,
|
|
||||||
"offsetY": -4,
|
|
||||||
"trimX": 169,
|
|
||||||
"trimY": 243,
|
|
||||||
"width": 66,
|
|
||||||
"height": 80,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"44f7c": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@44f7c",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "44f7c",
|
|
||||||
"name": "1104",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": -1,
|
|
||||||
"trimX": 91,
|
|
||||||
"trimY": 173,
|
|
||||||
"width": 62,
|
|
||||||
"height": 84,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"ac19d": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@ac19d",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "ac19d",
|
|
||||||
"name": "1105",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": -1,
|
|
||||||
"offsetY": 3,
|
|
||||||
"trimX": 77,
|
|
||||||
"trimY": 313,
|
|
||||||
"width": 76,
|
|
||||||
"height": 80,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"c0f77": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@c0f77",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "c0f77",
|
|
||||||
"name": "1106",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 1,
|
|
||||||
"offsetY": 1,
|
|
||||||
"trimX": 1,
|
|
||||||
"trimY": 91,
|
|
||||||
"width": 88,
|
|
||||||
"height": 82,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"ecc27": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@ecc27",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "ecc27",
|
|
||||||
"name": "1107",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": -3,
|
|
||||||
"offsetY": 2,
|
|
||||||
"trimX": 177,
|
|
||||||
"trimY": 171,
|
|
||||||
"width": 70,
|
|
||||||
"height": 78,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"baceb": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@baceb",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "baceb",
|
|
||||||
"name": "1108",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": -2,
|
|
||||||
"offsetY": 3,
|
|
||||||
"trimX": 81,
|
|
||||||
"trimY": 237,
|
|
||||||
"width": 74,
|
|
||||||
"height": 86,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"860d8": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@860d8",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "860d8",
|
|
||||||
"name": "1109",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": -6,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 1,
|
|
||||||
"trimY": 175,
|
|
||||||
"width": 78,
|
|
||||||
"height": 90,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"243a1": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@243a1",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "243a1",
|
|
||||||
"name": "1110",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": -3,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 1,
|
|
||||||
"trimY": 267,
|
|
||||||
"width": 88,
|
|
||||||
"height": 74,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"93fd2": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@93fd2",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "93fd2",
|
|
||||||
"name": "1113",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": -2,
|
|
||||||
"trimX": 91,
|
|
||||||
"trimY": 91,
|
|
||||||
"width": 84,
|
|
||||||
"height": 80,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"d732c": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@d732c",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "d732c",
|
|
||||||
"name": "1114",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": true,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 179,
|
|
||||||
"trimY": 1,
|
|
||||||
"width": 86,
|
|
||||||
"height": 76,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"ee96a": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@ee96a",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "ee96a",
|
|
||||||
"name": "1115",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": 2,
|
|
||||||
"trimX": 1,
|
|
||||||
"trimY": 1,
|
|
||||||
"width": 92,
|
|
||||||
"height": 88,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"d997f": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598@d997f",
|
|
||||||
"displayName": "",
|
|
||||||
"id": "d997f",
|
|
||||||
"name": "1116",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": -3,
|
|
||||||
"offsetY": 2,
|
|
||||||
"trimX": 95,
|
|
||||||
"trimY": 1,
|
|
||||||
"width": 82,
|
|
||||||
"height": 88,
|
|
||||||
"rawWidth": 96,
|
|
||||||
"rawHeight": 96,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [],
|
|
||||||
"indexes": [],
|
|
||||||
"uv": [],
|
|
||||||
"nuv": [],
|
|
||||||
"minPos": [],
|
|
||||||
"maxPos": []
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": "8a791edd-743c-45ad-8991-81f589e8b598"
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"userData": {
|
|
||||||
"atlasTextureName": "heros.png",
|
|
||||||
"format": 3,
|
|
||||||
"uuid": "8a791edd-743c-45ad-8991-81f589e8b598",
|
|
||||||
"textureUuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB |
@@ -1,134 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.0.26",
|
|
||||||
"importer": "image",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".png"
|
|
||||||
],
|
|
||||||
"subMetas": {
|
|
||||||
"6c48a": {
|
|
||||||
"importer": "texture",
|
|
||||||
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"displayName": "heros",
|
|
||||||
"id": "6c48a",
|
|
||||||
"name": "texture",
|
|
||||||
"userData": {
|
|
||||||
"wrapModeS": "clamp-to-edge",
|
|
||||||
"wrapModeT": "clamp-to-edge",
|
|
||||||
"minfilter": "linear",
|
|
||||||
"magfilter": "linear",
|
|
||||||
"mipfilter": "none",
|
|
||||||
"anisotropy": 0,
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add",
|
|
||||||
"visible": false
|
|
||||||
},
|
|
||||||
"ver": "1.0.22",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"f9941": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@f9941",
|
|
||||||
"displayName": "heros",
|
|
||||||
"id": "f9941",
|
|
||||||
"name": "spriteFrame",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 2,
|
|
||||||
"trimY": 2,
|
|
||||||
"width": 252,
|
|
||||||
"height": 386,
|
|
||||||
"rawWidth": 256,
|
|
||||||
"rawHeight": 390,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [
|
|
||||||
-126,
|
|
||||||
-193,
|
|
||||||
0,
|
|
||||||
126,
|
|
||||||
-193,
|
|
||||||
0,
|
|
||||||
-126,
|
|
||||||
193,
|
|
||||||
0,
|
|
||||||
126,
|
|
||||||
193,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"indexes": [
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"uv": [
|
|
||||||
2,
|
|
||||||
388,
|
|
||||||
254,
|
|
||||||
388,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
254,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"nuv": [
|
|
||||||
0.0078125,
|
|
||||||
0.005128205128205128,
|
|
||||||
0.9921875,
|
|
||||||
0.005128205128205128,
|
|
||||||
0.0078125,
|
|
||||||
0.9948717948717949,
|
|
||||||
0.9921875,
|
|
||||||
0.9948717948717949
|
|
||||||
],
|
|
||||||
"minPos": [
|
|
||||||
-126,
|
|
||||||
-193,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"maxPos": [
|
|
||||||
126,
|
|
||||||
193,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@6c48a",
|
|
||||||
"atlasUuid": ""
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"userData": {
|
|
||||||
"hasAlpha": true,
|
|
||||||
"type": "sprite-frame",
|
|
||||||
"fixAlphaTransparencyArtifacts": false,
|
|
||||||
"redirect": "55b3f5b8-c97f-45fe-8971-b253ee5f4add@f9941"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.2.0",
|
|
||||||
"importer": "directory",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "365c3351-a0ac-4fd1-a400-9183a2085947",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
|
|
||||||
/*
|
|
||||||
* @Author: dgflash
|
|
||||||
* @Date: 2021-11-18 17:47:56
|
|
||||||
* @LastEditors: dgflash
|
|
||||||
* @LastEditTime: 2022-08-04 15:43:04
|
|
||||||
*/
|
|
||||||
import { instantiate, Node, Prefab, Vec3 ,tween, v3,SpriteAtlas,Label,resources,SpriteFrame,Sprite} from "cc";
|
|
||||||
import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
|
|
||||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
||||||
import { UIID } from "../common/config/GameUIConfig";
|
|
||||||
import { smc } from "../common/SingletonModuleComp";
|
|
||||||
import{HeroCardViewComp} from "./HeroCardViewComp";
|
|
||||||
import { SkillSet } from "../common/config/SkillSet";
|
|
||||||
/** 角色实体 */
|
|
||||||
@ecs.register(`HeroCard`)
|
|
||||||
export class HeroCard extends ecs.Entity {
|
|
||||||
// 数据层
|
|
||||||
|
|
||||||
// 视图层
|
|
||||||
|
|
||||||
|
|
||||||
protected init() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy(): void {
|
|
||||||
this.remove(HeroCardViewComp);
|
|
||||||
super.destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 加载角色 */
|
|
||||||
load(pos: Vec3 = Vec3.ZERO,uuid:number=1001,parent:Node,type:number=1) {
|
|
||||||
let path: string;
|
|
||||||
let url: string;
|
|
||||||
let pathName: string;
|
|
||||||
let name: string;
|
|
||||||
let level: number;
|
|
||||||
|
|
||||||
switch (type) {
|
|
||||||
case 1:
|
|
||||||
path = "game/heros/hero_card";
|
|
||||||
url = "game/heros/heros";
|
|
||||||
({ path: pathName, name, level } = smc.heros[uuid]);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
path = "game/heros/skill_card";
|
|
||||||
url = "game/heros/skill";
|
|
||||||
({ path: pathName, name, level } = smc.skills[uuid]);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
default:
|
|
||||||
path = "game/heros/item_card";
|
|
||||||
url = "game/heros/skill";
|
|
||||||
({ path: pathName, name, level } = smc.skills[uuid]);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
|
||||||
var node = instantiate(prefab);
|
|
||||||
node.parent = parent;
|
|
||||||
// node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*scale, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z);
|
|
||||||
node.setPosition(pos)
|
|
||||||
resources.load(url, SpriteAtlas, (err: any, atlas) => {
|
|
||||||
const sprite = node.getChildByName("hero").getComponent(Sprite);
|
|
||||||
sprite.spriteFrame = atlas.getSpriteFrame(pathName);
|
|
||||||
});
|
|
||||||
|
|
||||||
var hcv = node.getComponent(HeroCardViewComp)!;
|
|
||||||
hcv.card_name=name
|
|
||||||
hcv.card_uid=uuid
|
|
||||||
hcv.card_type=type
|
|
||||||
hcv.card_level=level
|
|
||||||
this.add(hcv);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"ver":"4.0.23","importer":"typescript","imported":true,"uuid":"9ec1b4da-2a40-4f23-8f9d-96f10cafb1b0","files":[],"subMetas":{},"userData":{}}
|
|
||||||
@@ -1,191 +0,0 @@
|
|||||||
import { _decorator ,Label,NodeEventType,EventTouch,v3} from "cc";
|
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
||||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
|
||||||
import { data } from "../data/data";
|
|
||||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
|
||||||
import { smc } from "../common/SingletonModuleComp";
|
|
||||||
import { SkillSet } from "../common/config/SkillSet";
|
|
||||||
import { HeroCard } from "./HeroCard";
|
|
||||||
import { MapMonsterComp } from "../map/MapMonsterComp";
|
|
||||||
import { MapSkillComp } from "../map/MapSkillComp";
|
|
||||||
import { HeroModelComp } from "../hero/HeroModelComp";
|
|
||||||
const { ccclass, property } = _decorator;
|
|
||||||
|
|
||||||
/** 视图层对象 */
|
|
||||||
@ccclass('HeroCardViewComp')
|
|
||||||
@ecs.register('HeroCardView', false)
|
|
||||||
export class HeroCardViewComp extends CCComp {
|
|
||||||
MM: MapMonsterComp;
|
|
||||||
MS: MapSkillComp;
|
|
||||||
card_name:string = "hero_card";
|
|
||||||
card_uid:number = 1000;
|
|
||||||
in_destroy:boolean = false;
|
|
||||||
pos_x:number = 0;
|
|
||||||
pos_y:number = 0;
|
|
||||||
card_type:number = 1;
|
|
||||||
card_level:number = 1;
|
|
||||||
alive:boolean = false;
|
|
||||||
|
|
||||||
protected onLoad(): void {
|
|
||||||
this.node.on(NodeEventType.TOUCH_START, this.onTouchMove, this);
|
|
||||||
this.node.on(NodeEventType.TOUCH_MOVE, this.onTouchMove, this);
|
|
||||||
this.node.on(NodeEventType.TOUCH_END, this.onTouchEnd, this);
|
|
||||||
this.node.on(NodeEventType.TOUCH_CANCEL, this.onTouchEnd, this);
|
|
||||||
// oops.message.on("active_card_eid", this.do_active_card_eid, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 视图层逻辑代码分离演示 */
|
|
||||||
start() {
|
|
||||||
this.pos_x=this.node.position.x;
|
|
||||||
this.pos_y=this.node.position.y;
|
|
||||||
this.node.getChildByName("level").getChildByName("level").getComponent(Label).string = this.card_level.toString();
|
|
||||||
this.node.getChildByName("name").getComponent(Label).string = this.card_name
|
|
||||||
|
|
||||||
}
|
|
||||||
/** 全局消息逻辑处理 */
|
|
||||||
// private onHandler(event: string, args: any) {
|
|
||||||
// switch (event) {
|
|
||||||
// case ModuleEvent.Cmd:
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
|
||||||
reset() {
|
|
||||||
this.in_destroy = false;
|
|
||||||
this.node.destroy();
|
|
||||||
}
|
|
||||||
onTouchMove(event: EventTouch) {
|
|
||||||
let delta = event.getDelta();
|
|
||||||
this.node.setPosition(this.node.position.x+delta.x,this.node.position.y+delta.y);
|
|
||||||
this.show_info()
|
|
||||||
}
|
|
||||||
show_info(){
|
|
||||||
console.log("show_info",this.card_uid)
|
|
||||||
let parent = this.node.parent.parent
|
|
||||||
let node =parent.getChildByName("item_box")
|
|
||||||
if(this.card_type == 2){
|
|
||||||
smc.vm_data.item_box.info = SkillSet[this.card_uid].info
|
|
||||||
smc.vm_data.item_box.name = SkillSet[this.card_uid].name
|
|
||||||
smc.vm_data.item_box.skillcd = SkillSet[this.card_uid].cd
|
|
||||||
smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd
|
|
||||||
smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk
|
|
||||||
smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp
|
|
||||||
node.active=true
|
|
||||||
}
|
|
||||||
if(this.card_type == 3){
|
|
||||||
console.log(SkillSet[this.card_uid])
|
|
||||||
smc.vm_data.item_box.info = SkillSet[this.card_uid].info
|
|
||||||
smc.vm_data.item_box.name = SkillSet[this.card_uid].name
|
|
||||||
smc.vm_data.item_box.skillcd = SkillSet[this.card_uid].cd
|
|
||||||
smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd
|
|
||||||
smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk
|
|
||||||
smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp
|
|
||||||
smc.vm_data.item_box.shield = SkillSet[this.card_uid].shield
|
|
||||||
node.active=true
|
|
||||||
if(SkillSet[this.card_uid].shield > 0){
|
|
||||||
node.getChildByName("data").getChildByName("shield").active=true
|
|
||||||
}
|
|
||||||
if(SkillSet[this.card_uid].hp > 0){
|
|
||||||
node.getChildByName("data").getChildByName("hp").active=true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onTouchEnd(){
|
|
||||||
if(this.node.position.y-this.pos_y > 150){
|
|
||||||
this.use_card()
|
|
||||||
}else{
|
|
||||||
this.node.setPosition(this.pos_x,this.pos_y);
|
|
||||||
}
|
|
||||||
let parent = this.node.parent.parent
|
|
||||||
let node = parent.getChildByName("item_box")
|
|
||||||
node.active=false
|
|
||||||
node.getChildByName("data").getChildByName("shield").active=false
|
|
||||||
node.getChildByName("data").getChildByName("hp").active=false
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private do_active_card_eid(event: string, args: any) {
|
|
||||||
console.log("active_card_eid",args,this.ent.eid)
|
|
||||||
if(this.ent.eid != args.eid){
|
|
||||||
this.no_active()
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
do_active(){
|
|
||||||
// console.log(this.node.getChildByName("active"),this.node.getChildByName("use"), this.node.getChildByName("bag"))
|
|
||||||
// let use = this.node.getChildByName("use")
|
|
||||||
// let bag = this.node.getChildByName("bag")
|
|
||||||
// let active = this.node.getChildByName("active")
|
|
||||||
// active.active = !active.active
|
|
||||||
|
|
||||||
// use.active = !use.active
|
|
||||||
// bag.active = !bag.active
|
|
||||||
// this.alive=!this.alive
|
|
||||||
// if(this.alive){
|
|
||||||
// this.node.setScale(1.5,1.5,1)
|
|
||||||
// }else{
|
|
||||||
// this.node.setScale(1,1,0)
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
||||||
no_active(){
|
|
||||||
// let active = this.node.getChildByName("active")
|
|
||||||
// // let use = this.node.getChildByName("use")
|
|
||||||
// // let bag = this.node.getChildByName("bag")
|
|
||||||
// active.active = false
|
|
||||||
// this.node.setScale(1,1)
|
|
||||||
// use.active = false
|
|
||||||
// bag.active = false
|
|
||||||
}
|
|
||||||
|
|
||||||
doit(){
|
|
||||||
// this.do_active()
|
|
||||||
smc.vm_data.cards.eid = this.ent.eid;
|
|
||||||
this.do_active()
|
|
||||||
let hero_cards = ecs.query(ecs.allOf(HeroCardViewComp))
|
|
||||||
hero_cards.forEach(element => {
|
|
||||||
if(element.eid != this.ent.eid)
|
|
||||||
element.get(HeroCardViewComp).no_active()
|
|
||||||
});
|
|
||||||
// console.log("doit",hero_cards)
|
|
||||||
// oops.message.dispatchEvent("active_card_eid",{eid:this.ent.eid})
|
|
||||||
}
|
|
||||||
|
|
||||||
use_card(){
|
|
||||||
|
|
||||||
let heros = ecs.query(ecs.allOf(HeroModelComp))
|
|
||||||
// let heross= ecs.query(ecs.allOf(MonsterViewComp))
|
|
||||||
// console.log("heross",heross)
|
|
||||||
if(heros.length >= 4&&this.card_type == 1){
|
|
||||||
oops.gui.toast("英雄数量达到上限");
|
|
||||||
this.node.setPosition(this.pos_x,this.pos_y);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(smc.vm_data.gold.min >= this.card_level){
|
|
||||||
this.in_destroy = true;
|
|
||||||
this.do_use_card()
|
|
||||||
this.ent.destroy();
|
|
||||||
smc.vm_data.gold.min -= this.card_level;
|
|
||||||
}else{
|
|
||||||
oops.gui.toast("金币不够");
|
|
||||||
this.node.setPosition(this.pos_x,this.pos_y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
do_use_card(){
|
|
||||||
switch (this.card_type) {
|
|
||||||
case 1:
|
|
||||||
oops.message.dispatchEvent("do_add_hero", { uuid: this.card_uid });
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
oops.message.dispatchEvent("do_use_skill", { uuid: this.card_uid });
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
oops.message.dispatchEvent("do_use_skill", { uuid: this.card_uid });
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "4.0.23",
|
|
||||||
"importer": "typescript",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "ad422ad0-14e7-4547-8703-1bb4d5b10d01",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user