动效安装

This commit is contained in:
TJH 2025-09-25 11:30:30 +08:00
parent f6d1fb9796
commit b0df50a210
8 changed files with 2402 additions and 2641 deletions

View File

@ -25,17 +25,17 @@
"__id__": 10
},
{
"__id__": 18
"__id__": 20
}
],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 38
}
],
"_prefab": {
"__id__": 50
"__id__": 40
},
"_lpos": {
"__type__": "cc.Vec3",
@ -233,10 +233,13 @@
},
{
"__id__": 15
},
{
"__id__": 17
}
],
"_prefab": {
"__id__": 17
"__id__": 19
},
"_lpos": {
"__type__": "cc.Vec3",
@ -376,6 +379,25 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "c6AKol0EJLcKhqs29HiWX2"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 18
},
"_opacity": 100,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bc3N3nEI1AwpnKWIhy95kJ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@ -399,23 +421,20 @@
},
"_children": [
{
"__id__": 19
},
{
"__id__": 29
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__": 41
"__id__": 31
},
{
"__id__": 43
"__id__": 33
}
],
"_prefab": {
"__id__": 47
"__id__": 37
},
"_lpos": {
"__type__": "cc.Vec3",
@ -452,26 +471,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 18
"__id__": 20
},
"_children": [
{
"__id__": 20
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 28
}
],
"_prefab": {
"__id__": 28
"__id__": 30
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.00001873087603598833,
"y": 142.83750915527344,
"x": 0,
"y": 426.762,
"z": 0
},
"_lrot": {
@ -503,20 +522,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 19
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 23
},
{
"__id__": 23
"__id__": 25
}
],
"_prefab": {
"__id__": 25
"__id__": 27
},
"_lpos": {
"__type__": "cc.Vec3",
@ -553,15 +572,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 22
"__id__": 24
},
"_contentSize": {
"__type__": "cc.Size",
"width": 542.4,
"width": 813.6,
"height": 300
},
"_anchorPoint": {
@ -581,11 +600,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 24
"__id__": 26
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@ -600,8 +619,8 @@
"_string": "x12",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 8,
"_fontSize": 8,
"_actualFontSize": 12,
"_fontSize": 12,
"_fontFamily": "Arial",
"_lineHeight": 300,
"_overflow": 0,
@ -665,11 +684,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 19
"__id__": 21
},
"_enabled": true,
"__prefab": {
"__id__": 27
"__id__": 29
},
"_contentSize": {
"__type__": "cc.Size",
@ -700,117 +719,13 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "TitleNode",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 18
},
"_children": [
{
"__id__": 30
}
],
"_active": true,
"_components": [
{
"__id__": 38
}
],
"_prefab": {
"__id__": 40
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 3.899945020675659,
"y": 419.25,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 4.371138601951325e-8,
"w": 0.9999999999999981
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.703950047492981,
"y": 0.7039500474929917,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0.000005008955871170517
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "SpriteFREESPINWON",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 29
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
}
],
"_prefab": {
"__id__": 37
},
"_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__": 30
"__id__": 20
},
"_enabled": true,
"__prefab": {
@ -818,27 +733,27 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1023,
"height": 248
"width": 1604.469970703125,
"height": 2362.780029296875
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"x": 0.542528053872931,
"y": 0.4995979002571517
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "29XY5TdjBFVaX+B9QOT6eH"
"fileId": "deV080vbdJjKDjwKJ8ojMo"
},
{
"__type__": "cc.Sprite",
"__type__": "sp.Skeleton",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 30
"__id__": 20
},
"_enabled": true,
"__prefab": {
@ -854,168 +769,22 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "95a3f6a7-8a7f-4ebc-bfab-589b4f4208d2@f9941",
"__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": "faey06m5RF6JGckKfULuXZ"
},
{
"__type__": "e6c8d4szahIuLbtf6yx+hH6",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 30
},
"_enabled": true,
"__prefab": {
"__id__": 36
},
"spriteName": "freespins",
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "82vq/FgfFPcJzDcF+rcxV0"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8a3n1j18JJXaB1BGz1/GTN",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 29
},
"_enabled": true,
"__prefab": {
"__id__": 39
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d25vW7EFNBAL4RQQaqMmiI"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "df4DMfteBFe5liYHct5j2I",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 42
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1452,
"height": 1585.6199951171875
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.3561193631822381
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "deV080vbdJjKDjwKJ8ojMo"
},
{
"__type__": "sp.Skeleton",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 44
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_skeletonData": {
"__uuid__": "a79b6fcc-38cd-4b33-8339-b0d74cb2a138",
"__uuid__": "95e93c1f-c02e-4733-a405-5e1a1586d9bf",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "in",
"_premultipliedAlpha": true,
"defaultAnimation": "",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
"_cacheMode": 0,
"_sockets": [
{
"__id__": 45
"__id__": 35
},
{
"__id__": 46
"__id__": 36
}
],
"_useTint": false,
@ -1034,15 +803,13 @@
"__type__": "sp.Skeleton.SpineSocket",
"path": "root/All/txt/NUM",
"target": {
"__id__": 19
"__id__": 21
}
},
{
"__type__": "sp.Skeleton.SpineSocket",
"path": "root/All/txt/FREESPINSWON",
"target": {
"__id__": 29
}
"target": null
},
{
"__type__": "cc.PrefabInfo",
@ -1067,7 +834,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 49
"__id__": 39
},
"_contentSize": {
"__type__": "cc.Size",

View File

@ -533,8 +533,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.000024128687073243782,
"y": 138,
"x": 0,
"y": 292.023,
"z": 0
},
"_lrot": {
@ -795,7 +795,7 @@
"__id__": 33
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 41
@ -1045,7 +1045,7 @@
"__id__": 45
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 53
@ -1715,13 +1715,13 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
"width": 1484.1700439453125,
"height": 2361.02001953125
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"x": 0.5577191126965639,
"y": 0.49978398753021747
},
"_id": ""
},
@ -1752,12 +1752,12 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "be5c254b-d9be-43b8-9a88-27eba553f2df",
"__uuid__": "51fefa9b-55e9-4239-acc8-5730bff79e96",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "loop",
"_premultipliedAlpha": true,
"defaultAnimation": "",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
"_cacheMode": 0,

