diff --git a/assets/resources/game/gui/reward.prefab b/assets/resources/game/gui/reward.prefab new file mode 100644 index 00000000..15d412e4 --- /dev/null +++ b/assets/resources/game/gui/reward.prefab @@ -0,0 +1,1198 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "reward", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "reward", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 8 + }, + { + "__id__": 14 + }, + { + "__id__": 24 + }, + { + "__id__": 30 + }, + { + "__id__": 36 + }, + { + "__id__": 42 + } + ], + "_active": true, + "_components": [ + { + "__id__": 48 + }, + { + "__id__": 50 + } + ], + "_prefab": { + "__id__": 52 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -335, + "y": -237.5, + "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": "bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 7 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -1, + "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": 670, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0et+VWIVtOG4BxtrbYi4Om" + }, + { + "__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": 170 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5304c", + "__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": "daYVfwCEhD/LUgwUrKsyh3" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "68H37nVuhHl5dvrmJxOd+N", + "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": 19, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.7, + "y": 0.7, + "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": 67, + "height": 67 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "058x9WfCBBrokeMoSnklM2" + }, + { + "__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__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@ddb7d", + "__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": "53uqYIBxFB47BY3lFDfJvG" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "77ocUiszFAJoD+JaQ2N4E0", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 15 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 14 + }, + "asset": { + "__uuid__": "1331ab21-9111-4f46-b039-db7ab85aef63", + "__expectedType__": "cc.Prefab" + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": { + "__id__": 16 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "62fz4znUZEmZOf0iMnucEW", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 17 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + }, + { + "__id__": 21 + }, + { + "__id__": 22 + }, + { + "__id__": 23 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_name" + ], + "value": "hchip" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c46/YsCPVOJYA4mWEpNYRx" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 41.801, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_active" + ], + "value": false + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 18 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0.65, + "y": 0.65, + "z": 1 + } + }, + { + "__type__": "cc.Node", + "_name": "x", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 25 + }, + { + "__id__": 27 + } + ], + "_prefab": { + "__id__": 29 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 360.796, + "y": -2, + "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__": 24 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 130, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2cEti6VKNHAa9ixgAHOJsp" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 24 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "x", + "_horizontalAlign": 0, + "_verticalAlign": 1, + "_actualFontSize": 21, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_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": "38Q/BQjtVHprMbHqkm8un/" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f4bsA33+1JQKOPSiPE2nmg", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "x1", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 31 + }, + { + "__id__": 33 + } + ], + "_prefab": { + "__id__": 35 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 377.399, + "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__": 30 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 130, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2biJ2S5KxPnLu/RcuFm9Rc" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 30 + }, + "_enabled": true, + "__prefab": { + "__id__": 34 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "{{0:kmbt}}", + "_horizontalAlign": 0, + "_verticalAlign": 1, + "_actualFontSize": 26, + "_fontSize": 25, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_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": "3cDyxRQuNDzou+YZ7YoAi9" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a9ExoEc4RFyrTR6epMf0AB", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "+", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 37 + }, + { + "__id__": 39 + } + ], + "_prefab": { + "__id__": 41 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 567.379, + "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__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 130, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0fBzD+/XFK1ZBX40Dg7lXF" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 40 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 71, + "g": 255, + "b": 0, + "a": 255 + }, + "_string": "+", + "_horizontalAlign": 0, + "_verticalAlign": 1, + "_actualFontSize": 26, + "_fontSize": 25, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_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": "932WKxdcBG9aFhwYwEofjH" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "2ccb/33iNFrKuv8SRIYLvp", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "x10", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 43 + }, + { + "__id__": 45 + } + ], + "_prefab": { + "__id__": 47 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 591.24, + "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__": 42 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 130, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6c4Thpo0FHtJb6xkgERZMi" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 42 + }, + "_enabled": true, + "__prefab": { + "__id__": 46 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 61, + "g": 255, + "b": 0, + "a": 255 + }, + "_string": "{{0:kmbt}}", + "_horizontalAlign": 0, + "_verticalAlign": 1, + "_actualFontSize": 26, + "_fontSize": 25, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_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": "eeLUoRoyhAjbXROyU/MdPs" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "74KNtnLahJIb5MGGs2ExGf", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 49 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 670, + "height": 85 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13qd1GA1JA24LU62zC/TGt" + }, + { + "__type__": "0d093NXPrRI6YEuPEqzejbJ", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 51 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4eqH6zxR9KZaebG7LOsWDK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c7ZxC9RptFGrB1p1dqXbkr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": [ + { + "__id__": 14 + } + ] + } +] \ No newline at end of file diff --git a/assets/resources/game/gui/reward.prefab.meta b/assets/resources/game/gui/reward.prefab.meta new file mode 100644 index 00000000..0385e369 --- /dev/null +++ b/assets/resources/game/gui/reward.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "40f0eb45-ca9b-486a-aa48-936a2ec8d05d", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "reward" + } +} diff --git a/assets/resources/gui/element/victory.prefab b/assets/resources/gui/element/victory.prefab index 0d1031cf..ac93313b 100644 --- a/assets/resources/gui/element/victory.prefab +++ b/assets/resources/gui/element/victory.prefab @@ -34,23 +34,23 @@ "__id__": 28 }, { - "__id__": 210 + "__id__": 166 } ], "_active": true, "_components": [ { - "__id__": 286 + "__id__": 242 }, { - "__id__": 288 + "__id__": 244 }, { - "__id__": 290 + "__id__": 246 } ], "_prefab": { - "__id__": 292 + "__id__": 248 }, "_lpos": { "__type__": "cc.Vec3", @@ -149,7 +149,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 700, - "height": 800 + "height": 900 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -223,8 +223,8 @@ "_target": null, "_left": -300, "_right": -300, - "_top": -374.721, - "_bottom": -325.279, + "_top": -424.721, + "_bottom": -375.279, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -280,7 +280,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 395.44900000000007, + "y": 443.217, "z": 0 }, "_lrot": { @@ -356,7 +356,7 @@ "b": 255, "a": 255 }, - "_string": "奖励加倍", + "_string": "奖励统计", "_horizontalAlign": 1, "_verticalAlign": 1, "_actualFontSize": 40, @@ -438,8 +438,8 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -320.177, - "y": 321.49700000000007, + "x": -335.002, + "y": 385.737, "z": 0 }, "_lrot": { @@ -479,7 +479,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 179, + "width": 449.88623046875, "height": 54.4 }, "_anchorPoint": { @@ -515,7 +515,7 @@ "b": 255, "a": 255 }, - "_string": "本局已获取奖励", + "_string": "本局奖励 已获取 ", "_horizontalAlign": 0, "_verticalAlign": 1, "_actualFontSize": 25, @@ -597,8 +597,8 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 189.95799999999997, - "y": 321.49700000000007, + "x": 189.958, + "y": 385.737, "z": 0 }, "_lrot": { @@ -750,27 +750,24 @@ }, { "__id__": 117 - }, - { - "__id__": 161 } ], "_active": true, "_components": [ { - "__id__": 205 + "__id__": 161 }, { - "__id__": 207 + "__id__": 163 } ], "_prefab": { - "__id__": 209 + "__id__": 165 }, "_lpos": { "__type__": "cc.Vec3", "x": -1, - "y": 208.89800000000002, + "y": 294.551, "z": 0 }, "_lrot": { @@ -836,7 +833,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -335, - "y": 17.5, + "y": 27.5, "z": 0 }, "_lrot": { @@ -927,7 +924,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 80 + "height": 60 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1034,8 +1031,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.7, + "y": 0.7, "z": 1 }, "_mobility": 0, @@ -1839,7 +1836,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 85 + "height": 65 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1905,7 +1902,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -335, - "y": -67.5, + "y": -37.5, "z": 0 }, "_lrot": { @@ -1996,7 +1993,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 80 + "height": 60 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2103,8 +2100,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.7, + "y": 0.7, "z": 1 }, "_mobility": 0, @@ -2908,7 +2905,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 85 + "height": 65 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2974,7 +2971,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -335, - "y": -152.5, + "y": -102.5, "z": 0 }, "_lrot": { @@ -3065,7 +3062,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 80 + "height": 60 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3172,8 +3169,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.7, + "y": 0.7, "z": 1 }, "_mobility": 0, @@ -3977,7 +3974,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 670, - "height": 85 + "height": 65 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4003,1075 +4000,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "reward", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 28 - }, - "_children": [ - { - "__id__": 162 - }, - { - "__id__": 168 - }, - { - "__id__": 174 - }, - { - "__id__": 180 - }, - { - "__id__": 188 - }, - { - "__id__": 194 - } - ], - "_active": true, - "_components": [ - { - "__id__": 202 - } - ], - "_prefab": { - "__id__": 204 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -335, - "y": -237.5, - "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": "bg", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 163 - }, - { - "__id__": 165 - } - ], - "_prefab": { - "__id__": 167 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -1, - "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__": 162 - }, - "_enabled": true, - "__prefab": { - "__id__": 164 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 670, - "height": 80 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "0et+VWIVtOG4BxtrbYi4Om" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 162 - }, - "_enabled": true, - "__prefab": { - "__id__": 166 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 170 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5304c", - "__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": "daYVfwCEhD/LUgwUrKsyh3" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "68H37nVuhHl5dvrmJxOd+N", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "icon", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 169 - }, - { - "__id__": 171 - } - ], - "_prefab": { - "__id__": 173 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 19, - "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__": 168 - }, - "_enabled": true, - "__prefab": { - "__id__": 170 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 67, - "height": 67 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "058x9WfCBBrokeMoSnklM2" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 168 - }, - "_enabled": true, - "__prefab": { - "__id__": 172 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@ddb7d", - "__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": "53uqYIBxFB47BY3lFDfJvG" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "77ocUiszFAJoD+JaQ2N4E0", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "x", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 175 - }, - { - "__id__": 177 - } - ], - "_prefab": { - "__id__": 179 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 360.796, - "y": -2, - "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__": 174 - }, - "_enabled": true, - "__prefab": { - "__id__": 176 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 130, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2cEti6VKNHAa9ixgAHOJsp" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 174 - }, - "_enabled": true, - "__prefab": { - "__id__": 178 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "x", - "_horizontalAlign": 0, - "_verticalAlign": 1, - "_actualFontSize": 21, - "_fontSize": 20, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 2, - "_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": "38Q/BQjtVHprMbHqkm8un/" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "f4bsA33+1JQKOPSiPE2nmg", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "x1", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 181 - }, - { - "__id__": 183 - }, - { - "__id__": 185 - } - ], - "_prefab": { - "__id__": 187 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 377.399, - "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__": 180 - }, - "_enabled": true, - "__prefab": { - "__id__": 182 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 130, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2biJ2S5KxPnLu/RcuFm9Rc" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 180 - }, - "_enabled": true, - "__prefab": { - "__id__": 184 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "{{0:kmbt}}", - "_horizontalAlign": 0, - "_verticalAlign": 1, - "_actualFontSize": 26, - "_fontSize": 25, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 2, - "_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": "3cDyxRQuNDzou+YZ7YoAi9" - }, - { - "__type__": "545c05XsG9GDJispEGWKvYv", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 180 - }, - "_enabled": true, - "__prefab": { - "__id__": 186 - }, - "templateMode": true, - "watchPath": "", - "labelType": "cc.Label", - "watchPathArr": [ - "data.skp.x1" - ], - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "cbOA4eQTpIOKUA3Cs96NYr" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a9ExoEc4RFyrTR6epMf0AB", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "+", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 189 - }, - { - "__id__": 191 - } - ], - "_prefab": { - "__id__": 193 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 567.379, - "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__": 188 - }, - "_enabled": true, - "__prefab": { - "__id__": 190 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 130, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "0fBzD+/XFK1ZBX40Dg7lXF" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 188 - }, - "_enabled": true, - "__prefab": { - "__id__": 192 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 71, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "+", - "_horizontalAlign": 0, - "_verticalAlign": 1, - "_actualFontSize": 26, - "_fontSize": 25, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 2, - "_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": "932WKxdcBG9aFhwYwEofjH" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "2ccb/33iNFrKuv8SRIYLvp", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "x10", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 161 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 195 - }, - { - "__id__": 197 - }, - { - "__id__": 199 - } - ], - "_prefab": { - "__id__": 201 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 591.24, - "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__": 194 - }, - "_enabled": true, - "__prefab": { - "__id__": 196 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 130, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "6c4Thpo0FHtJb6xkgERZMi" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 194 - }, - "_enabled": true, - "__prefab": { - "__id__": 198 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 61, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "{{0:kmbt}}", - "_horizontalAlign": 0, - "_verticalAlign": 1, - "_actualFontSize": 26, - "_fontSize": 25, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 2, - "_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": "eeLUoRoyhAjbXROyU/MdPs" - }, - { - "__type__": "545c05XsG9GDJispEGWKvYv", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 194 - }, - "_enabled": true, - "__prefab": { - "__id__": 200 - }, - "templateMode": true, - "watchPath": "", - "labelType": "cc.Label", - "watchPathArr": [ - "data.skp.x10" - ], - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "7c/0mVXtRJipNYrUHbsX0f" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "74KNtnLahJIb5MGGs2ExGf", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 161 - }, - "_enabled": true, - "__prefab": { - "__id__": 203 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 670, - "height": 85 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "13qd1GA1JA24LU62zC/TGt" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "c7ZxC9RptFGrB1p1dqXbkr", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.UITransform", "_name": "", @@ -5082,7 +4010,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 206 + "__id__": 162 }, "_contentSize": { "__type__": "cc.Size", @@ -5110,14 +4038,14 @@ }, "_enabled": true, "__prefab": { - "__id__": 208 + "__id__": 164 }, "_resizeMode": 2, "_layoutType": 3, "_cellSize": { "__type__": "cc.Size", "width": 670, - "height": 85 + "height": 65 }, "_startAxis": 0, "_paddingLeft": 15, @@ -5161,25 +4089,25 @@ }, "_children": [ { - "__id__": 211 + "__id__": 167 }, { - "__id__": 252 + "__id__": 208 } ], "_active": true, "_components": [ { - "__id__": 283 + "__id__": 239 } ], "_prefab": { - "__id__": 285 + "__id__": 241 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -288.896, + "y": -338.311, "z": 0 }, "_lrot": { @@ -5211,33 +4139,33 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 210 + "__id__": 166 }, "_children": [ { - "__id__": 212 + "__id__": 168 }, { - "__id__": 229 + "__id__": 185 }, { - "__id__": 235 + "__id__": 191 } ], "_active": true, "_components": [ { - "__id__": 241 + "__id__": 197 }, { - "__id__": 243 + "__id__": 199 }, { - "__id__": 245 + "__id__": 201 } ], "_prefab": { - "__id__": 251 + "__id__": 207 }, "_lpos": { "__type__": "cc.Vec3", @@ -5272,17 +4200,17 @@ "__type__": "cc.Node", "_objFlags": 0, "_parent": { - "__id__": 211 + "__id__": 167 }, "_prefab": { - "__id__": 213 + "__id__": 169 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 212 + "__id__": 168 }, "asset": { "__uuid__": "915a4408-90ea-4c30-9974-05d96c0c27f1", @@ -5290,7 +4218,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 214 + "__id__": 170 }, "targetOverrides": null }, @@ -5304,31 +4232,31 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 215 + "__id__": 171 }, { - "__id__": 217 + "__id__": 173 }, { - "__id__": 218 + "__id__": 174 }, { - "__id__": 219 + "__id__": 175 }, { - "__id__": 220 + "__id__": 176 }, { - "__id__": 222 + "__id__": 178 }, { - "__id__": 224 + "__id__": 180 }, { - "__id__": 225 + "__id__": 181 }, { - "__id__": 227 + "__id__": 183 } ], "removedComponents": [] @@ -5336,7 +4264,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 216 + "__id__": 172 }, "propertyPath": [ "_name" @@ -5352,7 +4280,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 216 + "__id__": 172 }, "propertyPath": [ "_lpos" @@ -5367,7 +4295,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 216 + "__id__": 172 }, "propertyPath": [ "_lrot" @@ -5383,7 +4311,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 216 + "__id__": 172 }, "propertyPath": [ "_euler" @@ -5398,7 +4326,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 221 + "__id__": 177 }, "propertyPath": [ "_contentSize" @@ -5418,7 +4346,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 223 + "__id__": 179 }, "propertyPath": [ "_lscale" @@ -5439,7 +4367,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 223 + "__id__": 179 }, "propertyPath": [ "_active" @@ -5449,15 +4377,15 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 226 + "__id__": 182 }, "propertyPath": [ "_lscale" ], "value": { "__type__": "cc.Vec3", - "x": 1.5, - "y": 1.5, + "x": 1.2, + "y": 1.2, "z": 1 } }, @@ -5470,7 +4398,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 228 + "__id__": 184 }, "propertyPath": [ "_contentSize" @@ -5493,25 +4421,25 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 211 + "__id__": 167 }, "_children": [], "_active": true, "_components": [ { - "__id__": 230 + "__id__": 186 }, { - "__id__": 232 + "__id__": 188 } ], "_prefab": { - "__id__": 234 + "__id__": 190 }, "_lpos": { "__type__": "cc.Vec3", - "x": -82.174, - "y": 3.439, + "x": -86.402, + "y": 24.579, "z": 0 }, "_lrot": { @@ -5523,8 +4451,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.8, - "y": 0.8, + "x": 0.6, + "y": 0.6, "z": 1 }, "_mobility": 0, @@ -5543,11 +4471,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 229 + "__id__": 185 }, "_enabled": true, "__prefab": { - "__id__": 231 + "__id__": 187 }, "_contentSize": { "__type__": "cc.Size", @@ -5571,11 +4499,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 229 + "__id__": 185 }, "_enabled": true, "__prefab": { - "__id__": 233 + "__id__": 189 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -5629,24 +4557,24 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 211 + "__id__": 167 }, "_children": [], "_active": true, "_components": [ { - "__id__": 236 + "__id__": 192 }, { - "__id__": 238 + "__id__": 194 } ], "_prefab": { - "__id__": 240 + "__id__": 196 }, "_lpos": { "__type__": "cc.Vec3", - "x": 37.6, + "x": 0, "y": 0, "z": 0 }, @@ -5679,15 +4607,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 235 + "__id__": 191 }, "_enabled": true, "__prefab": { - "__id__": 237 + "__id__": 193 }, "_contentSize": { "__type__": "cc.Size", - "width": 124, + "width": 104, "height": 48.1 }, "_anchorPoint": { @@ -5707,11 +4635,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 235 + "__id__": 191 }, "_enabled": true, "__prefab": { - "__id__": 239 + "__id__": 195 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -5726,8 +4654,8 @@ "_string": "十倍领取", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 30, - "_fontSize": 30, + "_actualFontSize": 25, + "_fontSize": 25, "_fontFamily": "Arial", "_lineHeight": 35, "_overflow": 0, @@ -5788,11 +4716,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 211 + "__id__": 167 }, "_enabled": true, "__prefab": { - "__id__": 242 + "__id__": 198 }, "_contentSize": { "__type__": "cc.Size", @@ -5816,11 +4744,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 211 + "__id__": 167 }, "_enabled": false, "__prefab": { - "__id__": 244 + "__id__": 200 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -5861,24 +4789,24 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 211 + "__id__": 167 }, "_enabled": true, "__prefab": { - "__id__": 246 + "__id__": 202 }, "clickEvents": [ { - "__id__": 247 + "__id__": 203 }, { - "__id__": 248 + "__id__": 204 }, { - "__id__": 249 + "__id__": 205 }, { - "__id__": 250 + "__id__": 206 } ], "_interactable": true, @@ -5977,30 +4905,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 210 + "__id__": 166 }, "_children": [ { - "__id__": 253 + "__id__": 209 }, { - "__id__": 266 + "__id__": 222 } ], "_active": true, "_components": [ { - "__id__": 272 + "__id__": 228 }, { - "__id__": 274 + "__id__": 230 }, { - "__id__": 276 + "__id__": 232 } ], "_prefab": { - "__id__": 282 + "__id__": 238 }, "_lpos": { "__type__": "cc.Vec3", @@ -6035,17 +4963,17 @@ "__type__": "cc.Node", "_objFlags": 0, "_parent": { - "__id__": 252 + "__id__": 208 }, "_prefab": { - "__id__": 254 + "__id__": 210 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 253 + "__id__": 209 }, "asset": { "__uuid__": "915a4408-90ea-4c30-9974-05d96c0c27f1", @@ -6053,7 +4981,7 @@ }, "fileId": "c46/YsCPVOJYA4mWEpNYRx", "instance": { - "__id__": 255 + "__id__": 211 }, "targetOverrides": null }, @@ -6067,25 +4995,25 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 256 + "__id__": 212 }, { - "__id__": 258 + "__id__": 214 }, { - "__id__": 259 + "__id__": 215 }, { - "__id__": 260 + "__id__": 216 }, { - "__id__": 261 + "__id__": 217 }, { - "__id__": 263 + "__id__": 219 }, { - "__id__": 264 + "__id__": 220 } ], "removedComponents": [] @@ -6093,7 +5021,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 257 + "__id__": 213 }, "propertyPath": [ "_name" @@ -6109,7 +5037,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 257 + "__id__": 213 }, "propertyPath": [ "_lpos" @@ -6124,7 +5052,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 257 + "__id__": 213 }, "propertyPath": [ "_lrot" @@ -6140,7 +5068,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 257 + "__id__": 213 }, "propertyPath": [ "_euler" @@ -6155,7 +5083,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 262 + "__id__": 218 }, "propertyPath": [ "_lscale" @@ -6176,7 +5104,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 262 + "__id__": 218 }, "propertyPath": [ "_active" @@ -6186,15 +5114,15 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 265 + "__id__": 221 }, "propertyPath": [ "_lscale" ], "value": { "__type__": "cc.Vec3", - "x": 1.5, - "y": 1.5, + "x": 1.2, + "y": 1.2, "z": 1 } }, @@ -6210,20 +5138,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 252 + "__id__": 208 }, "_children": [], "_active": true, "_components": [ { - "__id__": 267 + "__id__": 223 }, { - "__id__": 269 + "__id__": 225 } ], "_prefab": { - "__id__": 271 + "__id__": 227 }, "_lpos": { "__type__": "cc.Vec3", @@ -6260,15 +5188,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 266 + "__id__": 222 }, "_enabled": true, "__prefab": { - "__id__": 268 + "__id__": 224 }, "_contentSize": { "__type__": "cc.Size", - "width": 124, + "width": 104, "height": 48.1 }, "_anchorPoint": { @@ -6288,11 +5216,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 266 + "__id__": 222 }, "_enabled": true, "__prefab": { - "__id__": 270 + "__id__": 226 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -6304,11 +5232,11 @@ "b": 255, "a": 255 }, - "_string": "不要加倍", + "_string": "不要十倍", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 30, - "_fontSize": 30, + "_actualFontSize": 25, + "_fontSize": 25, "_fontFamily": "Arial", "_lineHeight": 35, "_overflow": 0, @@ -6369,11 +5297,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 252 + "__id__": 208 }, "_enabled": true, "__prefab": { - "__id__": 273 + "__id__": 229 }, "_contentSize": { "__type__": "cc.Size", @@ -6397,11 +5325,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 252 + "__id__": 208 }, "_enabled": false, "__prefab": { - "__id__": 275 + "__id__": 231 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -6442,24 +5370,24 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 252 + "__id__": 208 }, "_enabled": true, "__prefab": { - "__id__": 277 + "__id__": 233 }, "clickEvents": [ { - "__id__": 278 + "__id__": 234 }, { - "__id__": 279 + "__id__": 235 }, { - "__id__": 280 + "__id__": 236 }, { - "__id__": 281 + "__id__": 237 } ], "_interactable": true, @@ -6558,11 +5486,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 210 + "__id__": 166 }, "_enabled": true, "__prefab": { - "__id__": 284 + "__id__": 240 }, "_contentSize": { "__type__": "cc.Size", @@ -6603,7 +5531,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 287 + "__id__": 243 }, "_contentSize": { "__type__": "cc.Size", @@ -6631,7 +5559,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 289 + "__id__": 245 }, "_id": "" }, @@ -6649,7 +5577,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 291 + "__id__": 247 }, "_alignFlags": 18, "_target": null, @@ -6688,10 +5616,10 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 253 + "__id__": 209 }, { - "__id__": 212 + "__id__": 168 } ] } diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index a4f76951..2b142ede 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -22,14 +22,6 @@ export class SingletonModuleComp extends ecs.Comp { initialize: Initialize = null!; /** 游戏地图 */ map: GameMap = null!; - cards: any = [ - {uuid:9001,type:1}, - ]; - item_list: any = [ - {uuid:6005,type:2},{uuid:6006,type:2},{uuid:6101,type:2},{uuid:6102,type:2}, {uuid:6210,type:2},{uuid:6211,type:2},{uuid:6212,type:2}, - // {uuid:6213,type:2},{uuid:6214,type:2},{uuid:6215,type:2}, - // {uuid:6216,type:2},{uuid:6217,type:2},{uuid:6218,type:2} - ]; mission:any={ play:false, pause:false, @@ -55,9 +47,9 @@ export class SingletonModuleComp extends ecs.Comp { }; /** 游戏主角 */ heros:any={ - 9001:{uuid:9001,lv:1,exp:0,slv:0,stone:0,num:100,x1:0,x10:0}, - 9002:{uuid:9002,lv:2,exp:0,slv:1,stone:0,num:80,x1:0,x10:0}, - 9003:{uuid:9003,lv:3,exp:0,slv:2,stone:0,num:90,x1:0,x10:0}, + 9001:{uuid:9001,lv:1,exp:0,slv:0,stone:0,num:100,x1:1,x10:0}, + 9002:{uuid:9002,lv:2,exp:0,slv:1,stone:0,num:80,x1:2,x10:0}, + 9003:{uuid:9003,lv:3,exp:0,slv:2,stone:0,num:90,x1:3,x10:0}, }; goods:any={ free: [ {uuid:9001,num:100000}, {uuid:1001,num:10}, {uuid:1002,num:10}, {uuid:1007,num:10},], @@ -66,23 +58,23 @@ export class SingletonModuleComp extends ecs.Comp { goods3:[ {uuid:1007,num:100}, {uuid:9002,num:1} ], goods4:[ {uuid:9001,num:100}, {uuid:9002,num:1} ], }; - items:{ - 1001:{num:1000,x1:1,x10:0}, - 1002:{num:1000,x1:2,x10:0}, - 1003:{num:1000,x1:3,x10:0}, - 1004:{num:1000,x1:0,x10:0}, - 1005:{num:1000,x1:0,x10:0}, - 1006:{num:1000,x1:0,x10:0}, - 1007:{num:1000,x1:0,x10:0}, - 1008:{num:1000,x1:0,x10:0}, - 1009:{num:1000,x1:0,x10:0}, - 1010:{num:1000,x1:0,x10:0}, - 1011:{num:1000,x1:0,x10:0}, - 1012:{num:1000,x1:0,x10:0}, - 1013:{num:1000,x1:0,x10:0}, - 1014:{num:1000,x1:0,x10:0}, - 1015:{num:1000,x1:0,x10:0}, - 1016:{num:1000,x1:0,x10:0}, + items:any={ + 1001:{uuid:1001,num:1000,x1:1,x10:0}, + 1002:{uuid:1002,num:1000,x1:0,x10:0}, + 1003:{uuid:1003,num:1000,x1:0,x10:0}, + 1004:{uuid:1004,num:1000,x1:0,x10:0}, + 1005:{uuid:1005,num:1000,x1:0,x10:0}, + 1006:{uuid:1006,num:1000,x1:0,x10:0}, + 1007:{uuid:1007,num:1000,x1:0,x10:0}, + 1008:{uuid:1008,num:1000,x1:0,x10:0}, + 1009:{uuid:1009,num:1000,x1:0,x10:0}, + 1010:{uuid:1010,num:1000,x1:0,x10:0}, + 1011:{uuid:1011,num:1000,x1:0,x10:0}, + 1012:{uuid:1012,num:1000,x1:0,x10:0}, + 1013:{uuid:1013,num:1000,x1:0,x10:0}, + 1014:{uuid:1014,num:1000,x1:0,x10:0}, + 1015:{uuid:1015,num:1000,x1:0,x10:0}, + 1016:{uuid:1016,num:1000,x1:0,x10:0}, }; fight_heros=[9001,9002] mheros:any = []; diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 6be8a424..da6bee48 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -117,6 +117,7 @@ export class MissionComp extends CCComp { rewards[i].ItemComp.ent.destroy() } this.to_mission_home() + oops.gui.open(UIID.Victory) } to_mission_home(){ let home =this.node.parent.getComponent(CardControllerComp); @@ -146,7 +147,7 @@ export class MissionComp extends CCComp { smc.vmdata.mission.mcrit=0 smc.vmdata.mission.mdead=0 smc.vmdata.mission.mdodge=0 - this.clear_x1() + // this.clear_x1() } clear_x1(){ for (let i in smc.items) { diff --git a/assets/script/game/map/Reward.ts b/assets/script/game/map/Reward.ts new file mode 100644 index 00000000..16b38ddf --- /dev/null +++ b/assets/script/game/map/Reward.ts @@ -0,0 +1,20 @@ +import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; + +/** Reward 模块 */ +@ecs.register(`Reward`) +export class Reward extends ecs.Entity { + + /** 实始添加的数据层组件 */ + protected init() { + // this.addComponents(); + } + + load() { + // this.loadData(data); + } + /** 模块资源释放 */ + destroy() { + // 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放 + super.destroy(); + } +} diff --git a/assets/script/game/map/Reward.ts.meta b/assets/script/game/map/Reward.ts.meta new file mode 100644 index 00000000..250a02a0 --- /dev/null +++ b/assets/script/game/map/Reward.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "e1ec0b04-8288-4c12-a6ef-ee8ebb9a3282", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/RewardComp.ts b/assets/script/game/map/RewardComp.ts new file mode 100644 index 00000000..0065b251 --- /dev/null +++ b/assets/script/game/map/RewardComp.ts @@ -0,0 +1,60 @@ +import { _decorator, instantiate, Label, Prefab, resources, Sprite, SpriteAtlas } 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 { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; +import { Items } from "../common/config/Items"; +import { HChipComp } from "../hero/HChipComp"; + +const { ccclass, property } = _decorator; + +/** 视图层对象 */ +@ccclass('RewardComp') +@ecs.register('RewardComp', false) +export class RewardComp extends CCComp { + i_uuid: number = 0; + x1: number = 0; + x10: number = 0; + + /** 视图层逻辑代码分离演示 */ + start() { + // var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象 + // this.on(ModuleEvent.Cmd, this.onHandler, this); + } + init(uuid:number,x1:number,x10:number,parent:any,type:number=0){ + + if(type==0){ + var icon_path = "gui/items" + resources.load(icon_path, SpriteAtlas, (err: any, atlas) => { + const sprite = this.node.getChildByName("icon").getComponent(Sprite); + sprite.spriteFrame = atlas.getSpriteFrame(Items[uuid].path); + }); + } + + if(type==1){ + this.node.getChildByName("icon").active=false + this.node.getChildByName("hchip").active=true + let hchipcomp= this.node.getChildByName("hchip").getComponent(HChipComp) + hchipcomp.update_data(uuid,0) + } + + + this.node.getChildByName("x1").getComponent(Label).string = x1.toString() + this.node.getChildByName("x10").getComponent(Label).string = x10.toString() + this.node.parent = parent + } + protected onDestroy(): void { + console.log("释放奖励界面"); + } + /** 全局消息逻辑处理 */ + // private onHandler(event: string, args: any) { + // switch (event) { + // case ModuleEvent.Cmd: + // break; + // } + // } + + /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ + reset() { + this.node.destroy(); + } +} \ No newline at end of file diff --git a/assets/script/game/map/RewardComp.ts.meta b/assets/script/game/map/RewardComp.ts.meta new file mode 100644 index 00000000..2458f05a --- /dev/null +++ b/assets/script/game/map/RewardComp.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "0d093357-3eb4-48e9-812e-3c4ab37a36c9", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/VictoryComp.ts b/assets/script/game/map/VictoryComp.ts index c3a85ed9..43f5ce49 100644 --- a/assets/script/game/map/VictoryComp.ts +++ b/assets/script/game/map/VictoryComp.ts @@ -1,4 +1,4 @@ -import { _decorator, Label ,v3} from "cc"; +import { _decorator, instantiate, Label ,Prefab,resources,Sprite,SpriteAtlas,v3} from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; @@ -11,6 +11,7 @@ import { Items } from "../common/config/Items"; import { Item } from "./Item"; import { UIID } from "../common/config/GameUIConfig"; import { PopViewParams, UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines"; +import { RewardComp} from "./RewardComp"; const { ccclass, property } = _decorator; @@ -26,30 +27,62 @@ export class VictoryComp extends CCComp { } onAdded(args: any) { - console.log("VictoryComp onAdded",args) - let items=smc.items - if(smc.vmdata.gold.x1 > 0) this.node.getChildByName("items").getChildByName("gold").active=true - if(smc.vmdata.skp.x1 > 0) this.node.getChildByName("items").getChildByName("skp").active=true - if(smc.vmdata.exp.x1 > 0) this.node.getChildByName("items").getChildByName("exp").active=true - + + if(smc.vmdata.gold.x1 > 0) { + this.node.getChildByName("items").getChildByName("gold").active=true + smc.vmdata.gold.x10=smc.vmdata.gold.x1*9 + } + if(smc.vmdata.skp.x1 > 0) { + this.node.getChildByName("items").getChildByName("skp").active=true + smc.vmdata.skp.x10=smc.vmdata.skp.x1*9 + } + if(smc.vmdata.exp.x1 > 0) { + this.node.getChildByName("items").getChildByName("exp").active=true + smc.vmdata.exp.x10=smc.vmdata.exp.x1*9 + } + var parent = this.node.getChildByName("items") + for (let i in smc.items) { + if(smc.items[i].x1 > 0){ + smc.items[i].x10 =smc.items[i].x1*9 + var path = "game/gui/reward"; + var prefab: Prefab = oops.res.get(path, Prefab)!; + console.log("VictoryComp",prefab,smc.items[i]) + var node = instantiate(prefab); + let rc:any= node.getComponent(RewardComp)!; + rc.init(smc.items[i].uuid,smc.items[i].x1,smc.items[i].x10,parent,0) + } + } + for (let i in smc.skills) { + + } + for (let i in smc.heros) { + if(smc.heros[i].x1 > 0){ + smc.heros[i].x10 =smc.heros[i].x1*9 + var path = "game/gui/reward"; + var prefab: Prefab = oops.res.get(path, Prefab)!; + console.log("VictoryComp",prefab,smc.heros[i]) + var node = instantiate(prefab); + let rc:any= node.getComponent(RewardComp)!; + rc.init(smc.heros[i].uuid,smc.heros[i].x1,smc.heros[i].x10,parent,1) + } + } } do_x10(){ - console.log("do_x10",smc.vmdata) for (let i in smc.items) { smc.items[i].num+=smc.items[i].x10 } - + for (let i in smc.heros) { + smc.heros[i].num+=smc.heros[i].x10 + } this.clear_x1() this.reset(); } do_x1(){ - console.log("x1",smc.vmdata) this.clear_x1() this.reset(); - } clear_x1(){ @@ -72,7 +105,9 @@ export class VictoryComp extends CCComp { console.log("item_show",val) oops.gui.open(UIID.ItemInfo, Items[val]); } - + protected onDestroy(): void { + console.log("释放胜利界面"); + } /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ reset() { oops.gui.remove(UIID.Victory, false);