diff --git a/assets/resources/gui/element/prefab_talent_item.prefab b/assets/resources/gui/element/prefab_talent_item.prefab index d720997c..115c9f49 100644 --- a/assets/resources/gui/element/prefab_talent_item.prefab +++ b/assets/resources/gui/element/prefab_talent_item.prefab @@ -22,41 +22,32 @@ "__id__": 2 }, { - "__id__": 18 + "__id__": 35 }, { - "__id__": 46 + "__id__": 41 }, { - "__id__": 101 + "__id__": 47 }, { - "__id__": 107 - }, - { - "__id__": 113 - }, - { - "__id__": 119 - }, - { - "__id__": 133 + "__id__": 53 } ], "_active": true, "_components": [ { - "__id__": 147 + "__id__": 59 }, { - "__id__": 149 + "__id__": 61 }, { - "__id__": 151 + "__id__": 63 } ], "_prefab": { - "__id__": 153 + "__id__": 65 }, "_lpos": { "__type__": "cc.Vec3", @@ -89,737 +80,399 @@ }, { "__type__": "cc.Node", - "_name": "bg", "_objFlags": 0, - "__editorExtras__": {}, "_parent": { "__id__": 1 }, - "_children": [ + "_prefab": { + "__id__": 3 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 2 + }, + "asset": { + "__uuid__": "d6ae7b2b-c431-4374-97e6-2506d9e8501f", + "__expectedType__": "cc.Prefab" + }, + "fileId": "5ep7uhpAlKzpglXeTBjRv2", + "instance": { + "__id__": 4 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "01GIt7ffNCWb0ZbUQiuCOS", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ { - "__id__": 3 - } - ], - "_active": true, - "_components": [ + "__id__": 5 + }, { - "__id__": 11 + "__id__": 7 + }, + { + "__id__": 8 + }, + { + "__id__": 9 + }, + { + "__id__": 10 + }, + { + "__id__": 12 }, { "__id__": 13 }, { "__id__": 15 - } - ], - "_prefab": { - "__id__": 17 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "green", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 4 }, { - "__id__": 6 + "__id__": 17 }, - { - "__id__": 8 - } - ], - "_prefab": { - "__id__": 10 - }, - "_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__": 3 - }, - "_enabled": true, - "__prefab": { - "__id__": 5 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 200, - "height": 230 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "13G/pFKzhMuY5jDvPlPieg" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 3 - }, - "_enabled": true, - "__prefab": { - "__id__": 7 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@c77a7", - "__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": "26mHox8cxNZKq/50xqzUAa" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 3 - }, - "_enabled": true, - "__prefab": { - "__id__": 9 - }, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 228, - "_originalHeight": 293, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5b6bC4fW1PtoYsU/2k2kZ7" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "70eTcKbCxCCYLLLAZxFOeW", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 200, - "height": 230 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a68Z1K1PNBSpMzMJQqo+KG" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": false, - "__prefab": { - "__id__": 14 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@c77a7", - "__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": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4", - "__expectedType__": "cc.SpriteAtlas" - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "33BCO8CxVD55LyJzeAu/p4" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 510, - "_originalHeight": 66, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e2XE/9DNJEbIr/heWZ/2jx" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "73y6WlD75NJq4yxVlyYPBM", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "icon", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ { "__id__": 19 }, + { + "__id__": 21 + }, + { + "__id__": 23 + }, + { + "__id__": 25 + }, { "__id__": 27 }, + { + "__id__": 29 + }, + { + "__id__": 31 + }, + { + "__id__": 32 + }, { "__id__": 33 - } - ], - "_active": true, - "_components": [ - { - "__id__": 39 }, { - "__id__": 41 - }, - { - "__id__": 43 + "__id__": 34 } ], - "_prefab": { - "__id__": 45 + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 }, - "_lpos": { + "propertyPath": [ + "_name" + ], + "value": "cardbg" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "5ep7uhpAlKzpglXeTBjRv2" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lpos" + ], + "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5.294000000000011, + "y": 0, "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 }, - "_lrot": { + "propertyPath": [ + "_lrot" + ], + "value": { "__type__": "cc.Quat", "x": 0, "y": 0, "z": 0, "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { + "propertyPath": [ + "_euler" + ], + "value": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 - }, - "_id": "" + } }, { - "__type__": "cc.Node", - "_name": "bg_green", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_active" + ], + "value": true + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "79YMAlxXNKM56a0MhDbg/E" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_active" + ], + "value": true + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 14 + }, + "propertyPath": [ + "_enabled" + ], + "value": false + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "06jUfFZsJEUqcDJJovdfmV" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 16 + }, + "propertyPath": [ + "_enabled" + ], + "value": true + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "1fB2CjJqJFgo9e1LJ6EyaL" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { "__id__": 18 }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 20 - }, - { - "__id__": 22 - }, - { - "__id__": 24 - } + "propertyPath": [ + "_contentSize" ], - "_prefab": { + "value": { + "__type__": "cc.Size", + "width": 220, + "height": 270 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "13j2oupQRMUoUyChWYn2yc" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 20 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 220, + "height": 270 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c8mzU+nw5GLJ4CZ7ZTe6eE" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 22 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 440, + "height": 540 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "5eZRKQByFG0LW2QA/PUw2u" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 24 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 432, + "height": 528 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "4buoN7nzRM9Kty43yoN7ul" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { "__id__": 26 }, - "_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__": 19 - }, - "_enabled": true, - "__prefab": { - "__id__": 21 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 170, - "height": 140 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f9B/GC6ARMbrC+jKg2wLvd" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 19 - }, - "_enabled": true, - "__prefab": { - "__id__": 23 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@49830", - "__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": "dcQLAWPPpPRrpES1fvUQsm" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 19 - }, - "_enabled": true, - "__prefab": { - "__id__": 25 - }, - "_alignFlags": 45, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 200, - "_originalHeight": 216, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "93Hy1a0+dN7ZTqXSNCOi4m" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "0bRuSLIuZAwb5HTI9pZjAT", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "function_icon_shield_magic", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 18 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 28 - }, - { - "__id__": 30 - } + "propertyPath": [ + "_contentSize" ], - "_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": 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__": 27 - }, - "_enabled": true, - "__prefab": { - "__id__": 29 - }, - "_contentSize": { + "value": { "__type__": "cc.Size", - "width": 38, - "height": 42 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" + "width": 190, + "height": 140 + } }, { - "__type__": "cc.CompPrefabInfo", - "fileId": "78W4GW5Q1J7qBxSxQcJcRf" + "__type__": "cc.TargetInfo", + "localID": [ + "faGw1NMRpJ+IWtI609CAxN" + ] }, { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 28 }, - "_enabled": true, - "__prefab": { - "__id__": 31 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 65 - }, - "_spriteFrame": { - "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@23c2c", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": true, - "_atlas": { - "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", - "__expectedType__": "cc.SpriteAtlas" - }, - "_id": "" + "y": 50, + "z": 0 + } }, { - "__type__": "cc.CompPrefabInfo", - "fileId": "61Lh4ELnlO9p20GSnJUwZC" + "__type__": "cc.TargetInfo", + "localID": [ + "69ZX4yvCZL67xK4+SdFMO0" + ] }, { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 30 }, - "asset": { - "__id__": 0 + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 380, + "height": 280 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "5cf2X5S4JMQ7x3zijgLWIX" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 16 }, - "fileId": "b6qrI4gSpARI/HxLvN9wX2", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null + "propertyPath": [ + "_left" + ], + "value": 0 + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 16 + }, + "propertyPath": [ + "_right" + ], + "value": 0 + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 16 + }, + "propertyPath": [ + "_top" + ], + "value": 0 + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 16 + }, + "propertyPath": [ + "_bottom" + ], + "value": 0 }, { "__type__": "cc.Node", @@ -827,25 +480,25 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 18 + "__id__": 1 }, "_children": [], "_active": true, "_components": [ { - "__id__": 34 + "__id__": 36 }, { - "__id__": 36 + "__id__": 38 } ], "_prefab": { - "__id__": 38 + "__id__": 40 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": 63.544, "z": 0 }, "_lrot": { @@ -857,8 +510,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.7, + "y": 0.7, "z": 1 }, "_mobility": 0, @@ -877,11 +530,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 33 + "__id__": 35 }, "_enabled": true, "__prefab": { - "__id__": 35 + "__id__": 37 }, "_contentSize": { "__type__": "cc.Size", @@ -905,11 +558,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 33 + "__id__": 35 }, "_enabled": true, "__prefab": { - "__id__": 37 + "__id__": 39 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -960,806 +613,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 40 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 170, - "height": 140 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e8sr0zajFNh4WjhmN0i/qv" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": false, - "__prefab": { - "__id__": 42 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@49830", - "__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": "f6YxRY8mFDEIg8wMDKbXZE" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 44 - }, - "_alignFlags": 41, - "_target": null, - "_left": 15, - "_right": 15, - "_top": 39.705999999999996, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 200, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "49pKceM9hL4YDs+3dheEId" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "99qHpq3R5PKYzZqX4TPN7j", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 1 - }, - "_prefab": { - "__id__": 47 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 46 - }, - "asset": { - "__uuid__": "d19cde30-f5d0-47de-a0d5-3a272b696343", - "__expectedType__": "cc.Prefab" - }, - "fileId": "c46/YsCPVOJYA4mWEpNYRx", - "instance": { - "__id__": 48 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "48NAcy0npHGbG/t7Pibkjp", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [ - { - "__id__": 49 - } - ], - "propertyOverrides": [ - { - "__id__": 53 - }, - { - "__id__": 55 - }, - { - "__id__": 56 - }, - { - "__id__": 57 - }, - { - "__id__": 58 - }, - { - "__id__": 60 - }, - { - "__id__": 62 - }, - { - "__id__": 64 - }, - { - "__id__": 66 - }, - { - "__id__": 68 - }, - { - "__id__": 70 - }, - { - "__id__": 72 - }, - { - "__id__": 74 - }, - { - "__id__": 76 - }, - { - "__id__": 77 - }, - { - "__id__": 79 - }, - { - "__id__": 81 - }, - { - "__id__": 83 - }, - { - "__id__": 85 - }, - { - "__id__": 86 - }, - { - "__id__": 87 - }, - { - "__id__": 88 - }, - { - "__id__": 89 - }, - { - "__id__": 90 - }, - { - "__id__": 92 - }, - { - "__id__": 94 - }, - { - "__id__": 96 - }, - { - "__id__": 97 - }, - { - "__id__": 98 - }, - { - "__id__": 99 - }, - { - "__id__": 100 - } - ], - "removedComponents": [] - }, - { - "__type__": "cc.MountedComponentsInfo", - "targetInfo": { - "__id__": 50 - }, - "components": [ - { - "__id__": 51 - } - ] - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "c46/YsCPVOJYA4mWEpNYRx" - ] - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": { - "mountedRoot": { - "__id__": 46 - } - }, - "node": { - "__id__": 46 - }, - "_enabled": true, - "__prefab": { - "__id__": 52 - }, - "_alignFlags": 41, - "_target": null, - "_left": 15, - "_right": 15, - "_top": 15, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 200, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "72oibEhaNJN67jO7kd4oMq" - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_name" - ], - "value": "sbox" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "c46/YsCPVOJYA4mWEpNYRx" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 40, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 59 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "95w1bEWo1Fx6DZZbD+r43Q" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 61 - }, - "propertyPath": [ - "_enabled" - ], - "value": false - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "2b0pxtPkdJgrKePAS8msRc" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 63 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "93fFoXu3BBYqu4RLG2YPon" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 65 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 140, - "height": 120 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "f9WzzmQplCw4od/9N1bGZ8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 67 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 140, - "height": 140 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "cdEeG/ubFJgqKs1MdM6xd9" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 69 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 140, - "height": 120 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "03nWLvwvFC5YKsJgnNXuKJ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 71 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 56, - "height": 56 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "e2LJMsJCxMdZP6mZ0DhjCz" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 73 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 48, - "height": 48 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "76Sa4mmOZMQrMumtAHxyo2" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 75 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 60, - "height": 60 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "19t10HqqxDEp2LKqJQnjiC" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 63 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 78 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "c7ymg5OshHabafeZJICJug" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 80 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "deVarRuaFN1LhVMF8Wr72H" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 82 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "68ynJ6KthFHKvnm/9hhwDy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 84 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "c1oHa+DbJBxaNK0AtFNYj1" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 65 - }, - "propertyPath": [ - "_anchorPoint" - ], - "value": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 80 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 82 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 84 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 91 - }, - "propertyPath": [ - "_lscale" - ], - "value": { - "__type__": "cc.Vec3", - "x": 1.9, - "y": 1.9, - "z": 1 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "93wpdyvytKPqGrBBUDf293" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 93 - }, - "propertyPath": [ - "_type" - ], - "value": 3 - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08gc0G6tZOap5VMXyIUk96" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 95 - }, - "propertyPath": [ - "_left" - ], - "value": 0 - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "4aJp4RicZF+KFW5/t1OofP" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 95 - }, - "propertyPath": [ - "_right" - ], - "value": 0 - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 95 - }, - "propertyPath": [ - "_top" - ], - "value": 0 - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 95 - }, - "propertyPath": [ - "_bottom" - ], - "value": 0 - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 93 - }, - "propertyPath": [ - "_alphaThreshold" - ], - "value": 0.1 - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 93 - }, - "propertyPath": [ - "_inverted" - ], - "value": false - }, { "__type__": "cc.Node", "_name": "lbl_name", @@ -1772,19 +625,19 @@ "_active": true, "_components": [ { - "__id__": 102 + "__id__": 42 }, { - "__id__": 104 + "__id__": 44 } ], "_prefab": { - "__id__": 106 + "__id__": 46 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 50.321, + "y": 0.087, "z": 0 }, "_lrot": { @@ -1816,11 +669,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 101 + "__id__": 41 }, "_enabled": true, "__prefab": { - "__id__": 103 + "__id__": 43 }, "_contentSize": { "__type__": "cc.Size", @@ -1844,11 +697,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 101 + "__id__": 41 }, "_enabled": true, "__prefab": { - "__id__": 105 + "__id__": 45 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1931,19 +784,19 @@ "_active": true, "_components": [ { - "__id__": 108 + "__id__": 48 }, { - "__id__": 110 + "__id__": 50 } ], "_prefab": { - "__id__": 112 + "__id__": 52 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -49.504, + "y": -75.304, "z": 0 }, "_lrot": { @@ -1975,16 +828,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 107 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 109 + "__id__": 49 }, "_contentSize": { "__type__": "cc.Size", - "width": 75.8515625, - "height": 71 + "width": 200, + "height": 90 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2003,36 +856,36 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 107 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 111 + "__id__": 51 }, "_customMaterial": null, "_srcBlendFactor": 2, "_dstBlendFactor": 4, "_color": { "__type__": "cc.Color", - "r": 41, + "r": 255, "g": 255, - "b": 0, + "b": 255, "a": 255 }, "_string": "+10", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 40, - "_fontSize": 40, + "_actualFontSize": 26, + "_fontSize": 25, "_fontFamily": "Arial", - "_lineHeight": 50, - "_overflow": 0, + "_lineHeight": 30, + "_overflow": 2, "_enableWrapText": true, "_font": null, "_isSystemFontUsed": true, "_spacingX": 0, "_isItalic": false, - "_isBold": true, + "_isBold": false, "_isUnderline": false, "_underlineHeight": 2, "_cacheMode": 0, @@ -2087,17 +940,17 @@ "__id__": 1 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { - "__id__": 114 + "__id__": 54 }, { - "__id__": 116 + "__id__": 56 } ], "_prefab": { - "__id__": 118 + "__id__": 58 }, "_lpos": { "__type__": "cc.Vec3", @@ -2134,11 +987,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 113 + "__id__": 53 }, "_enabled": true, "__prefab": { - "__id__": 115 + "__id__": 55 }, "_contentSize": { "__type__": "cc.Size", @@ -2162,11 +1015,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 113 + "__id__": 53 }, "_enabled": true, "__prefab": { - "__id__": 117 + "__id__": 57 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2237,719 +1090,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "btn_upgrade", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 120 - } - ], - "_active": true, - "_components": [ - { - "__id__": 126 - }, - { - "__id__": 128 - }, - { - "__id__": 130 - } - ], - "_prefab": { - "__id__": 132 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 4.963, - "y": -89.584, - "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": "Label", - "_objFlags": 512, - "__editorExtras__": {}, - "_parent": { - "__id__": 119 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 121 - }, - { - "__id__": 123 - } - ], - "_prefab": { - "__id__": 125 - }, - "_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__": 120 - }, - "_enabled": true, - "__prefab": { - "__id__": 122 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2cYHODPBZHuJbBODm1uYNx" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 120 - }, - "_enabled": true, - "__prefab": { - "__id__": 124 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "升级", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 20, - "_fontSize": 20, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 1, - "_enableWrapText": false, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_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": "96DZMs0atH1LD6O/1RTu1K" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "aefOgghpxN64VrjruvSmuI", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 119 - }, - "_enabled": true, - "__prefab": { - "__id__": 127 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b3AQM+h9BHpLnrygPlZana" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 119 - }, - "_enabled": false, - "__prefab": { - "__id__": 129 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@4a554", - "__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": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4", - "__expectedType__": "cc.SpriteAtlas" - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "21xdOE3ARMt6tBixkm+eM3" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 119 - }, - "_enabled": true, - "__prefab": { - "__id__": 131 - }, - "clickEvents": [], - "_interactable": true, - "_transition": 2, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": { - "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@4a554", - "__expectedType__": "cc.SpriteFrame" - }, - "_hoverSprite": { - "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_pressedSprite": { - "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_disabledSprite": { - "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 119 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "749cZz+AZKvbjpOipO5pmF" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a0rPZ7GARH9YkKvzyZ4YU7", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "lbl_cost", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 134 - } - ], - "_active": true, - "_components": [ - { - "__id__": 142 - }, - { - "__id__": 144 - } - ], - "_prefab": { - "__id__": 146 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 20, - "y": -89.09, - "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": "ItemIcon_Coin_Gold", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 133 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 135 - }, - { - "__id__": 137 - }, - { - "__id__": 139 - } - ], - "_prefab": { - "__id__": 141 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -42.09380859375, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.3, - "y": 0.3, - "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__": 134 - }, - "_enabled": true, - "__prefab": { - "__id__": 136 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 112, - "height": 116 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "9fUON6NopHsJNzPVhQmJnv" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 134 - }, - "_enabled": true, - "__prefab": { - "__id__": 138 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@23e64", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5fH/PlBvxO2rEZ5p7JN2F7" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 134 - }, - "_enabled": true, - "__prefab": { - "__id__": 140 - }, - "_alignFlags": 8, - "_target": null, - "_left": -37.428476562499995, - "_right": 0, - "_top": 0, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d8rEBvf5pDhq7Qf9/0Mj8s" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a0P6qDVtlOeZaMkUQW2Y4s", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 133 - }, - "_enabled": true, - "__prefab": { - "__id__": 143 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 42.9306640625, - "height": 54.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "74yfxkJd5OpKlsduwh4puC" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 133 - }, - "_enabled": true, - "__prefab": { - "__id__": 145 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "10", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 35, - "_fontSize": 35, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_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": "e7Wg+LT69GkLIcdT1XdEAo" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "cdtA7rnB5M46HnWCl0H0kv", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.UITransform", "_name": "", @@ -2960,12 +1100,12 @@ }, "_enabled": true, "__prefab": { - "__id__": 148 + "__id__": 60 }, "_contentSize": { "__type__": "cc.Size", - "width": 200, - "height": 230 + "width": 220, + "height": 270 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2988,7 +1128,7 @@ }, "_enabled": false, "__prefab": { - "__id__": 150 + "__id__": 62 }, "_alignFlags": 40, "_target": null, @@ -3024,32 +1164,18 @@ }, "_enabled": true, "__prefab": { - "__id__": 152 + "__id__": 64 }, "lbl_name": { - "__id__": 104 + "__id__": 44 }, - "icon_node": { - "__id__": 33 + "lbl_info": { + "__id__": 50 }, - "lbl_desc": { - "__id__": 110 - }, - "lbl_level": { - "__id__": 116 - }, - "lbl_cost": { - "__id__": 144 - }, - "btn_upgrade": { - "__id__": 130 - }, - "item_bg": { - "__id__": 2 - }, - "icon_bg": { - "__id__": 18 + "icon": { + "__id__": 38 }, + "bg": null, "_id": "" }, { @@ -3068,99 +1194,35 @@ "instance": null, "targetOverrides": [ { - "__id__": 154 - }, - { - "__id__": 157 - }, - { - "__id__": 160 + "__id__": 66 } ], "nestedPrefabInstanceRoots": [ { - "__id__": 46 + "__id__": 2 } ] }, { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 46 - }, - "sourceInfo": { - "__id__": 155 - }, - "propertyPath": [ - "icon_node" - ], - "target": { - "__id__": 46 - }, - "targetInfo": { - "__id__": 156 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "2b0pxtPkdJgrKePAS8msRc" - ] - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "93wpdyvytKPqGrBBUDf293" - ] - }, - { - "__type__": "cc.TargetOverrideInfo", - "source": { - "__id__": 46 - }, - "sourceInfo": { - "__id__": 158 - }, - "propertyPath": [ - "info_label" - ], - "target": { - "__id__": 46 - }, - "targetInfo": { - "__id__": 159 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "2b0pxtPkdJgrKePAS8msRc" - ] - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "c9LY8ld0BAtrfUEiEvIGKN" - ] - }, - { - "__type__": "cc.TargetOverrideInfo", - "source": { - "__id__": 51 + "__id__": 63 }, "sourceInfo": null, - "propertyPath": [], + "propertyPath": [ + "bg" + ], "target": { - "__id__": 46 + "__id__": 2 }, "targetInfo": { - "__id__": 161 + "__id__": 67 } }, { "__type__": "cc.TargetInfo", "localID": [ - "72oibEhaNJN67jO7kd4oMq" + "1fQvT1A5hItJZd6AwSBLLo" ] } ] \ No newline at end of file diff --git a/assets/resources/gui/element/talents.prefab b/assets/resources/gui/element/talents.prefab index 2c6849f3..66c0eca0 100644 --- a/assets/resources/gui/element/talents.prefab +++ b/assets/resources/gui/element/talents.prefab @@ -1110,7 +1110,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 660, + "width": 720, "height": 1000 }, "_anchorPoint": { @@ -1138,8 +1138,8 @@ }, "_alignFlags": 41, "_target": null, - "_left": 30, - "_right": 30, + "_left": 0, + "_right": 0, "_top": 0, "_bottom": 615, "_horizontalCenter": 0, @@ -1180,12 +1180,12 @@ "height": 40 }, "_startAxis": 0, - "_paddingLeft": 10, - "_paddingRight": 10, + "_paddingLeft": 15, + "_paddingRight": 15, "_paddingTop": 0, "_paddingBottom": 0, - "_spacingX": 20, - "_spacingY": 20, + "_spacingX": 15, + "_spacingY": 15, "_verticalDirection": 1, "_horizontalDirection": 0, "_constraint": 2, @@ -3915,21 +3915,6 @@ "__prefab": { "__id__": 170 }, - "title_node": { - "__id__": 12 - }, - "lbl_level": { - "__id__": 78 - }, - "lbl_exp": { - "__id__": 93 - }, - "pb_exp": { - "__id__": 108 - }, - "lbl_points": { - "__id__": 120 - }, "talents_content": { "__id__": 36 }, @@ -3937,12 +3922,6 @@ "__uuid__": "a0cdb31c-0abb-4e12-9dfe-0bd9e8cd7272", "__expectedType__": "cc.Prefab" }, - "btn_reset": { - "__id__": 134 - }, - "btn_close": { - "__id__": 159 - }, "_id": "" }, { diff --git a/assets/script/game/map/TalentItemComp.ts b/assets/script/game/map/TalentItemComp.ts index 65240b13..83f56950 100644 --- a/assets/script/game/map/TalentItemComp.ts +++ b/assets/script/game/map/TalentItemComp.ts @@ -1,61 +1,85 @@ /** * @file TalentItemComp.ts - * @description 驻场技能项组件(UI 视图层) + * @description 天赋图鉴项组件(UI 视图层) * * 职责: - * 1. 接收 TalentsComp 下发的 FieldSkillConfig 与当前场上总加成值。 - * 2. 渲染名称 / 基础值 / 当前值 / 描述四段信息。 - * 3. 兼容旧的 `@ecs.register('TalentItem')` 资源引用。 + * 1. 接收 TalentsComp 下发的天赋卡配置(技能卡)。 + * 2. 渲染名称、描述、图标和背景。 + * 3. 背景颜色根据 wave 映射为对应的 poolLv。 * * 依赖: - * - SkillSet.FieldSkillConfig —— 单条驻场技能配置 + * - CardSet.CardConfig —— 单条卡牌配置 + * - SkillSet —— 获取技能图标 */ -import { _decorator, Label } from "cc"; +import { _decorator, Label, Sprite, SpriteFrame } 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 { FieldSkillConfig } from "../common/config/SkillSet"; +import { CardConfig } from "../common/config/CardSet"; +import { SkillSet } from "../common/config/SkillSet"; +import { CardBgComp } from "./CardBgComp"; +import { smc } from "../common/SingletonModuleComp"; +import { oops } from "db://oops-framework/core/Oops"; const { ccclass, property } = _decorator; -/** - * 将驻场配置值统一格式化为可读字符串。 - * 兼容"小数"(0.1 表示 10%)与"整数百分点"(10 表示 10%)两种口径。 - */ -function formatBuffValue(value: number): string { - if (Math.abs(value) < 1) { - return `${(value * 100).toFixed(0)}%`; - } - return value.toString(); -} - -/** TalentItemComp —— 驻场技能项组件 */ +/** TalentItemComp —— 天赋图鉴项组件 */ @ccclass('TalentItemComp') @ecs.register('TalentItem', false) export class TalentItemComp extends CCComp { - @property({ type: Label, tooltip: "驻场技能名称" }) + @property({ type: Label, tooltip: "天赋名称" }) lbl_name: Label = null!; - @property({ type: Label, tooltip: "基础值(来自配置)" }) - lbl_base: Label = null!; - - @property({ type: Label, tooltip: "当前场上总加成(实时聚合)" }) - lbl_current: Label = null!; - - @property({ type: Label, tooltip: "驻场技能描述" }) + @property({ type: Label, tooltip: "天赋说明" }) lbl_info: Label = null!; + @property({ type: Sprite, tooltip: "天赋图标" }) + icon: Sprite = null!; + + @property({ type: CardBgComp, tooltip: "卡牌背景组件" }) + bg: CardBgComp = null!; + /** - * 刷新单条驻场技能展示 - * @param config FieldSkillSet 中的单条配置 - * @param currentTotal 当前场上同 type 累加值(实时聚合) + * 刷新单条天赋展示 + * @param config CardPoolList 中的天赋卡(技能卡)配置 */ - public updateItem(config: FieldSkillConfig, currentTotal: number): void { + public updateItem(config: CardConfig): void { if (!config) return; + if (this.lbl_name) this.lbl_name.string = config.name ?? ""; - if (this.lbl_base) this.lbl_base.string = `基础 +${formatBuffValue(config.value)}`; - if (this.lbl_current) this.lbl_current.string = `当前 +${formatBuffValue(currentTotal)}`; if (this.lbl_info) this.lbl_info.string = config.info ?? ""; + + // 根据 wave 映射背景颜色 + // 1=绿色(poolLv=1) 5=蓝色(poolLv=2) 10=紫色(poolLv=3) 15=黄色(poolLv=4) 20=红色(poolLv=5) + if (this.bg) { + let poolLv = 1; + const wave = config.wave || 1; + if (wave >= 20) poolLv = 5; + else if (wave >= 15) poolLv = 4; + else if (wave >= 10) poolLv = 3; + else if (wave >= 5) poolLv = 2; + else poolLv = 1; + + this.bg.apply(poolLv); + } + + // 设置图标 + if (this.icon && config.skill) { + const skillData = SkillSet[config.skill]; + if (skillData && skillData.icon) { + if (smc.uiconsAtlas) { + const frame = smc.uiconsAtlas.getSpriteFrame(skillData.icon); + if (frame) { + this.icon.spriteFrame = frame; + } + } else { + const sf = oops.res.get("game/heros/cards/" + skillData.icon, SpriteFrame) as SpriteFrame; + if (sf) { + this.icon.spriteFrame = sf; + } + } + } + } } /** ECS 组件移除时销毁节点(CCComp 抽象方法实现) */ diff --git a/assets/script/game/map/TalentsComp.ts b/assets/script/game/map/TalentsComp.ts index d802b4c2..aee678d5 100644 --- a/assets/script/game/map/TalentsComp.ts +++ b/assets/script/game/map/TalentsComp.ts @@ -1,36 +1,34 @@ /** * @file TalentsComp.ts - * @description 驻场技能信息展示页组件(UI 视图层) + * @description 天赋图鉴页组件(UI 视图层) * * 职责: - * 1. 展示当前所有 FieldSkillSet 配置项的名称、基础值、当前场上总加成。 - * 2. 通过 FieldSkillHelper 实时聚合英雄驻场数据并下发给每个 TalentItemComp。 + * 1. 展示当前所有天赋卡(技能卡)的图鉴。 + * 2. 从 CardPoolList 获取所有的 type=Skill 卡牌。 * 3. 兼容旧的 `@ecs.register('Talents')` 资源引用。 * * 依赖: - * - SkillSet(FieldSkillSet / FieldSkillConfig)—— 驻场技能配置 - * - FieldSkillHelper —— 场上英雄驻场技能聚合 - * - TalentItemComp —— 单条驻场技能项视图 + * - CardPoolList(CardSet)—— 获取技能卡配置 + * - TalentItemComp —— 单条天赋图鉴项视图 */ import { _decorator, instantiate, Node, Prefab } 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 { mLogger } from "../common/Logger"; -import { FieldSkillSet, FieldSkillConfig } from "../common/config/SkillSet"; -import { FieldSkillHelper } from "../hero/FieldSkillHelper"; +import { CardPoolList, CardType, CardConfig } from "../common/config/CardSet"; import { TalentItemComp } from "./TalentItemComp"; const { ccclass, property } = _decorator; -/** TalentsComp —— 驻场技能信息页组件 */ +/** TalentsComp —— 天赋图鉴信息页组件 */ @ccclass('TalentsComp') @ecs.register('Talents', false) export class TalentsComp extends CCComp { - @property({ type: Node, tooltip: "驻场技能列表容器" }) + @property({ type: Node, tooltip: "天赋技能列表容器" }) talents_content: Node = null!; - @property({ type: Prefab, tooltip: "单条驻场技能项预制" }) + @property({ type: Prefab, tooltip: "单条天赋项预制" }) prefab_talent_item: Prefab = null!; /** 调试日志开关 */ @@ -40,7 +38,7 @@ export class TalentsComp extends CCComp { private rendered: boolean = false; /** 缓存的稳定配置顺序,避免重复渲染时列表抖动 */ - private cachedConfigs: FieldSkillConfig[] = []; + private cachedConfigs: CardConfig[] = []; protected onEnable(): void { this.refreshUI(); @@ -50,30 +48,36 @@ export class TalentsComp extends CCComp { public refreshUI(): void { if (!this.talents_content || !this.prefab_talent_item) return; - // 第一次:实例化所有子节点;之后只更新数据 + // 第一次:实例化所有子节点 if (!this.rendered) { - this.cachedConfigs = Object.values(FieldSkillSet) - .sort((a, b) => a.uuid - b.uuid); + // 获取所有天赋(技能卡)并按 wave 和 uuid 排序 + this.cachedConfigs = CardPoolList.filter(card => card.type === CardType.Skill) + .sort((a, b) => { + const waveA = a.wave || 1; + const waveB = b.wave || 1; + if (waveA !== waveB) return waveA - waveB; + return a.uuid - b.uuid; + }); + this.cachedConfigs.forEach((cfg) => { const itemNode = instantiate(this.prefab_talent_item); this.talents_content.addChild(itemNode); const comp = itemNode.getComponent(TalentItemComp); if (comp) { - comp.updateItem(cfg, 0); + comp.updateItem(cfg); } }); this.rendered = true; + } else { + // 如果已渲染,则仅更新数据(图鉴一般不会变动,这里做个兜底更新) + this.cachedConfigs.forEach((cfg, index) => { + const child = this.talents_content.children[index]; + if (!child) return; + const comp = child.getComponent(TalentItemComp); + if (!comp) return; + comp.updateItem(cfg); + }); } - - // 按相同顺序回填最新场上聚合值 - this.cachedConfigs.forEach((cfg, index) => { - const child = this.talents_content.children[index]; - if (!child) return; - const comp = child.getComponent(TalentItemComp); - if (!comp) return; - const total = FieldSkillHelper.getFieldSkillTotalValue(cfg.type); - comp.updateItem(cfg, total); - }); } /** ECS 组件移除时销毁节点 */