diff --git a/assets/resources/gui/victory.prefab b/assets/resources/gui/victory.prefab index 830adc87..5756af45 100644 --- a/assets/resources/gui/victory.prefab +++ b/assets/resources/gui/victory.prefab @@ -25,17 +25,17 @@ "_active": true, "_components": [ { - "__id__": 139 + "__id__": 159 }, { - "__id__": 141 + "__id__": 161 }, { - "__id__": 143 + "__id__": 163 } ], "_prefab": { - "__id__": 145 + "__id__": 165 }, "_lpos": { "__type__": "cc.Vec3", @@ -100,20 +100,20 @@ "__id__": 78 }, { - "__id__": 98 + "__id__": 104 }, { - "__id__": 118 + "__id__": 130 } ], "_active": true, "_components": [ { - "__id__": 136 + "__id__": 156 } ], "_prefab": { - "__id__": 138 + "__id__": 158 }, "_lpos": { "__type__": "cc.Vec3", @@ -1921,19 +1921,22 @@ }, { "__id__": 85 + }, + { + "__id__": 93 } ], "_active": true, "_components": [ { - "__id__": 93 + "__id__": 99 }, { - "__id__": 95 + "__id__": 101 } ], "_prefab": { - "__id__": 97 + "__id__": 103 }, "_lpos": { "__type__": "cc.Vec3", @@ -2284,6 +2287,165 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "name", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 78 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 94 + }, + { + "__id__": 96 + } + ], + "_prefab": { + "__id__": 98 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 39.056, + "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__": 93 + }, + "_enabled": true, + "__prefab": { + "__id__": 95 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b4Qhr3nJZPE6PClmgNoHvW" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 93 + }, + "_enabled": true, + "__prefab": { + "__id__": 97 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "金币", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1bIbDmR2NBopBYTcg8PeBt" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4f/gWUYxhD4pnjS/g39gFu", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -2294,7 +2456,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 94 + "__id__": 100 }, "_contentSize": { "__type__": "cc.Size", @@ -2322,7 +2484,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 96 + "__id__": 102 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2380,27 +2542,30 @@ }, "_children": [ { - "__id__": 99 + "__id__": 105 }, { - "__id__": 105 + "__id__": 111 + }, + { + "__id__": 119 } ], "_active": true, "_components": [ { - "__id__": 113 + "__id__": 125 }, { - "__id__": 115 + "__id__": 127 } ], "_prefab": { - "__id__": 117 + "__id__": 129 }, "_lpos": { "__type__": "cc.Vec3", - "x": 0, + "x": 16.729, "y": 231.348, "z": 0 }, @@ -2429,148 +2594,12 @@ }, { "__type__": "cc.Node", - "_name": "5005", + "_name": "5004", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 98 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 100 - }, - { - "__id__": 102 - } - ], - "_prefab": { "__id__": 104 }, - "_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__": 99 - }, - "_enabled": true, - "__prefab": { - "__id__": 101 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 104, - "height": 112 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "c6sVWGBDtMXp1f/2YF+DgI" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 99 - }, - "_enabled": true, - "__prefab": { - "__id__": 103 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 120, - "g": 226, - "b": 93, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "8de06a84-af95-42b1-ab9b-40701e6b3ed3@12d7e", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": false, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "6diFH3ps1EMoV6E4y8N/5e" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "f06r79sddEn7F7O5BdhKof", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "num", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 98 - }, "_children": [], "_active": true, "_components": [ @@ -2579,18 +2608,15 @@ }, { "__id__": 108 - }, - { - "__id__": 110 } ], "_prefab": { - "__id__": 112 + "__id__": 110 }, "_lpos": { "__type__": "cc.Vec3", - "x": 24.096, - "y": -35.17, + "x": 0, + "y": 0, "z": 0 }, "_lrot": { @@ -2628,6 +2654,145 @@ "__prefab": { "__id__": 107 }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 106 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3aY8Rpg1JONLeHNS7JgADz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 105 + }, + "_enabled": true, + "__prefab": { + "__id__": 109 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "8de06a84-af95-42b1-ab9b-40701e6b3ed3@316bf", + "__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": "20mlJr+mhLs4sk0HtyaX5w" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "10n1XlV6JDnr2S3QdHF9AI", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 104 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 112 + }, + { + "__id__": 114 + }, + { + "__id__": 116 + } + ], + "_prefab": { + "__id__": 118 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 24.096, + "y": -35.17, + "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__": 111 + }, + "_enabled": true, + "__prefab": { + "__id__": 113 + }, "_contentSize": { "__type__": "cc.Size", "width": 59.615234375, @@ -2642,7 +2807,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d9sTAWQm1EeLAfEM+V8piA" + "fileId": "5fn99h315FIZFs0tFg8qz3" }, { "__type__": "cc.Label", @@ -2650,11 +2815,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 105 + "__id__": 111 }, "_enabled": true, "__prefab": { - "__id__": 109 + "__id__": 115 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2710,7 +2875,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d7HrMGw+NONoUsTyomQLF1" + "fileId": "55ujD8N+BAIKhsY9Ejougw" }, { "__type__": "545c05XsG9GDJispEGWKvYv", @@ -2718,21 +2883,21 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 105 + "__id__": 111 }, "_enabled": true, "__prefab": { - "__id__": 111 + "__id__": 117 }, "templateMode": false, - "watchPath": "data.mission.reward_exp", + "watchPath": "data.mission.reward_gold", "labelType": "cc.Label", "watchPathArr": [], "_id": "" }, { "__type__": "cc.CompPrefabInfo", - "fileId": "f5XhH9clJD9ImoT3A6BP/n" + "fileId": "9cD6fV85JBXoT1BdmKn0dN" }, { "__type__": "cc.PrefabInfo", @@ -2742,161 +2907,18 @@ "asset": { "__id__": 0 }, - "fileId": "d8S5EKgqNIQpiIRvBD7Vs7", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 98 - }, - "_enabled": true, - "__prefab": { - "__id__": 114 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 128, - "height": 130 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "37hAMKycVEQ7iM1aWTyUzb" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 98 - }, - "_enabled": true, - "__prefab": { - "__id__": 116 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@eeece", - "__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": "56xnVvK2RHToIy7S5gH2GV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "6fu8BN2qRFRqSWICqG+drk", + "fileId": "ceCq3DVd5Bg6UYgUs/5GHV", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { "__type__": "cc.Node", - "_name": "item3", + "_name": "name", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2 - }, - "_children": [ - { - "__id__": 119 - }, - { - "__id__": 125 - } - ], - "_active": true, - "_components": [ - { - "__id__": 131 - }, - { - "__id__": 133 - } - ], - "_prefab": { - "__id__": 135 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 150, - "y": 231.348, - "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": "icon", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 118 + "__id__": 104 }, "_children": [], "_active": true, @@ -2914,7 +2936,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": 39.056, "z": 0 }, "_lrot": { @@ -2954,8 +2976,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 116, - "height": 98 + "width": 64, + "height": 54.4 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2966,10 +2988,10 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "dadEUKBZhMaaMzzDg+NcMZ" + "fileId": "abf4qOKdtAUIWvmk507C2G" }, { - "__type__": "cc.Sprite", + "__type__": "cc.Label", "_name": "", "_objFlags": 0, "__editorExtras__": {}, @@ -2990,8 +3012,117 @@ "b": 255, "a": 255 }, + "_string": "金币", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "99ucws8HxFw5IWdVHf+orz" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "8c4OnSZj5C+ILivnwAiPR8", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 104 + }, + "_enabled": true, + "__prefab": { + "__id__": 126 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 128, + "height": 130 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "78COHjCLxP2pLsvN74Ialz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 104 + }, + "_enabled": true, + "__prefab": { + "__id__": 128 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, "_spriteFrame": { - "__uuid__": "8de06a84-af95-42b1-ab9b-40701e6b3ed3@f9fe0", + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@eeece", "__expectedType__": "cc.SpriteFrame" }, "_type": 0, @@ -3011,7 +3142,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e4uXd0UCBKZo2RhTfkPdej" + "fileId": "37zIN0PgJKoYJEoSCPRogr" }, { "__type__": "cc.PrefabInfo", @@ -3021,7 +3152,203 @@ "asset": { "__id__": 0 }, - "fileId": "2bCV/k8sBLKrf/FmZbbBjU", + "fileId": "95cSCWXpRFd5V22qTN57IK", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "item3", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 131 + }, + { + "__id__": 137 + }, + { + "__id__": 145 + } + ], + "_active": true, + "_components": [ + { + "__id__": 151 + }, + { + "__id__": 153 + } + ], + "_prefab": { + "__id__": 155 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 181.942, + "y": 231.348, + "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": "5004", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 130 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 132 + }, + { + "__id__": 134 + } + ], + "_prefab": { + "__id__": 136 + }, + "_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__": 131 + }, + "_enabled": true, + "__prefab": { + "__id__": 133 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 106 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "609DETJ0xPsbpTSz00jMbO" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 131 + }, + "_enabled": true, + "__prefab": { + "__id__": 135 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "8de06a84-af95-42b1-ab9b-40701e6b3ed3@316bf", + "__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": "31n3GMAplLaLVWAWgMFl5Z" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "dfFpfuqqNKBpg5bb63P9pS", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3032,20 +3359,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 118 + "__id__": 130 }, "_children": [], "_active": true, "_components": [ { - "__id__": 126 + "__id__": 138 }, { - "__id__": 128 + "__id__": 140 + }, + { + "__id__": 142 } ], "_prefab": { - "__id__": 130 + "__id__": 144 }, "_lpos": { "__type__": "cc.Vec3", @@ -3082,11 +3412,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 137 }, "_enabled": true, "__prefab": { - "__id__": 127 + "__id__": 139 }, "_contentSize": { "__type__": "cc.Size", @@ -3102,7 +3432,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "5bpqgdsEFIcqzOXAY4dW3o" + "fileId": "60EDKXEkVC2IO/KI6amaM9" }, { "__type__": "cc.Label", @@ -3110,11 +3440,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 137 }, "_enabled": true, "__prefab": { - "__id__": 129 + "__id__": 141 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3170,7 +3500,29 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "6b4iwGl7dBA5iVCqXHAMdj" + "fileId": "25BIo7BapBhJoAoooUoQKH" + }, + { + "__type__": "545c05XsG9GDJispEGWKvYv", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 137 + }, + "_enabled": true, + "__prefab": { + "__id__": 143 + }, + "templateMode": false, + "watchPath": "data.mission.reward_gold", + "labelType": "cc.Label", + "watchPathArr": [], + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c4Ald6b4xEeIAcMT2eaFID" }, { "__type__": "cc.PrefabInfo", @@ -3180,7 +3532,166 @@ "asset": { "__id__": 0 }, - "fileId": "448ly33H5C+ZYgtiLtbksm", + "fileId": "22SzI1LTdJ3Y7pdzHRASEB", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "name", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 130 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 146 + }, + { + "__id__": 148 + } + ], + "_prefab": { + "__id__": 150 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 39.056, + "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__": 145 + }, + "_enabled": true, + "__prefab": { + "__id__": 147 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "210tFDxkJNfIouNfaC0i/L" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 145 + }, + "_enabled": true, + "__prefab": { + "__id__": 149 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "金币", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b0m8KuICtLqoBLBlREEaRK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d2AHsHt0FI75SO8nKMtdcf", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3191,11 +3702,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 130 }, "_enabled": true, "__prefab": { - "__id__": 132 + "__id__": 152 }, "_contentSize": { "__type__": "cc.Size", @@ -3211,7 +3722,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "417TkVz21NjajpCYs23GjL" + "fileId": "acsX0fTbNLJoo9UPqXB6CO" }, { "__type__": "cc.Sprite", @@ -3219,11 +3730,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 118 + "__id__": 130 }, "_enabled": true, "__prefab": { - "__id__": 134 + "__id__": 154 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3256,7 +3767,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "48nhXyZ5lJ8ZrE2kd0bZxF" + "fileId": "5ePrB4YPdNu7Ct/y6hNeNb" }, { "__type__": "cc.PrefabInfo", @@ -3266,7 +3777,7 @@ "asset": { "__id__": 0 }, - "fileId": "62jxpnTmlG9ocWRjTtR8x+", + "fileId": "d6YFi98KhOHaWHxPpYXiKf", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3281,7 +3792,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 137 + "__id__": 157 }, "_contentSize": { "__type__": "cc.Size", @@ -3322,7 +3833,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 140 + "__id__": 160 }, "_contentSize": { "__type__": "cc.Size", @@ -3350,7 +3861,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 142 + "__id__": 162 }, "_alignFlags": 18, "_target": null, @@ -3386,7 +3897,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 144 + "__id__": 164 }, "_id": "" }, diff --git a/assets/script/game/common/config/Items.ts b/assets/script/game/common/config/Items.ts index d0bb9cc8..d9cd67d1 100644 --- a/assets/script/game/common/config/Items.ts +++ b/assets/script/game/common/config/Items.ts @@ -6,21 +6,21 @@ type: */ export const Items={ - 1001:{uuid: 1001,path: "1001",type: 1,name: "近战经验卷轴",info:"提升普通近战英雄等级", }, - 1002:{uuid: 1002,path: "1001",type: 1,name: "远程经验卷轴",info:"提升普通远程英雄等级", }, - 1003:{uuid: 1003,path: "1001",type: 1,name: "辅助经验卷轴",info:"提升普通辅助英雄等级", }, - 1004:{uuid: 1004,path: "1001",type: 1,name: "<传说>近战经验卷轴",info:"提升<传说>近战英雄等级", }, - 1005:{uuid: 1005,path: "1001",type: 1,name: "<传说>远程经验卷轴",info:"提升<传说>远程英雄等级", }, - 1006:{uuid: 1006,path: "1001",type: 1,name: "<传说>辅助经验卷轴",info:"提升<传说>辅助英雄等级", }, - 1007:{uuid: 1007,path: "1001",type: 1,name: "近战英雄原石",info:"普通近战英雄升星", }, - 1008:{uuid: 1008,path: "1001",type: 1,name: "远程英雄原石",info:"普通远程英雄升星", }, - 1009:{uuid: 1009,path: "1001",type: 1,name: "辅助英雄原石",info:"普通辅助英雄升星", }, - 1010:{uuid: 1010,path: "1001",type: 1,name: "<传说>近战英雄原石",info:"<传说>近战英雄升星", }, - 1011:{uuid: 1011,path: "1001",type: 1,name: "<传说>远程英雄原石",info:"<传说>远程英雄升星", }, - 1012:{uuid: 1012,path: "1001",type: 1,name: "<传说>辅助英雄原石",info:"<传说>辅助英雄升星", }, - 1013:{uuid: 1013,path: "1001",type: 1,name: "英雄召唤券",info:"普通英雄召唤券,无法召唤传说英雄", }, - 1014:{uuid: 1014,path: "1001",type: 1,name: "<高级>英雄召唤券",info:"<高级>英雄召唤券,召唤传说英雄机率提升", }, - 1015:{uuid: 1015,path: "1001",type: 1,name: "<传说>英雄召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", }, + 1001:{uuid: 1001,path: "1001",type: 1,r_num:10,name: "近战经验卷轴",info:"提升普通近战英雄等级", }, + 1002:{uuid: 1002,path: "1001",type: 1,r_num:10,name: "远程经验卷轴",info:"提升普通远程英雄等级", }, + 1003:{uuid: 1003,path: "1001",type: 1,r_num:10,name: "辅助经验卷轴",info:"提升普通辅助英雄等级", }, + 1004:{uuid: 1004,path: "1001",type: 1,r_num:10,name: "<传说>近战经验卷轴",info:"提升<传说>近战英雄等级", }, + 1005:{uuid: 1005,path: "1001",type: 1,r_num:10,name: "<传说>远程经验卷轴",info:"提升<传说>远程英雄等级", }, + 1006:{uuid: 1006,path: "1001",type: 1,r_num:10,name: "<传说>辅助经验卷轴",info:"提升<传说>辅助英雄等级", }, + 1007:{uuid: 1007,path: "1001",type: 1,r_num:1,name: "近战英雄原石",info:"普通近战英雄升星", }, + 1008:{uuid: 1008,path: "1001",type: 1,r_num:1,name: "远程英雄原石",info:"普通远程英雄升星", }, + 1009:{uuid: 1009,path: "1001",type: 1,r_num:1,name: "辅助英雄原石",info:"普通辅助英雄升星", }, + 1010:{uuid: 1010,path: "1001",type: 1,r_num:1,name: "<传说>近战英雄原石",info:"<传说>近战英雄升星", }, + 1011:{uuid: 1011,path: "1001",type: 1,r_num:1,name: "<传说>远程英雄原石",info:"<传说>远程英雄升星", }, + 1012:{uuid: 1012,path: "1001",type: 1,r_num:1,name: "<传说>辅助英雄原石",info:"<传说>辅助英雄升星", }, + 1013:{uuid: 1013,path: "1001",type: 1,r_num:1,name: "英雄召唤券",info:"普通英雄召唤券,无法召唤传说英雄", }, + 1014:{uuid: 1014,path: "1001",type: 1,r_num:1,name: "<高级>英雄召唤券",info:"<高级>英雄召唤券,召唤传说英雄机率提升", }, + 1015:{uuid: 1015,path: "1001",type: 1,r_num:1,name: "<传说>英雄召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", }, } diff --git a/assets/script/game/common/config/MissionSet.ts b/assets/script/game/common/config/MissionSet.ts index aaa50fa6..c2b919fc 100644 --- a/assets/script/game/common/config/MissionSet.ts +++ b/assets/script/game/common/config/MissionSet.ts @@ -20,7 +20,7 @@ export const MissionSet = [ export const MissionReward = { - 1:[1001,1002,1003,1004,1005], - 2:[1001], - 3:[1001], + 1:[1001,1002,1003,1013], + 2:[1004,1005,1006,1007,1008,1009,1014], + 3:[1010,1011,1012,1014], } diff --git a/assets/script/game/map/VictoryComp.ts b/assets/script/game/map/VictoryComp.ts index 49d39f06..0ca1eca3 100644 --- a/assets/script/game/map/VictoryComp.ts +++ b/assets/script/game/map/VictoryComp.ts @@ -36,10 +36,18 @@ export class VictoryComp extends CCComp { this.node.getChildByName("Node").getChildByName("defeat").active = true } getReward(){ - let reward:any = RandomManager.instance.getRandomByObjectList(MissionReward[this.reward_lv], 1); - this.rerawd_item =Items[reward[0]] - // console.log("getReward:",this.rerawd_item) - this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=this.reward_num.toString() + let reward:any = RandomManager.instance.getRandomByObjectList(MissionReward[this.reward_lv], 2); + let item1 =Items[reward[0]] + let item2 =Items[reward[1]] + let r1_num=0 + let r2_num=0 + console.log("getReward:",reward,item1,item2) + this.node.getChildByName("Node").getChildByName("item2").getChildByName("num").getComponent(Label).string=item1.r_num.toString() + this.node.getChildByName("Node").getChildByName("item2").getChildByName("name").getComponent(Label).string=item1.name.toString() + this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=item2.r_num.toString() + this.node.getChildByName("Node").getChildByName("item3").getChildByName("name").getComponent(Label).string=item2.r_num.toString() + + } end_mission(){ this.node.getChildByName("Node").active=false