Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
anim_insert_ques
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
anim_insert_ques
Commits
3bf16b1f
Commit
3bf16b1f
authored
Apr 20, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 返回按钮
parent
e62e2ac5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
202 additions
and
36 deletions
+202
-36
anim_insert_ques.meta
assets/anim_insert_ques.meta
+15
-1
anim_insert_ques.fire
assets/anim_insert_ques/scene/anim_insert_ques.fire
+123
-30
anim_insert_ques.ts
assets/anim_insert_ques/scene/anim_insert_ques.ts
+28
-5
back.png
assets/anim_insert_ques/textures/back.png
+0
-0
back.png.meta
assets/anim_insert_ques/textures/back.png.meta
+36
-0
No files found.
assets/anim_insert_ques.meta
View file @
3bf16b1f
{"ver":"1.1.2","uuid":"90543671-b847-4b9e-b6ee-9f7b420043f1","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "90543671-b847-4b9e-b6ee-9f7b420043f1",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/anim_insert_ques/scene/anim_insert_ques.fire
View file @
3bf16b1f
...
...
@@ -84,13 +84,13 @@
"_active": true,
"_components": [
{
"__id__": 3
7
"__id__": 3
9
},
{
"__id__":
38
"__id__":
40
},
{
"__id__":
39
"__id__":
41
}
],
"_prefab": null,
...
...
@@ -458,7 +458,7 @@
"__id__": 15
},
{
"__id__": 3
0
"__id__": 3
2
}
],
"_active": false,
...
...
@@ -790,6 +790,9 @@
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_active": true,
...
...
@@ -844,7 +847,7 @@
},
{
"__type__": "cc.Node",
"_name": "
start_title
",
"_name": "
back
",
"_objFlags": 0,
"_parent": {
"__id__": 15
...
...
@@ -865,6 +868,96 @@
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d433K1RbJBp58jVqpLUlZ2"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "39835806-2ca6-448e-954f-ab7219463cdd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e8ryYIM4tJ7bUeI/BchVFL"
},
{
"__type__": "cc.Node",
"_name": "start_title",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 645,
...
...
@@ -909,7 +1002,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
8
},
"_enabled": true,
"_materials": [],
...
...
@@ -943,7 +1036,7 @@
"_active": true,
"_components": [
{
"__id__":
19
"__id__":
21
}
],
"_prefab": null,
...
...
@@ -999,7 +1092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
18
"__id__":
20
},
"_enabled": true,
"_materials": [],
...
...
@@ -1033,7 +1126,7 @@
"_active": true,
"_components": [
{
"__id__": 2
1
"__id__": 2
3
}
],
"_prefab": null,
...
...
@@ -1089,7 +1182,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
0
"__id__": 2
2
},
"_enabled": true,
"_materials": [],
...
...
@@ -1123,7 +1216,7 @@
"_active": true,
"_components": [
{
"__id__": 2
3
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1179,7 +1272,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
2
"__id__": 2
4
},
"_enabled": true,
"_materials": [],
...
...
@@ -1213,7 +1306,7 @@
"_active": true,
"_components": [
{
"__id__": 2
5
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -1269,7 +1362,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
6
},
"_enabled": true,
"_materials": [],
...
...
@@ -1303,7 +1396,7 @@
"_active": true,
"_components": [
{
"__id__": 2
7
"__id__": 2
9
}
],
"_prefab": null,
...
...
@@ -1359,7 +1452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
6
"__id__": 2
8
},
"_enabled": true,
"_materials": [],
...
...
@@ -1393,7 +1486,7 @@
"_active": true,
"_components": [
{
"__id__":
29
"__id__":
31
}
],
"_prefab": null,
...
...
@@ -1449,7 +1542,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
28
"__id__":
30
},
"_enabled": true,
"_materials": [],
...
...
@@ -1480,14 +1573,14 @@
"__id__": 9
},
"_children": [
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
},
{
"__id__": 37
}
],
"_active": true,
...
...
@@ -1545,13 +1638,13 @@
"_name": "ready",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
2
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1607,7 +1700,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
1
"__id__": 3
3
},
"_enabled": true,
"_clip": {
...
...
@@ -1626,13 +1719,13 @@
"_name": "go",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
4
"__id__": 3
6
}
],
"_prefab": null,
...
...
@@ -1688,7 +1781,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
5
},
"_enabled": true,
"_clip": {
...
...
@@ -1707,13 +1800,13 @@
"_name": "goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
6
"__id__": 3
8
}
],
"_prefab": null,
...
...
@@ -1769,7 +1862,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
7
},
"_enabled": true,
"_clip": {
...
...
assets/anim_insert_ques/scene/anim_insert_ques.ts
View file @
3bf16b1f
...
...
@@ -94,7 +94,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
getJumpData
()
{
return
//
{step: 2};
return
{
step
:
2
};
}
...
...
@@ -158,6 +158,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
'
in initView
'
)
if
(
this
.
jumpData
)
{
this
.
junpAnim
();
return
;
...
...
@@ -372,7 +373,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
dragonDisplay
.
timeScale
=
1
;
this
.
playAudioByUrl
(
this
.
data
.
lrcData
.
audio_url
);
//
this.playAudioByUrl(this.data.lrcData.audio_url);
cc
.
assetManager
.
loadRemote
(
this
.
data
.
lrcData
.
audio_url
,
(
err
,
audioClip
)
=>
{
this
.
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
...
...
@@ -479,12 +480,34 @@ export default class SceneComponent extends MyCocosSceneComponent {
goodjob
.
scale
=
this
.
_mapScaleMin
;
const
dragonDisplay
=
goodjob
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
playAnimation
(
'
normal
'
,
1
);
dragonDisplay
.
playAnimation
(
'
normal
'
,
-
1
);
playAudio
(
this
.
goodjobClip
);
dragonDisplay
.
on
(
dragonBones
.
EventObject
.
COMPLETE
,
(
e
)
=>
{
this
.
animPlayEnd
();
asyncDelay
(
2
);
this
.
showBack
();
// dragonDisplay.on(dragonBones.EventObject.COMPLETE, (e) => {
// // this.animPlayEnd();
// })
}
showBack
()
{
const
back
=
this
.
getSprNode
(
'
back
'
);
this
.
canvas
.
addChild
(
back
,
20
);
back
.
x
=
-
this
.
canvas
.
width
/
2
+
80
;
back
.
y
=
this
.
canvas
.
height
/
2
-
80
;
back
.
scale
=
0.3
;
back
.
opacity
=
0
cc
.
tween
(
back
)
.
to
(
0.9
,
{
scale
:
this
.
_mapScaleMin
,
opacity
:
255
},
{
easing
:
'
elasticOut
'
})
.
start
();
back
.
addComponent
(
cc
.
Button
);
back
.
on
(
'
click
'
,
()
=>
{
console
.
log
(
'
click back
'
)
callMiddleLayerFunction
(
'
PSQS_exit_book
'
,
null
,
()
=>
{});
})
}
...
...
assets/anim_insert_ques/textures/back.png
0 → 100644
View file @
3bf16b1f
6.5 KB
assets/anim_insert_ques/textures/back.png.meta
0 → 100644
View file @
3bf16b1f
{
"ver": "2.3.5",
"uuid": "99aa4dc3-907a-4d17-932d-9983102a7558",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 80,
"height": 84,
"platformSettings": {},
"subMetas": {
"back": {
"ver": "1.0.4",
"uuid": "39835806-2ca6-448e-954f-ab7219463cdd",
"rawTextureUuid": "99aa4dc3-907a-4d17-932d-9983102a7558",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 84,
"rawWidth": 80,
"rawHeight": 84,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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