diff --git a/assets/resources/common/anim/notify.anim b/assets/resources/common/anim/notify.anim index fabc8fbd..0835fc3b 100644 --- a/assets/resources/common/anim/notify.anim +++ b/assets/resources/common/anim/notify.anim @@ -3,6 +3,9 @@ "__type__": "cc.AnimationClip", "_name": "notify", "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, "_native": "", "sample": 60, "speed": 1, @@ -21,8 +24,13 @@ "__id__": 23 } ], + "_exoticAnimation": null, "_events": [], - "_exoticAnimation": null + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 34 + }, + "_auxiliaryCurveEntries": [] }, { "__type__": "cc.animation.VectorTrack", @@ -30,7 +38,8 @@ "__type__": "cc.animation.TrackBinding", "path": { "__id__": 2 - } + }, + "proxy": null }, "_channels": [ { @@ -64,7 +73,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -77,7 +86,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -88,7 +98,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -99,7 +110,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -115,7 +127,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -123,34 +135,37 @@ "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0, + "value": 400, "rightTangent": 0, "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0, + "value": 400, "rightTangent": 0, "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 300, + "value": 700, "rightTangent": 0, "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -166,7 +181,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -179,7 +194,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -190,7 +206,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -201,7 +218,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -226,7 +244,8 @@ "__type__": "cc.animation.TrackBinding", "path": { "__id__": 12 - } + }, + "proxy": null }, "_channels": [ { @@ -273,7 +292,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -286,7 +305,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -297,7 +317,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -308,7 +329,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -324,7 +346,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -337,7 +359,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -348,7 +371,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -359,7 +383,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -375,7 +400,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -388,7 +413,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -399,7 +425,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -410,7 +437,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -426,7 +454,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -439,7 +467,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -450,7 +479,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -461,7 +491,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -473,7 +504,8 @@ "__type__": "cc.animation.TrackBinding", "path": { "__id__": 24 - } + }, + "proxy": null }, "_channels": [ { @@ -513,7 +545,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -526,7 +558,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -537,7 +570,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -548,7 +582,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -564,7 +599,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -577,7 +612,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -588,7 +624,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -599,7 +636,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -615,7 +653,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -628,7 +666,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -639,7 +678,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -650,7 +690,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -666,7 +707,7 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.8333333333333334, + 0.8333333134651184, 1.25 ], "_values": [ @@ -679,7 +720,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -690,7 +732,8 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -701,10 +744,16 @@ "rightTangentWeight": 0, "leftTangent": 0, "leftTangentWeight": 0, - "easingMethod": 0 + "easingMethod": 0, + "__editorExtras__": null } ], "preExtrapolation": 1, "postExtrapolation": 1 + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null } ] \ No newline at end of file diff --git a/assets/resources/common/prefab/notify.prefab b/assets/resources/common/prefab/notify.prefab index 4baa8c0f..d143afc6 100644 --- a/assets/resources/common/prefab/notify.prefab +++ b/assets/resources/common/prefab/notify.prefab @@ -22,31 +22,40 @@ "__id__": 2 }, { - "__id__": 8 + "__id__": 26 + }, + { + "__id__": 32 + }, + { + "__id__": 40 + }, + { + "__id__": 46 } ], "_active": true, "_components": [ { - "__id__": 16 + "__id__": 52 }, { - "__id__": 18 + "__id__": 54 }, { - "__id__": 20 + "__id__": 56 }, { - "__id__": 22 + "__id__": 58 } ], "_prefab": { - "__id__": 24 + "__id__": 60 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": 378.105, "z": 0 }, "_lrot": { @@ -74,24 +83,87 @@ }, { "__type__": "cc.Node", - "_name": "ToastMessage_Bg_Gray", + "_name": "bg-001", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 1 }, - "_children": [], - "_active": true, - "_components": [ + "_children": [ { "__id__": 3 }, { - "__id__": 5 + "__id__": 11 + } + ], + "_active": true, + "_components": [ + { + "__id__": 19 + }, + { + "__id__": 21 + }, + { + "__id__": 23 } ], "_prefab": { - "__id__": 7 + "__id__": 25 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 6.603999999999999, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "CardFrame03_n_Bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 }, "_lpos": { "__type__": "cc.Vec3", @@ -122,6 +194,303 @@ }, "_id": "" }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 700, + "height": 150 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "adQP7bJgVNa5xDpJ5Hm9Ey" + }, + { + "__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": 44, + "g": 190, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@8ed5b", + "__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": "1aFxYgrBZMwI1i8QZjoe/z" + }, + { + "__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": 64, + "_originalHeight": 67, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "32X2Ozd4xPoYIS2nVy4gAD" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "03bOXwNu1LQ5vfN17DvIK2", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "CardFrame03_n_InnerBg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 12 + }, + { + "__id__": 14 + }, + { + "__id__": 16 + } + ], + "_prefab": { + "__id__": 18 + }, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 650, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4bd08oKp9G4Izs7w9J8U/1" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 15 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 168, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@e230b", + "__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": "dbiLmFngxKlpJUw0TQOU9v" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_alignFlags": 45, + "_target": null, + "_left": 25, + "_right": 25, + "_top": 25, + "_bottom": 25, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 40, + "_originalHeight": 40, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13VL3xIjZEnrvoQq87mu+g" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7cvFR7XKtIOLBWUOHAChiA", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -132,11 +501,180 @@ }, "_enabled": true, "__prefab": { - "__id__": 4 + "__id__": 20 }, "_contentSize": { "__type__": "cc.Size", - "width": 800, + "width": 700, + "height": 150 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "28xFw2HNpK3LuztsCv4B+r" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 22 + }, + "_alignFlags": 17, + "_target": null, + "_left": 0, + "_right": 0, + "_top": -36.604, + "_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": "53Fl/NncBAUIeEQ3yAYZgL" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_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": "36Y1COXbNMco32fcOO/qpE" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7aIZrZYSZDh7JPdlG0LPo7", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ToastMessage_Bg_Gray", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 27 + }, + { + "__id__": 29 + } + ], + "_prefab": { + "__id__": 31 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -7, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 26 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, "height": 60 }, "_anchorPoint": { @@ -156,24 +694,24 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2 + "__id__": 26 }, - "_enabled": true, + "_enabled": false, "__prefab": { - "__id__": 6 + "__id__": 30 }, "_customMaterial": null, "_srcBlendFactor": 2, "_dstBlendFactor": 4, "_color": { "__type__": "cc.Color", - "r": 112, - "g": 112, - "b": 112, + "r": 255, + "g": 255, + "b": 255, "a": 255 }, "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@85c63", + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@d9d3f", "__expectedType__": "cc.SpriteFrame" }, "_type": 1, @@ -187,7 +725,7 @@ "_fillStart": 0, "_fillRange": 0, "_isTrimmedMode": true, - "_useGrayscale": true, + "_useGrayscale": false, "_atlas": null, "_id": "" }, @@ -220,17 +758,17 @@ "_active": true, "_components": [ { - "__id__": 9 + "__id__": 33 }, { - "__id__": 11 + "__id__": 35 }, { - "__id__": 13 + "__id__": 37 } ], "_prefab": { - "__id__": 15 + "__id__": 39 }, "_lpos": { "__type__": "cc.Vec3", @@ -267,16 +805,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 8 + "__id__": 32 }, "_enabled": true, "__prefab": { - "__id__": 10 + "__id__": 34 }, "_contentSize": { "__type__": "cc.Size", - "width": 102.408203125, - "height": 41.8 + "width": 135.2109375, + "height": 54.4 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -295,11 +833,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 8 + "__id__": 32 }, "_enabled": true, "__prefab": { - "__id__": 12 + "__id__": 36 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -314,10 +852,10 @@ "_string": "content", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 30, - "_fontSize": 30, + "_actualFontSize": 40, + "_fontSize": 40, "_fontFamily": "Arial", - "_lineHeight": 30, + "_lineHeight": 40, "_overflow": 0, "_enableWrapText": true, "_font": null, @@ -363,11 +901,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 8 + "__id__": 32 }, "_enabled": true, "__prefab": { - "__id__": 14 + "__id__": 38 }, "_params": [], "_dataID": "", @@ -390,6 +928,278 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "Title_Line01_Divider_Left", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 41 + }, + { + "__id__": 43 + } + ], + "_prefab": { + "__id__": 45 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -70, + "y": 49.03, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 42 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 240, + "height": 42 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 1, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1atOy5C2ZLgI/QC9myGilF" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@71ae6", + "__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": "3dy0eNNjNLAqDK5RcQ62mu" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "77shkHdtRL46F0xrvcLtcW", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Title_Line01_Divider_Right", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 47 + }, + { + "__id__": 49 + } + ], + "_prefab": { + "__id__": 51 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 70, + "y": 49.03, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": { + "__id__": 48 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 240, + "height": 42 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "46Sla1x4FKt738DUIgTJsk" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": { + "__id__": 50 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@b64ba", + "__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": "74FimAkkhHzJxNxuoh6M9O" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "dbX2Yia/lCQ4WTih9AzBfF", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -400,7 +1210,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 17 + "__id__": 53 }, "_contentSize": { "__type__": "cc.Size", @@ -428,7 +1238,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 19 + "__id__": 55 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -470,7 +1280,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 21 + "__id__": 57 }, "playOnLoad": true, "_clips": [ @@ -499,13 +1309,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 23 + "__id__": 59 }, "lab_content": { - "__id__": 11 + "__id__": 35 }, "animation": { - "__id__": 20 + "__id__": 56 }, "_id": "" }, diff --git a/assets/resources/common/prefab/toast.prefab b/assets/resources/common/prefab/toast.prefab new file mode 100644 index 00000000..64f4b1e3 --- /dev/null +++ b/assets/resources/common/prefab/toast.prefab @@ -0,0 +1,1235 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "toast", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "toast", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 26 + }, + { + "__id__": 34 + }, + { + "__id__": 40 + } + ], + "_active": true, + "_components": [ + { + "__id__": 46 + }, + { + "__id__": 48 + }, + { + "__id__": 50 + }, + { + "__id__": 52 + }, + { + "__id__": 54 + } + ], + "_prefab": { + "__id__": 56 + }, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bg-001", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 11 + } + ], + "_active": true, + "_components": [ + { + "__id__": 19 + }, + { + "__id__": 21 + }, + { + "__id__": 23 + } + ], + "_prefab": { + "__id__": 25 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 20, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "CardFrame03_n_Bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__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": 33554432, + "_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": 700, + "height": 200 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "25tClDYg1KEqXoG8xmgrL8" + }, + { + "__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": 44, + "g": 190, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@8ed5b", + "__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": "dctaOy8ItEbIBw6v7SzOra" + }, + { + "__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": 64, + "_originalHeight": 67, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "286kxleIhA1b7QSi67wWEB" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "dcVuMu2jtAQIqmVV1/Seyh", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "CardFrame03_n_InnerBg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 12 + }, + { + "__id__": 14 + }, + { + "__id__": 16 + } + ], + "_prefab": { + "__id__": 18 + }, + "_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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 650, + "height": 150 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cameC3B+BLGrPTPzqUAvkS" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 15 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 168, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@e230b", + "__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": "cdF4lZTGZPPrcfYcNuWuVT" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_alignFlags": 45, + "_target": null, + "_left": 25, + "_right": 25, + "_top": 25, + "_bottom": 25, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 40, + "_originalHeight": 40, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f4LurMMw5I07Z4MCRkCSyw" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4c1IgNp11JxY4QMoMuYSKx", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 700, + "height": 200 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1fXQ823TpI5Zn8zAKXAds+" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 22 + }, + "_alignFlags": 17, + "_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": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "95dCFng8xIWLRYp2RHHWqi" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_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": "a3C7YTNQhCXI38OoUkQwE9" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "79UmJN33xGlpXI8zf/5aOr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "text", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 27 + }, + { + "__id__": 29 + }, + { + "__id__": 31 + } + ], + "_prefab": { + "__id__": 33 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 13.058, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 26 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "922sgbCpVFUoD84kSbs+bt" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 26 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "这里是提示文字", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 41, + "_fontSize": 40, + "_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": "63hImhd1VNnpxeGGLYxDF/" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 26 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_alignFlags": 42, + "_target": null, + "_left": 60, + "_right": 60, + "_top": 122.80000000000001, + "_bottom": 122.80000000000001, + "_horizontalCenter": 0, + "_verticalCenter": 13.058, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 104, + "_originalHeight": 54.4, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8a63SxPZxAYb7j/LG5rVct" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "97wyU3in9IQJtwijP/tJ6y", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Title_Line01_Divider_Left", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 35 + }, + { + "__id__": 37 + } + ], + "_prefab": { + "__id__": 39 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -70, + "y": 75.982, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": { + "__id__": 36 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 240, + "height": 42 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 1, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4c/1DifdRN8Y+Og47kWOsd" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@71ae6", + "__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": "dc/IDUF19AgrW02M90+UPq" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "1aquc5PxdOPqDk7hqK4Pyd", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Title_Line01_Divider_Right", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 41 + }, + { + "__id__": 43 + } + ], + "_prefab": { + "__id__": 45 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 70, + "y": 75.982, + "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": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 42 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 240, + "height": 42 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9f5We22X1P1LIttMdVnSaG" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 40 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "260d01c4-5936-4c90-8ff9-b892c60b2e48@b64ba", + "__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": "c1sbB9aThE/Lbad+uqRGkt" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "8bvh26BRFMOZNbG8vgt7NJ", + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 47 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 240 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "45vus7fAdEJqS33PO2OppT" + }, + { + "__type__": "463c7iN7clDbLBuuJ6fqWQv", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 49 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c8B+zOrhxNRYA/F8ZVjlL8" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 51 + }, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 520, + "_bottom": 520, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": false, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e1v1FnavZMqIqp9606hqW5" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 53 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_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": "56zAw7HrpMkY1naeDk8hxm" + }, + { + "__type__": "d26fahPIrRBNrtG1+l4aDNl", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 55 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "40VfIEctZKwKKpuo6ACNZf" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "bcCFYMdctLXq2bKoef3ndU", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/common/prefab/toast.prefab.meta b/assets/resources/common/prefab/toast.prefab.meta new file mode 100644 index 00000000..18231fce --- /dev/null +++ b/assets/resources/common/prefab/toast.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "766e69d3-f7bc-4ce2-a413-b3c0d99220ae", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "toast" + } +} diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index 04d9c2a3..ebed36bb 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -45,6 +45,8 @@ export class SingletonModuleComp extends ecs.Comp { gold:10,//金币 refresh_gold:1,//刷新金币 call_gold:3,//召唤金币 + add_gold:1,//金币增加 + change_gold:1,//金币变化 exp:0,//经验 skp:0,//技能点 box:0,//宝箱 diff --git a/assets/script/game/common/config/GameUIConfig.ts b/assets/script/game/common/config/GameUIConfig.ts index 204e4592..f994cda0 100644 --- a/assets/script/game/common/config/GameUIConfig.ts +++ b/assets/script/game/common/config/GameUIConfig.ts @@ -20,6 +20,8 @@ export enum UIID { ItemInfo, /**物品 */ Victory, + // /** 提示窗 */ + // Toast, } /** 打开界面方式的配置数据 */ @@ -30,4 +32,5 @@ export var UIConfigData: { [key: number]: UIConfig } = { [UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" }, [UIID.ItemInfo]: { layer: LayerType.Dialog, prefab: "gui/element/item_info" }, [UIID.Victory]: { layer: LayerType.Dialog, prefab: "gui/element/victory" }, + // [UIID.Toast]: { layer: LayerType.PopUp, prefab: "common/prefab/toast" }, } \ No newline at end of file diff --git a/assets/script/game/common/stoast.ts b/assets/script/game/common/stoast.ts new file mode 100644 index 00000000..18eb0278 --- /dev/null +++ b/assets/script/game/common/stoast.ts @@ -0,0 +1,22 @@ +import { _decorator, Component, Node } from 'cc'; +import { oops } from 'db://oops-framework/core/Oops'; +const { ccclass, property } = _decorator; + +@ccclass('stoast') +export class stoast extends Component { + + + onAdded(args: any) { + console.log("toast打开",args) + } + + private close() { + oops.gui.removeByNode(this.node); + } + + onDestroy() { + + } +} + + diff --git a/assets/script/game/common/stoast.ts.meta b/assets/script/game/common/stoast.ts.meta new file mode 100644 index 00000000..cbd33cf1 --- /dev/null +++ b/assets/script/game/common/stoast.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "d26fa84f-22b4-4136-bb46-d7e978683365", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index ba41606e..5522e77f 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -7,6 +7,7 @@ import { RandomManager } from "db://oops-framework/core/common/random/RandomMana import { oops } from "db://oops-framework/core/Oops"; import { HeroModelComp } from "../hero/HeroModelComp"; import { HeroViewComp } from "../hero/HeroViewComp"; +import { smc } from "../common/SingletonModuleComp"; const { ccclass, property } = _decorator; @@ -34,7 +35,7 @@ export class CardComp extends CCComp { } mission_end(){ - + } onCardRefresh(event: string, args: any){ this.is_used=false @@ -80,10 +81,16 @@ export class CardComp extends CCComp { return "召唤" } use_card(){ + if(this.is_used) return switch(this.c_type){ case 0: + if(smc.vmdata.mission_data.gold< smc.vmdata.mission_data.call_gold){ + oops.gui.toast("金币不足", false); + return + } oops.message.dispatchEvent(GameEvent.UseHeroCard,{uuid:this.c_uuid}) + smc.vmdata.mission_data.gold-=smc.vmdata.mission_data.call_gold break case 1: oops.message.dispatchEvent(GameEvent.UseSkillCard,{uuid:this.c_uuid}) diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 5f116a7b..39bfd127 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -12,6 +12,7 @@ import { HeroSkillsComp } from "../skill/heroSkillsComp"; import { HeroViewComp } from "../hero/HeroViewComp"; import { Hero } from "../hero/Hero"; import { HartModelComp } from "../hero/HartModelComp"; +import { TimerManager } from "db://oops-framework/core/common/timer/TimerManager"; const { ccclass, property } = _decorator; /** 视图层对象 */ @@ -21,10 +22,13 @@ export class MissionComp extends CCComp { VictoryComp:any = null; reward:number = 0; reward_num:number = 0; + GlodAddTimer:Timer = new Timer(1); mission_data:any={ gold:10,//金币 refresh_gold:1,//刷新金币 call_gold:3,//召唤金币 + add_gold:1,//金币增加 + change_gold:1,//金币变化 exp:0,//经验 skp:0,//技能点 box:0,//宝箱 @@ -42,6 +46,9 @@ export class MissionComp extends CCComp { if(!smc.mission.play||smc.mission.pause){ return } + if(this.GlodAddTimer.update(dt)){ + smc.vmdata.mission_data.gold+=smc.vmdata.mission_data.add_gold + } } @@ -70,21 +77,12 @@ export class MissionComp extends CCComp { } data_init(){ //局内数据初始化 + this.GlodAddTimer=new Timer(1) smc.mission.status=1 smc.mission.play = true; smc.mission.is_victory=false smc.mission.is_defeat=false - smc.vmdata.mission_data ={ - gold:10,//金币 - refresh_gold:1,//刷新金币 - call_gold:3,//召唤金币 - exp:0,//经验 - skp:0,//技能点 - box:0,//宝箱 - energy:0,//能量 - hp:0,//血量 - ap:0,//攻击 - } + smc.vmdata.mission_data ={...smc.vmdata.mission_data} } //角色初始化 @@ -99,7 +97,13 @@ export class MissionComp extends CCComp { oops.message.dispatchEvent(GameEvent.CardRefresh) } card_refresh(){ + if(smc.vmdata.mission_data.gold< smc.vmdata.mission_data.refresh_gold){ + oops.gui.toast("金币不足", false); + return + } oops.message.dispatchEvent(GameEvent.CardRefresh) + smc.vmdata.mission_data.gold-=smc.vmdata.mission_data.refresh_gold + } private cleanComponents() {