View File

@ -20,19 +20,16 @@
"_children": [
{
"__id__": 2
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 8
}
],
"_prefab": {
"__id__": 16
"__id__": 10
},
"_lpos": {
"__type__": "cc.Vec3",
@ -65,14 +62,14 @@
},
{
"__type__": "cc.Node",
"_name": "Ascend_win",
"_name": "ascend_win",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 3
@ -127,19 +124,19 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 152.75999450683594,
"height": 134
"width": 174.24000549316406,
"height": 522.280029296875
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.4859911006375909,
"y": 0.49313434202279616
"x": 0.49988519127737446,
"y": 0.5001339833091739
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "05lP10r/JP7JAMFSgZmlq6"
"fileId": "2dN9q47xJCroWeP83qHXxz"
},
{
"__type__": "sp.Skeleton",
@ -164,12 +161,12 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "7de433bb-ff6d-48eb-9126-b3f5e9ae4cb8",
"__uuid__": "c4c5d54b-a1e3-4eba-b866-11cc9129f20c",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "",
"_premultipliedAlpha": true,
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
"_cacheMode": 0,
@ -184,7 +181,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "95MTX8/BZDoI66MKTTUOoN"
"fileId": "96/UVwqKRB16Ri3Iyb9vcs"
},
{
"__type__": "cc.PrefabInfo",
@ -194,143 +191,7 @@
"asset": {
"__id__": 0
},
"fileId": "42oLAU+BRGmqbwK5o5CGPi",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Ascend_switch",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_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": 168.5500030517578,
"height": 149.8699951171875
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.4989617143364627,
"y": 0.4972976660272779
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a8wzccJTJHWb2BXbhX/xcV"
},
{
"__type__": "sp.Skeleton",
"_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
},
"_skeletonData": {
"__uuid__": "8cd8d9e6-c388-4031-b9e0-8e2aaba580b3",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "",
"_premultipliedAlpha": true,
"_timeScale": 1,
"_preCacheMode": 0,
"_cacheMode": 0,
"_sockets": [],
"_useTint": false,
"_debugMesh": false,
"_debugBones": false,
"_debugSlots": false,
"_enableBatch": false,
"loop": true,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a3Y/a/aQ1Mpp5Q0wtQ3iOR"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6cql+bc51AaLfFMU+6cGvh",
"fileId": "4ath6GbpVKI6ncW4v8MnNc",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@ -345,7 +206,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 15
"__id__": 9
},
"_contentSize": {
"__type__": "cc.Size",

File diff suppressed because it is too large Load Diff

View File

@ -1051,7 +1051,9 @@
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_target": {
"__id__": 38
},
"_id": ""
},
{
@ -1086,8 +1088,6 @@
"__id__": 0
},
"fileId": "ac+IVk7nJKSa0IMaAJFT1Y",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@ -1190,12 +1190,12 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
"width": 1284.5899658203125,
"height": 2362
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0.4688577632184242,
"y": 0.5
},
"_id": ""
@ -1227,12 +1227,12 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "35c3b98a-501b-42cc-9541-14a1ecd2c309",
"__uuid__": "35663e0c-d179-46ae-a01e-cea2eeee8bd2",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "loop",
"_premultipliedAlpha": true,
"defaultAnimation": "<None>",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
"_cacheMode": 0,
@ -1289,8 +1289,6 @@
"__id__": 0
},
"fileId": "e72cbyaBVGLaat/o1n2q0V",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{

View File

@ -25,8 +25,8 @@ export class FreeSpinAdd extends Component {
let numNode = this.freeSpinEnterSpine.node.getChildByName('NumNode');
this.freeCountLabel = numNode.getChildByName('Label').getComponent(Label);
let titleNode = this.freeSpinEnterSpine.node.getChildByName('TitleNode');
this.freeSpinEnterTitleSp = titleNode.getChildByName('SpriteFREESPINWON').getComponent(Sprite);
// let titleNode = this.freeSpinEnterSpine.node.getChildByName('TitleNode');
// this.freeSpinEnterTitleSp = titleNode.getChildByName('SpriteFREESPINWON').getComponent(Sprite);
this.freeCount = freeCount;
this.freeCountLabel.string = `${freeCount}`;

View File

@ -601,10 +601,10 @@ export class Icon extends Component {
winSpine.setPosition(0, 0, 0);
winSpine.setScale(1, 1, 1);
let ascendWin = winSpine.getChildByName('Ascend_win');
let ascendWin = winSpine.getChildByName('ascend_win');
ascendWin.active = true;
let skeleton = ascendWin.getComponent(sp.Skeleton);
skeleton.setAnimation(0, `Sw_${this.lHeight}`, false);
skeleton.setAnimation(0, `anim${this.lHeight}`, false);
skeleton.setCompleteListener(() => {
skeleton.setCompleteListener(null);
// 隐藏所有子节点
@ -626,20 +626,16 @@ export class Icon extends Component {
winSpine.setPosition(0, 0, 0);
winSpine.setScale(1, 1, 1);
let ascendWin = winSpine.getChildByName('Ascend_win');
let ascendSwitch = winSpine.getChildByName('Ascend_switch');
let skeleton1 = ascendWin.getComponent(sp.Skeleton);
let skeleton2 = ascendSwitch.getComponent(sp.Skeleton);
let ascendWin = winSpine.getChildByName('ascend_win');
let skeleton = ascendWin.getComponent(sp.Skeleton);
ascendWin.active = true;
skeleton1.setAnimation(0, `Sw_${this.lHeight}`, false);
this.scheduleOnce(() => {
skeleton1.setCompleteListener(null);
skeleton.setAnimation(0, `anim${this.lHeight}`, false);
skeleton.setCompleteListener(() => {
skeleton.setCompleteListener(null);
ascendWin.active = false;
ascendSwitch.active = true;
skeleton2.setAnimation(0, `Sw_${this.lHeight}`, true);
this.playChangeSprite(true);
}, 1.2)
})
} else {
// 清理winSpine节点
let winSpine = this.node.getChildByName('winSpine');

View File

@ -2737,7 +2737,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 74
@ -2774,7 +2774,7 @@
"y": 0,
"z": 0
},
"_id": "2fUnA1oilBgrZrDSnwZsz2"
"_id": "dcrZ6ZQUhHTocBCcTLnD91"
},
{
"__type__": "cc.UITransform",
@ -2788,15 +2788,15 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 256
"width": 1484.1700439453125,
"height": 2361.02001953125
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"x": 0.5577191126965639,
"y": 0.49978398753021747
},
"_id": "cd/l0tL3VIH7lO/4Tcjgra"
"_id": "5eCOl9iDBOqrx+o9MzHH/Q"
},
{
"__type__": "sp.Skeleton",
@ -2819,11 +2819,11 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "0026c07e-6b01-4f14-a392-1617a3580342",
"__uuid__": "51fefa9b-55e9-4239-acc8-5730bff79e96",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "idle",
"defaultAnimation": "loop",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
@ -2835,7 +2835,7 @@
"_debugSlots": false,
"_enableBatch": false,
"loop": true,
"_id": "b65l2DQQJMiJo5FMJKHJIN"
"_id": "ab7skyMJ5L9pSQgJ0kmqWb"
},
{
"__type__": "cc.UITransform",