diff --git a/assets/resources/game/gui/MSCard.prefab b/assets/resources/game/gui/MSCard.prefab index 3f3de31e..989b8f57 100644 --- a/assets/resources/game/gui/MSCard.prefab +++ b/assets/resources/game/gui/MSCard.prefab @@ -24,6 +24,9 @@ { "__id__": 8 }, + { + "__id__": 14 + }, { "__id__": 20 }, @@ -37,35 +40,20 @@ "__id__": 38 }, { - "__id__": 44 - }, - { - "__id__": 59 - }, - { - "__id__": 73 - }, - { - "__id__": 88 - }, - { - "__id__": 94 - }, - { - "__id__": 100 + "__id__": 71 } ], "_active": true, "_components": [ { - "__id__": 106 + "__id__": 108 }, { - "__id__": 108 + "__id__": 110 } ], "_prefab": { - "__id__": 110 + "__id__": 112 }, "_lpos": { "__type__": "cc.Vec3", @@ -234,28 +222,24 @@ }, { "__type__": "cc.Node", - "_name": "skill", + "_name": "icon", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 1 }, - "_children": [ - { - "__id__": 9 - } - ], + "_children": [], "_active": true, "_components": [ { - "__id__": 15 + "__id__": 9 }, { - "__id__": 17 + "__id__": 11 } ], "_prefab": { - "__id__": 19 + "__id__": 13 }, "_lpos": { "__type__": "cc.Vec3", @@ -272,58 +256,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "icon", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 8 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 10 - }, - { - "__id__": 12 - } - ], - "_prefab": { - "__id__": 14 - }, - "_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, + "x": 0.9, + "y": 0.9, "z": 1 }, "_mobility": 0, @@ -336,92 +270,6 @@ }, "_id": "" }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 9 - }, - "_enabled": true, - "__prefab": { - "__id__": 11 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 75, - "height": 75 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "93m/S2609MyKN3tW4EfZkn" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 9 - }, - "_enabled": true, - "__prefab": { - "__id__": 13 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 153, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8e53e122-d71b-440a-bb07-9938dd6c20d9@0b3c8", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "8eR5WZreFEeoe+rk5Hz6sw" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "e6lsed8YxFFqO2LqAMl4UJ", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.UITransform", "_name": "", @@ -432,12 +280,12 @@ }, "_enabled": true, "__prefab": { - "__id__": 16 + "__id__": 10 }, "_contentSize": { "__type__": "cc.Size", - "width": 100, - "height": 100 + "width": 104, + "height": 112 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -448,7 +296,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "02qZa7GNlD0JLm4+L5oEwb" + "fileId": "c7uaba4QlG669T4JXLcqRb" }, { "__type__": "cc.Sprite", @@ -460,7 +308,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 18 + "__id__": 12 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -473,12 +321,12 @@ "a": 255 }, "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@f37b3", + "__uuid__": "767c21dd-b2a2-4118-a12d-f67a8039abd4@f8120", "__expectedType__": "cc.SpriteFrame" }, - "_type": 1, + "_type": 0, "_fillType": 0, - "_sizeMode": 0, + "_sizeMode": 1, "_fillCenter": { "__type__": "cc.Vec2", "x": 0, @@ -493,7 +341,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "06Ap09lQJKIp0liGlnRF6z" + "fileId": "37FGos7zlMR4Z6N/AJB7VI" }, { "__type__": "cc.PrefabInfo", @@ -503,7 +351,7 @@ "asset": { "__id__": 0 }, - "fileId": "f6uJZplrpLwo+6CUjXuOlX", + "fileId": "77g3WrWBBOraj7pQnyO3HL", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -520,14 +368,14 @@ "_active": true, "_components": [ { - "__id__": 21 + "__id__": 15 }, { - "__id__": 23 + "__id__": 17 } ], "_prefab": { - "__id__": 25 + "__id__": 19 }, "_lpos": { "__type__": "cc.Vec3", @@ -564,11 +412,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 20 + "__id__": 14 }, "_enabled": true, "__prefab": { - "__id__": 22 + "__id__": 16 }, "_contentSize": { "__type__": "cc.Size", @@ -592,11 +440,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 20 + "__id__": 14 }, "_enabled": true, "__prefab": { - "__id__": 24 + "__id__": 18 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -679,14 +527,14 @@ "_active": true, "_components": [ { - "__id__": 27 + "__id__": 21 }, { - "__id__": 29 + "__id__": 23 } ], "_prefab": { - "__id__": 31 + "__id__": 25 }, "_lpos": { "__type__": "cc.Vec3", @@ -723,11 +571,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 26 + "__id__": 20 }, "_enabled": true, "__prefab": { - "__id__": 28 + "__id__": 22 }, "_contentSize": { "__type__": "cc.Size", @@ -751,11 +599,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 26 + "__id__": 20 }, "_enabled": true, "__prefab": { - "__id__": 30 + "__id__": 24 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -815,14 +663,14 @@ "_active": true, "_components": [ { - "__id__": 33 + "__id__": 27 }, { - "__id__": 35 + "__id__": 29 } ], "_prefab": { - "__id__": 37 + "__id__": 31 }, "_lpos": { "__type__": "cc.Vec3", @@ -859,11 +707,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 32 + "__id__": 26 }, "_enabled": true, "__prefab": { - "__id__": 34 + "__id__": 28 }, "_contentSize": { "__type__": "cc.Size", @@ -887,11 +735,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 32 + "__id__": 26 }, "_enabled": true, "__prefab": { - "__id__": 36 + "__id__": 30 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -974,14 +822,14 @@ "_active": true, "_components": [ { - "__id__": 39 + "__id__": 33 }, { - "__id__": 41 + "__id__": 35 } ], "_prefab": { - "__id__": 43 + "__id__": 37 }, "_lpos": { "__type__": "cc.Vec3", @@ -1018,11 +866,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 38 + "__id__": 32 }, "_enabled": true, "__prefab": { - "__id__": 40 + "__id__": 34 }, "_contentSize": { "__type__": "cc.Size", @@ -1046,11 +894,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 38 + "__id__": 32 }, "_enabled": true, "__prefab": { - "__id__": 42 + "__id__": 36 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1123,7 +971,7 @@ }, { "__type__": "cc.Node", - "_name": "update", + "_name": "set", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -1131,28 +979,25 @@ }, "_children": [ { - "__id__": 45 + "__id__": 39 + }, + { + "__id__": 53 } ], "_active": true, "_components": [ { - "__id__": 51 - }, - { - "__id__": 53 - }, - { - "__id__": 55 + "__id__": 68 } ], "_prefab": { - "__id__": 58 + "__id__": 70 }, "_lpos": { "__type__": "cc.Vec3", - "x": 255.111, - "y": -13.719, + "x": 0, + "y": 0, "z": 0 }, "_lrot": { @@ -1164,8 +1009,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, + "x": 1, + "y": 1, "z": 1 }, "_mobility": 0, @@ -1180,13 +1025,17 @@ }, { "__type__": "cc.Node", - "_name": "Label", + "_name": "btned", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 44 + "__id__": 38 }, - "_children": [], + "_children": [ + { + "__id__": 40 + } + ], "_active": true, "_components": [ { @@ -1194,337 +1043,18 @@ }, { "__id__": 48 + }, + { + "__id__": 50 } ], "_prefab": { - "__id__": 50 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 6.8840000000000146, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 2, - "y": 2, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 47 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 64, - "height": 41.8 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e7ivKJJaVH97rgyP6briIU" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 49 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "升级", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 30, - "_fontSize": 30, - "_fontFamily": "Arial", - "_lineHeight": 30, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "caM8Mr/rxFR5bJyNhzHLTC" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a0WPYZ6sBDqpUd4Eqf7oa6", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 44 - }, - "_enabled": true, - "__prefab": { "__id__": 52 }, - "_contentSize": { - "__type__": "cc.Size", - "width": 260, - "height": 140 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "78dUe+aAZIS56qGGIPJiFI" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 44 - }, - "_enabled": true, - "__prefab": { - "__id__": 54 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b2a40", - "__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": "76Tbm1VztGiamiAwALwKuP" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 44 - }, - "_enabled": true, - "__prefab": { - "__id__": 56 - }, - "clickEvents": [ - { - "__id__": 57 - } - ], - "_interactable": true, - "_transition": 3, - "_normalColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "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": 0.8, - "_target": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "8fxNFa1PhDi5YQDsl8LP8W" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 1 - }, - "component": "", - "_componentId": "91d25u7m5BHn44btWJO5Wqu", - "handler": "to_update_t", - "customEventData": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "c45BEu42NFdqvBygVvPVfQ", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "selected", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 60 - } - ], - "_active": true, - "_components": [ - { - "__id__": 66 - }, - { - "__id__": 68 - }, - { - "__id__": 70 - } - ], - "_prefab": { - "__id__": 72 - }, "_lpos": { "__type__": "cc.Vec3", "x": 255.111, - "y": -13.719, + "y": -13.719000000000051, "z": 0 }, "_lrot": { @@ -1556,20 +1086,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 59 + "__id__": 39 }, "_children": [], "_active": true, "_components": [ { - "__id__": 61 + "__id__": 41 }, { - "__id__": 63 + "__id__": 43 } ], "_prefab": { - "__id__": 65 + "__id__": 45 }, "_lpos": { "__type__": "cc.Vec3", @@ -1606,11 +1136,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 40 }, "_enabled": true, "__prefab": { - "__id__": 62 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -1634,11 +1164,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 40 }, "_enabled": true, "__prefab": { - "__id__": 64 + "__id__": 44 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1715,11 +1245,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 39 }, "_enabled": true, "__prefab": { - "__id__": 67 + "__id__": 47 }, "_contentSize": { "__type__": "cc.Size", @@ -1743,11 +1273,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 39 }, "_enabled": true, "__prefab": { - "__id__": 69 + "__id__": 49 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1788,11 +1318,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 39 }, "_enabled": true, "__prefab": { - "__id__": 71 + "__id__": 51 }, "clickEvents": [], "_interactable": false, @@ -1832,7 +1362,7 @@ "_duration": 0.1, "_zoomScale": 0.8, "_target": { - "__id__": 59 + "__id__": 39 }, "_id": "" }, @@ -1855,36 +1385,36 @@ }, { "__type__": "cc.Node", - "_name": "select", + "_name": "btn", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1 + "__id__": 38 }, "_children": [ { - "__id__": 74 + "__id__": 54 } ], "_active": true, "_components": [ { - "__id__": 80 + "__id__": 60 }, { - "__id__": 82 + "__id__": 62 }, { - "__id__": 84 + "__id__": 64 } ], "_prefab": { - "__id__": 87 + "__id__": 67 }, "_lpos": { "__type__": "cc.Vec3", "x": 255.111, - "y": -13.719, + "y": -13.719000000000051, "z": 0 }, "_lrot": { @@ -1916,20 +1446,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 73 + "__id__": 53 }, "_children": [], "_active": true, "_components": [ { - "__id__": 75 + "__id__": 55 }, { - "__id__": 77 + "__id__": 57 } ], "_prefab": { - "__id__": 79 + "__id__": 59 }, "_lpos": { "__type__": "cc.Vec3", @@ -1966,11 +1496,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 54 }, "_enabled": true, "__prefab": { - "__id__": 76 + "__id__": 56 }, "_contentSize": { "__type__": "cc.Size", @@ -1994,11 +1524,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 54 }, "_enabled": true, "__prefab": { - "__id__": 78 + "__id__": 58 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2075,11 +1605,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 53 }, "_enabled": true, "__prefab": { - "__id__": 81 + "__id__": 61 }, "_contentSize": { "__type__": "cc.Size", @@ -2103,11 +1633,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 53 }, "_enabled": true, "__prefab": { - "__id__": 83 + "__id__": 63 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2148,15 +1678,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 73 + "__id__": 53 }, "_enabled": true, "__prefab": { - "__id__": 85 + "__id__": 65 }, "clickEvents": [ { - "__id__": 86 + "__id__": 66 } ], "_interactable": true, @@ -2196,7 +1726,7 @@ "_duration": 0.1, "_zoomScale": 0.8, "_target": { - "__id__": 73 + "__id__": 53 }, "_id": "" }, @@ -2227,31 +1757,504 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 38 + }, + "_enabled": true, + "__prefab": { + "__id__": 69 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "38gPRKmjJIuY04/AD6GZDD" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "83XhNlrm9Mr5efwlUvYrFk", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.Node", - "_name": "line_bg", + "_name": "update", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 1 }, - "_children": [], - "_active": false, - "_components": [ + "_children": [ { - "__id__": 89 + "__id__": 72 }, { - "__id__": 91 + "__id__": 87 + }, + { + "__id__": 93 + }, + { + "__id__": 99 + } + ], + "_active": true, + "_components": [ + { + "__id__": 105 } ], "_prefab": { - "__id__": 93 + "__id__": 107 }, "_lpos": { "__type__": "cc.Vec3", - "x": 256.406, - "y": 37.996, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 71 + }, + "_children": [ + { + "__id__": 73 + } + ], + "_active": true, + "_components": [ + { + "__id__": 79 + }, + { + "__id__": 81 + }, + { + "__id__": 83 + } + ], + "_prefab": { + "__id__": 86 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 255.111, + "y": -13.719000000000051, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 72 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 74 + }, + { + "__id__": 76 + } + ], + "_prefab": { + "__id__": 78 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 6.8840000000000146, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 2, + "y": 2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 75 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 41.8 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e7ivKJJaVH97rgyP6briIU" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 77 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "升级", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 30, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "caM8Mr/rxFR5bJyNhzHLTC" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a0WPYZ6sBDqpUd4Eqf7oa6", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 72 + }, + "_enabled": true, + "__prefab": { + "__id__": 80 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 260, + "height": 140 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "78dUe+aAZIS56qGGIPJiFI" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 72 + }, + "_enabled": true, + "__prefab": { + "__id__": 82 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b2a40", + "__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": "76Tbm1VztGiamiAwALwKuP" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 72 + }, + "_enabled": true, + "__prefab": { + "__id__": 84 + }, + "clickEvents": [ + { + "__id__": 85 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "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": 0.8, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8fxNFa1PhDi5YQDsl8LP8W" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 1 + }, + "component": "", + "_componentId": "91d25u7m5BHn44btWJO5Wqu", + "handler": "to_update_t", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c45BEu42NFdqvBygVvPVfQ", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "line_bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 71 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 88 + }, + { + "__id__": 90 + } + ], + "_prefab": { + "__id__": 92 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 256.40599999999995, + "y": 37.99599999999998, "z": 0 }, "_lrot": { @@ -2283,11 +2286,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 87 }, "_enabled": true, "__prefab": { - "__id__": 90 + "__id__": 89 }, "_contentSize": { "__type__": "cc.Size", @@ -2311,11 +2314,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 87 }, "_enabled": true, "__prefab": { - "__id__": 92 + "__id__": 91 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2369,25 +2372,25 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1 + "__id__": 71 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { - "__id__": 95 + "__id__": 94 }, { - "__id__": 97 + "__id__": 96 } ], "_prefab": { - "__id__": 99 + "__id__": 98 }, "_lpos": { "__type__": "cc.Vec3", - "x": 202.411, - "y": 38.431, + "x": 202.41100000000006, + "y": 38.43100000000004, "z": 0 }, "_lrot": { @@ -2419,11 +2422,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 94 + "__id__": 93 }, "_enabled": true, "__prefab": { - "__id__": 96 + "__id__": 95 }, "_contentSize": { "__type__": "cc.Size", @@ -2447,11 +2450,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 94 + "__id__": 93 }, "_enabled": true, "__prefab": { - "__id__": 98 + "__id__": 97 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2505,25 +2508,25 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1 + "__id__": 71 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { - "__id__": 101 + "__id__": 100 }, { - "__id__": 103 + "__id__": 102 } ], "_prefab": { - "__id__": 105 + "__id__": 104 }, "_lpos": { "__type__": "cc.Vec3", "x": 255.587, - "y": 38.813, + "y": 38.81299999999999, "z": 0 }, "_lrot": { @@ -2555,11 +2558,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 99 }, "_enabled": true, "__prefab": { - "__id__": 102 + "__id__": 101 }, "_contentSize": { "__type__": "cc.Size", @@ -2583,11 +2586,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 100 + "__id__": 99 }, "_enabled": true, "__prefab": { - "__id__": 104 + "__id__": 103 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2658,6 +2661,47 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 71 + }, + "_enabled": true, + "__prefab": { + "__id__": 106 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f8BHVMBYtFlpvGKsJvAHED" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a1BS6jg39F4oipu5TnLdK4", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -2668,7 +2712,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 107 + "__id__": 109 }, "_contentSize": { "__type__": "cc.Size", @@ -2696,7 +2740,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 109 + "__id__": 111 }, "_id": "" }, diff --git a/assets/resources/game/heros/mskill.prefab b/assets/resources/game/heros/mskill.prefab deleted file mode 100644 index 54b96f26..00000000 --- a/assets/resources/game/heros/mskill.prefab +++ /dev/null @@ -1,702 +0,0 @@ -[ - { - "__type__": "cc.Prefab", - "_name": "mskill", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "data": { - "__id__": 1 - }, - "optimizationPolicy": 0, - "persistent": false - }, - { - "__type__": "cc.Node", - "_name": "mskill", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": null, - "_children": [ - { - "__id__": 2 - }, - { - "__id__": 8 - }, - { - "__id__": 14 - }, - { - "__id__": 20 - } - ], - "_active": true, - "_components": [ - { - "__id__": 24 - }, - { - "__id__": 26 - }, - { - "__id__": 28 - }, - { - "__id__": 30 - } - ], - "_prefab": { - "__id__": 32 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Button_SkillBtn_Orange", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 3 - }, - { - "__id__": 5 - } - ], - "_prefab": { - "__id__": 7 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 4 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 80, - "height": 80 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "bauY7hXINFZrhPl6edHIl2" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 6 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@f37b3", - "__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": "462hZnCkNO97yqyBF8vbaN" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "fdCiFhP+xGc5Zyr+DMxELc", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "icon", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 9 - }, - { - "__id__": 11 - } - ], - "_prefab": { - "__id__": 13 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 65, - "height": 65 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "7aXcN081JI2alKGYRKpfpV" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "767c21dd-b2a2-4118-a12d-f67a8039abd4@b3f5a", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "9cs0MQwGRJl4svNJK/f2/x" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a0hwtaZtFLSrxUJFKE6ij0", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "cd", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 15 - }, - { - "__id__": 17 - } - ], - "_prefab": { - "__id__": 19 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0.7071067811865475, - "w": 0.7071067811865476 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 90 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 80, - "height": 80 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "29HRVP3rlJjJN03KS/Qaj3" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 18 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 105 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@cec89", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 3, - "_fillType": 2, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_fillStart": 0, - "_fillRange": 1, - "_isTrimmedMode": true, - "_useGrayscale": true, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "93Ul1oQ+xIiZpg+gxedB+D" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "75g2fW6exDe5hMWN7UMZ33", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "lv", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 21 - } - ], - "_prefab": { - "__id__": 23 - }, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 22 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5fUE+L6pFFGpUP6VIa0UGx" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b7JHHjwwtJr6ANHSR3jgj7", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 25 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 90, - "height": 90 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "84Ard7qDdFL7OPr15j/5zB" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 27 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 250, - "g": 0, - "b": 0, - "a": 255 - }, - "_spriteFrame": null, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": true, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "acXHR6iZtAP7pxuZwEfHv8" - }, - { - "__type__": "cc.ProgressBar", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 29 - }, - "_barSprite": { - "__id__": 17 - }, - "_mode": 2, - "_totalLength": 1, - "_progress": 1, - "_reverse": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a8E/M8cZNMh7zmcVGsBXx9" - }, - { - "__type__": "87082d0X2RDEq1y6hJbSlgm", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 31 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "26mc6tdD1FK4ibdzSJrtik" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "75xfkWpURP0b3lC6f/G9hT", - "instance": null, - "targetOverrides": null - } -] \ No newline at end of file diff --git a/assets/resources/game/heros/mskill.prefab.meta b/assets/resources/game/heros/mskill.prefab.meta deleted file mode 100644 index 02451117..00000000 --- a/assets/resources/game/heros/mskill.prefab.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.50", - "importer": "prefab", - "imported": true, - "uuid": "9ebd334d-ddc9-4c34-8997-bb10152b1061", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": { - "syncNodeName": "mskill" - } -} diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index e23d3876..71da8fdf 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -66,11 +66,7 @@ export const SkillSet={ } -export const MSkills={ - 1101:{uuid:1101,path:"1001",name: "火球术",info:"释放一个火球术攻击敌人",type:1,for_type:false,shoot:true,buff:false,tg:3,up_exp:10,ssk:1001, - ap:20,ap_up:1,cd:1}, -} -export const MSk_list = [1101,] +export const MSklist = [1101,1002] export const MSkillset={ confirm_exp:10, } diff --git a/assets/script/game/map/MIssionController.ts b/assets/script/game/map/MIssionController.ts index 9742c7ce..203484cf 100644 --- a/assets/script/game/map/MIssionController.ts +++ b/assets/script/game/map/MIssionController.ts @@ -4,7 +4,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu import { smc } from "../common/SingletonModuleComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; -import { MSkills, MSkillset, MSlist, SkillSet } from "../common/config/SkillSet"; +import { MSkillset, MSlist, SkillSet } from "../common/config/SkillSet"; import { HeroModelComp } from "../hero/HeroModelComp"; import { RewardSet } from "../common/config/RewardSet"; import { BoxSet, GameSet } from "../common/config/BoxSet"; @@ -22,8 +22,6 @@ import { BossList, MBSet, MissionNum, MissionSet, MonsetList } from "../common/c import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; import { HCard } from "./HCard"; import { HCardComp } from "./HCardComp"; -import { MSkill } from "../skills/MSkill"; -import { MSkillComp } from "../skills/MSkillComp"; import { VictoryComp } from "./VictoryComp"; import { ItemComp } from "./ItemComp"; const { ccclass, property } = _decorator; @@ -111,12 +109,7 @@ export class MissionComp extends CCComp { let heros:any= this.get_heros();; let monsters:any= this.get_mons(); let hcards:any= ecs.query(ecs.allOf(HCardComp)); - let mska:any= ecs.query(ecs.allOf(MSkillComp)); - let res:any= ecs.query(ecs.allOf(ItemComp)); - for(let i=0;i(); } - load(uuid:number=1001,parent:any) { + load(uuid:number=1001,parent:any,zone:number=0) { var path = "game/gui/MSCard"; // var icon_path = "game/heros/herois" // resources.load(icon_path, SpriteAtlas, (err: any, atlas) => { @@ -26,7 +26,8 @@ export class MSCard extends ecs.Entity { node.parent = parent var msc = node.getComponent(MSCardComp)!; msc.s_uuid= uuid - if(smc.mskill==uuid) msc.is_selected=true + if(zone==1) {msc.is_update=true }else{msc.is_update=false} + if(zone==2) {msc.is_select=true}else{msc.is_select=false} this.add(msc) } /** 模块资源释放 */ diff --git a/assets/script/game/map/MSCardComp.ts b/assets/script/game/map/MSCardComp.ts index 976e4842..d05382ba 100644 --- a/assets/script/game/map/MSCardComp.ts +++ b/assets/script/game/map/MSCardComp.ts @@ -1,6 +1,7 @@ import { _decorator } 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 { smc } from "../common/SingletonModuleComp"; const { ccclass, property } = _decorator; @@ -9,19 +10,30 @@ const { ccclass, property } = _decorator; @ecs.register('MSCardComp', false) export class MSCardComp extends CCComp { s_uuid: number = 0; - is_updated: boolean = false; + is_update: boolean = false; is_select: boolean = false; is_selected: boolean = false; /** 视图层逻辑代码分离演示 */ start() { console.log("MSCardComp start"); - if(this.is_updated){ this.node.getChildByName("update").active=true }else{ this.node.getChildByName("update").active=false } - if(this.is_select){ this.node.getChildByName("select").active=true }else{ this.node.getChildByName("select").active=false } - if(this.is_selected){ this.node.getChildByName("selected").active=true }else{ this.node.getChildByName("selected").active=false } + if(this.is_update){ + this.node.getChildByName("update").active=true + }else{ + this.node.getChildByName("update").active=false + } + if(this.is_select){ + this.node.getChildByName("set").active=true + this.update_select() + }else{ + this.node.getChildByName("set").active=false + } + } - + update_select(){ + if(smc.mskill ==this.s_uuid){ this.node.getChildByName("btn").active=false }else{ this.node.getChildByName("btn").active=true } + } /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ reset() { diff --git a/assets/script/game/map/MissionHomeComp.ts b/assets/script/game/map/MissionHomeComp.ts index 016a9b45..290e8f09 100644 --- a/assets/script/game/map/MissionHomeComp.ts +++ b/assets/script/game/map/MissionHomeComp.ts @@ -7,6 +7,8 @@ import { UiHeroComp } from "../hero/UiHeroComp"; import { BoxSet } from "../common/config/BoxSet"; import { smc } from "../common/SingletonModuleComp"; import { HeroSelect } from "../hero/HeroSelect"; +import { MSklist } from "../common/config/SkillSet"; +import { MSCard } from "./MSCard"; const { ccclass, property } = _decorator; @@ -28,7 +30,7 @@ export class MissionHomeComp extends CCComp { start() { // var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象 // this.on(ModuleEvent.Cmd, this.onHandler, this); - this.loads() + this.load_hero_card() this.load_ui_heros() } @@ -92,7 +94,7 @@ export class MissionHomeComp extends CCComp { } } } - loads(){ + load_hero_card(){ let hc:number =HeroList.length let parent= this.node.getChildByName("heros").getChildByName("view").getChildByName("content") let height=Math.ceil(hc / 4)*135 @@ -102,6 +104,16 @@ export class MissionHomeComp extends CCComp { hcc.load(HeroList[i],parent) } } + load_skill_card(){ + let ms_num:number =MSklist.length + let parent= this.node.getChildByName("skills").getChildByName("view").getChildByName("content") + let height=ms_num*135 + parent.getComponent(UITransform).width=height + for (let i = 0; i < ms_num; i++) { + let msc =ecs.getEntity(MSCard) + msc.load(HeroList[i],parent,1) + } + } show_uiheros(){ } diff --git a/assets/script/game/skills/MSkill.ts b/assets/script/game/skills/MSkill.ts deleted file mode 100644 index 55652715..00000000 --- a/assets/script/game/skills/MSkill.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { instantiate, Prefab, v3 } from "cc"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; -import { MSkillComp } from "./MSkillComp"; -import { smc } from "../common/SingletonModuleComp"; -import { BoxSet } from "../common/config/BoxSet"; - -/** MSkill 模块 */ -@ecs.register(`MSkill`) -export class MSkill extends ecs.Entity { - - - /** 实始添加的数据层组件 */ - protected init() { - // this.addComponents(); - } - load(box_group:number=0,uuid:number=1001) { - var path = "game/heros/mskill"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - let entityLayer =smc.map.MapView.scene.entityLayer!.node! - node.parent = entityLayer - let pos=v3(-300,245) - if(box_group==BoxSet.MONSTER){ - pos.x=300 - // node.setScale(-1,1) - } - node.setPosition(pos) - var msc = node.getComponent(MSkillComp)!; - msc.msk_uuid = uuid - msc.box_group = box_group - this.add(msc) - } - /** 模块资源释放 */ - destroy() { - // 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放 - super.destroy(); - } -} - diff --git a/assets/script/game/skills/MSkill.ts.meta b/assets/script/game/skills/MSkill.ts.meta deleted file mode 100644 index d1e3c79d..00000000 --- a/assets/script/game/skills/MSkill.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "10489fd2-88db-4945-a7b2-b9f26aaceab2", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/skills/MSkillComp.ts b/assets/script/game/skills/MSkillComp.ts deleted file mode 100644 index c8feb59d..00000000 --- a/assets/script/game/skills/MSkillComp.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { _decorator, ProgressBar, UITransform, v3, Vec3 } 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 { MSkills } from "../common/config/SkillSet"; -import { Skill } from "./Skill"; -import { BoxSet } from "../common/config/BoxSet"; -import { smc } from "../common/SingletonModuleComp"; - -const { ccclass, property } = _decorator; - -/** 视图层对象 */ -@ccclass('MSkillComp') -@ecs.register('MSkillComp', false) -export class MSkillComp extends CCComp { - msk_uuid: number = 0; - ap: number = 0; - cd: number = 0; - cdt: number = 0; - lv: number = 0; - skill:any=null - box_group:number=0 - - /** 视图层逻辑代码分离演示 */ - start() { - this.skill=MSkills[this.msk_uuid] - this.ap=this.skill.ap - this.cd=this.cdt=this.skill.cd - } - protected update(dt: number): void { - if(!smc.vmdata.mission.play||smc.vmdata.mission.pause){ - return - } - this.check_cd(dt) - } - check_cd(dt:number){ - this.cdt-=dt - this.node.getComponent(ProgressBar).progress=this.cdt/this.cd - if(this.cdt<=0){ - this.cdt=this.cd - if(this.skill.shoot){ - this.shoot_enemy() - }else if(this.skill.buff){ - this.add_buff() - }else{ - this.to_mission() - } - } - } - to_mission(){ - //特殊技能,如 增加一次免死, 复活等 - } - add_buff(){ - //buff 技能,如 加血 加攻 加生命值最大值 - } - shoot_enemy(){ - let skill = ecs.getEntity(Skill); - let {pos,t_pos}=this.get_enemy_pos() - pos.y=pos.y - pos.x=pos.x - skill.load(pos,this.box_group,this.node,this.skill.ssk,this.ap,t_pos,false,0); - console.log("mskill 使用技能:"+this.skill.ssk); - } - get_enemy_pos(){ - let pos =v3(0,0) - let t_pos:Vec3 = v3(0,0) - let dir = 720 - let enemy = v3(720,BoxSet.GAME_LINE) - if(this.box_group == BoxSet.MONSTER){ - let t_pos:Vec3 = v3(-720,0) - for (let i = 0; i < smc.hero_pos.length; i++) { - let ho:any = smc.hero_pos[i]; - let x=Math.abs(ho.x-this.node.position.x) - if(x < dir){ - dir = x - enemy = ho - } - } - } - if(this.box_group == BoxSet.HERO){ - let t_pos:Vec3 = v3(720,0) - for (let i = 0; i < smc.enemy_pos.length; i++) { - let mon:any = smc.enemy_pos[i]; - let x=Math.abs(mon.x-this.node.position.x) - if(x < dir){ - dir = x - enemy = mon - } - } - } - t_pos = v3(enemy.x-this.node.position.x,enemy.y-this.node.position.y) - return {pos,t_pos} - } - /** 全局消息逻辑处理 */ - - /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ - reset() { - this.node.destroy(); - } -} \ No newline at end of file diff --git a/assets/script/game/skills/MSkillComp.ts.meta b/assets/script/game/skills/MSkillComp.ts.meta deleted file mode 100644 index a4a7c8ad..00000000 --- a/assets/script/game/skills/MSkillComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "87082774-5f64-4312-ad72-ea125b4a5826", - "files": [], - "subMetas": {}, - "userData": {} -}