Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
car
Commits
0798113a
Commit
0798113a
authored
Jun 03, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
053eed06
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
6396 additions
and
97 deletions
+6396
-97
3输出新手引导横幅.svga
assets/Bundles/GuideScene/3输出新手引导横幅.svga
+0
-0
3输出新手引导横幅.svga.meta
assets/Bundles/GuideScene/3输出新手引导横幅.svga.meta
+12
-0
GuideScene.scene
assets/Bundles/GuideScene/GuideScene.scene
+5409
-96
IP.png
assets/Bundles/GuideScene/png/IP.png
+0
-0
IP.png.meta
assets/Bundles/GuideScene/png/IP.png.meta
+134
-0
tip1.png
assets/Bundles/GuideScene/png/tip1.png
+0
-0
tip1.png.meta
assets/Bundles/GuideScene/png/tip1.png.meta
+134
-0
tip2.png
assets/Bundles/GuideScene/png/tip2.png
+0
-0
tip2.png.meta
assets/Bundles/GuideScene/png/tip2.png.meta
+134
-0
tip3.png
assets/Bundles/GuideScene/png/tip3.png
+0
-0
tip3.png.meta
assets/Bundles/GuideScene/png/tip3.png.meta
+134
-0
tip4.png
assets/Bundles/GuideScene/png/tip4.png
+0
-0
tip4.png.meta
assets/Bundles/GuideScene/png/tip4.png.meta
+134
-0
tip5.png
assets/Bundles/GuideScene/png/tip5.png
+0
-0
tip5.png.meta
assets/Bundles/GuideScene/png/tip5.png.meta
+134
-0
tip6.png
assets/Bundles/GuideScene/png/tip6.png
+0
-0
tip6.png.meta
assets/Bundles/GuideScene/png/tip6.png.meta
+134
-0
GuideScene.ts
assets/Scripts/Scenes/GuideScene.ts
+37
-1
No files found.
assets/Bundles/GuideScene/3输出新手引导横幅.svga
0 → 100644
View file @
0798113a
File added
assets/Bundles/GuideScene/3输出新手引导横幅.svga.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "24b66533-fdd2-4fca-9c8e-9da1b943bc58",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
assets/Bundles/GuideScene/GuideScene.scene
View file @
0798113a
This diff is collapsed.
Click to expand it.
assets/Bundles/GuideScene/png/IP.png
0 → 100644
View file @
0798113a
51.8 KB
assets/Bundles/GuideScene/png/IP.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3f29ac20-3699-4389-bf50-44113dee4ff7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3f29ac20-3699-4389-bf50-44113dee4ff7@6c48a",
"displayName": "IP",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3f29ac20-3699-4389-bf50-44113dee4ff7",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3f29ac20-3699-4389-bf50-44113dee4ff7@f9941",
"displayName": "IP",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 201,
"rawWidth": 200,
"rawHeight": 201,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-100.5,
0,
100,
-100.5,
0,
-100,
100.5,
0,
100,
100.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
201,
200,
201,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-100.5,
0
],
"maxPos": [
100,
100.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3f29ac20-3699-4389-bf50-44113dee4ff7@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3f29ac20-3699-4389-bf50-44113dee4ff7@6c48a"
}
}
assets/Bundles/GuideScene/png/tip1.png
0 → 100644
View file @
0798113a
6.15 KB
assets/Bundles/GuideScene/png/tip1.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1d876624-6cf9-412e-a82e-d0b39d7fb097",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1d876624-6cf9-412e-a82e-d0b39d7fb097@6c48a",
"displayName": "tip1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1d876624-6cf9-412e-a82e-d0b39d7fb097",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1d876624-6cf9-412e-a82e-d0b39d7fb097@f9941",
"displayName": "tip1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 362,
"height": 87,
"rawWidth": 362,
"rawHeight": 87,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-181,
-43.5,
0,
181,
-43.5,
0,
-181,
43.5,
0,
181,
43.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
87,
362,
87,
0,
0,
362,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-181,
-43.5,
0
],
"maxPos": [
181,
43.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1d876624-6cf9-412e-a82e-d0b39d7fb097@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1d876624-6cf9-412e-a82e-d0b39d7fb097@6c48a"
}
}
assets/Bundles/GuideScene/png/tip2.png
0 → 100644
View file @
0798113a
5.44 KB
assets/Bundles/GuideScene/png/tip2.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa@6c48a",
"displayName": "tip2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa@f9941",
"displayName": "tip2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 328,
"height": 86,
"rawWidth": 328,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-164,
-43,
0,
164,
-43,
0,
-164,
43,
0,
164,
43,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
86,
328,
86,
0,
0,
328,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-164,
-43,
0
],
"maxPos": [
164,
43,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b2ab5beb-6ca3-43b8-b4c5-5a51108f63fa@6c48a"
}
}
assets/Bundles/GuideScene/png/tip3.png
0 → 100644
View file @
0798113a
5.19 KB
assets/Bundles/GuideScene/png/tip3.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "fb9402e2-e126-4b53-aabf-f35942519a31",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fb9402e2-e126-4b53-aabf-f35942519a31@6c48a",
"displayName": "tip3",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "fb9402e2-e126-4b53-aabf-f35942519a31",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fb9402e2-e126-4b53-aabf-f35942519a31@f9941",
"displayName": "tip3",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 302,
"height": 86,
"rawWidth": 302,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-151,
-43,
0,
151,
-43,
0,
-151,
43,
0,
151,
43,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
86,
302,
86,
0,
0,
302,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-151,
-43,
0
],
"maxPos": [
151,
43,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "fb9402e2-e126-4b53-aabf-f35942519a31@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "fb9402e2-e126-4b53-aabf-f35942519a31@6c48a"
}
}
assets/Bundles/GuideScene/png/tip4.png
0 → 100644
View file @
0798113a
5.47 KB
assets/Bundles/GuideScene/png/tip4.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "94d99a53-68d7-4131-874e-d2987ef7707e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "94d99a53-68d7-4131-874e-d2987ef7707e@6c48a",
"displayName": "tip4",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "94d99a53-68d7-4131-874e-d2987ef7707e",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "94d99a53-68d7-4131-874e-d2987ef7707e@f9941",
"displayName": "tip4",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 304,
"height": 86,
"rawWidth": 304,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-152,
-43,
0,
152,
-43,
0,
-152,
43,
0,
152,
43,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
86,
304,
86,
0,
0,
304,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-152,
-43,
0
],
"maxPos": [
152,
43,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "94d99a53-68d7-4131-874e-d2987ef7707e@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "94d99a53-68d7-4131-874e-d2987ef7707e@6c48a"
}
}
assets/Bundles/GuideScene/png/tip5.png
0 → 100644
View file @
0798113a
5.48 KB
assets/Bundles/GuideScene/png/tip5.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b61e49e5-2b8b-4da6-af72-ce38c75e1359",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b61e49e5-2b8b-4da6-af72-ce38c75e1359@6c48a",
"displayName": "tip5",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b61e49e5-2b8b-4da6-af72-ce38c75e1359",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b61e49e5-2b8b-4da6-af72-ce38c75e1359@f9941",
"displayName": "tip5",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 305,
"height": 86,
"rawWidth": 305,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-152.5,
-43,
0,
152.5,
-43,
0,
-152.5,
43,
0,
152.5,
43,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
86,
305,
86,
0,
0,
305,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-152.5,
-43,
0
],
"maxPos": [
152.5,
43,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b61e49e5-2b8b-4da6-af72-ce38c75e1359@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b61e49e5-2b8b-4da6-af72-ce38c75e1359@6c48a"
}
}
assets/Bundles/GuideScene/png/tip6.png
0 → 100644
View file @
0798113a
7.65 KB
assets/Bundles/GuideScene/png/tip6.png.meta
0 → 100644
View file @
0798113a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d6d3623d-420a-4037-bcc8-f717c128052a",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d6d3623d-420a-4037-bcc8-f717c128052a@6c48a",
"displayName": "tip6",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d6d3623d-420a-4037-bcc8-f717c128052a",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d6d3623d-420a-4037-bcc8-f717c128052a@f9941",
"displayName": "tip6",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 402,
"height": 87,
"rawWidth": 402,
"rawHeight": 87,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-201,
-43.5,
0,
201,
-43.5,
0,
-201,
43.5,
0,
201,
43.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
87,
402,
87,
0,
0,
402,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-201,
-43.5,
0
],
"maxPos": [
201,
43.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d6d3623d-420a-4037-bcc8-f717c128052a@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d6d3623d-420a-4037-bcc8-f717c128052a@6c48a"
}
}
assets/Scripts/Scenes/GuideScene.ts
View file @
0798113a
import
{
import
{
_decorator
,
_decorator
,
Node
,
Node
,
Sprite
,
SpriteFrame
,
tween
,
UIOpacity
,
Widget
,
}
from
"cc"
;
}
from
"cc"
;
import
Scene
from
"db://assets/core/Module/Scene"
;
import
Scene
from
"db://assets/core/Module/Scene"
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
MainGame
}
from
"db://assets/Scripts/Scenes/MainGame/MainGame"
;
import
{
MainGame
}
from
"db://assets/Scripts/Scenes/MainGame/MainGame"
;
import
Svga
from
"db://assets/core/Component/Svga/Svga"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -16,25 +17,60 @@ export class GuideScene extends Scene {
...
@@ -16,25 +17,60 @@ export class GuideScene extends Scene {
static
skin
:
string
=
"GuideScene"
;
static
skin
:
string
=
"GuideScene"
;
@
property
(
Node
)
tipNode
:
Node
=
null
;
@
property
(
Sprite
)
tipSp
:
Sprite
=
null
;
@
property
(
Svga
)
svga
:
Svga
=
null
;
@
property
({
type
:
[
Node
]
})
guideList
:
Node
[]
=
[];
@
property
({
type
:
[
Node
]
})
guideList
:
Node
[]
=
[];
@
property
({
type
:
[
SpriteFrame
]
})
tipList
:
SpriteFrame
[]
=
[];
guideIndex
:
number
=
-
1
;
guideIndex
:
number
=
-
1
;
canNext
:
boolean
=
true
;
onLoad
()
{
onLoad
()
{
this
.
nextGuide
();
this
.
nextGuide
();
this
.
node
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
nextGuide
,
this
);
this
.
node
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
nextGuide
,
this
);
// this.svga.node.on(Svga.EventType.END_FRAME, this.onSvgaEnd, this);
}
}
// onSvgaEnd() {
// this.canNext = true;
// }
nextGuide
()
{
nextGuide
()
{
if
(
!
this
.
canNext
)
return
;
this
.
canNext
=
false
;
this
.
svga
.
play
();
tween
(
this
.
tipSp
.
getComponent
(
UIOpacity
))
.
set
({
opacity
:
0
})
.
delay
(
0.444
)
.
to
(
0.444
,
{
opacity
:
255
})
.
call
(()
=>
{
this
.
canNext
=
true
;
})
.
start
();
this
.
guideIndex
++
;
this
.
guideIndex
++
;
if
(
this
.
guideIndex
>=
this
.
guideList
.
length
)
{
if
(
this
.
guideIndex
>=
this
.
guideList
.
length
)
{
changeScene
(
MainGame
);
changeScene
(
MainGame
);
return
;
return
;
}
}
if
(
this
.
guideIndex
===
5
)
{
this
.
tipNode
.
getComponent
(
Widget
).
top
=
805
;
}
else
{
this
.
tipNode
.
getComponent
(
Widget
).
top
=
337
;
}
this
.
guideList
.
forEach
((
node
,
index
)
=>
{
this
.
guideList
.
forEach
((
node
,
index
)
=>
{
node
.
active
=
index
===
this
.
guideIndex
;
node
.
active
=
index
===
this
.
guideIndex
;
});
});
this
.
tipSp
.
spriteFrame
=
this
.
tipList
[
this
.
guideIndex
];
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment