Commit 3bf16b1f authored by limingzhe's avatar limingzhe

feat: 返回按钮

parent e62e2ac5
{"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
...@@ -84,13 +84,13 @@ ...@@ -84,13 +84,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 39
}, },
{ {
"__id__": 38 "__id__": 40
}, },
{ {
"__id__": 39 "__id__": 41
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
"__id__": 15 "__id__": 15
}, },
{ {
"__id__": 30 "__id__": 32
} }
], ],
"_active": false, "_active": false,
...@@ -790,6 +790,9 @@ ...@@ -790,6 +790,9 @@
}, },
{ {
"__id__": 28 "__id__": 28
},
{
"__id__": 30
} }
], ],
"_active": true, "_active": true,
...@@ -844,7 +847,7 @@ ...@@ -844,7 +847,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "start_title", "_name": "back",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 15 "__id__": 15
...@@ -865,6 +868,96 @@ ...@@ -865,6 +868,96 @@
"b": 255, "b": 255,
"a": 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": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 645, "width": 645,
...@@ -909,7 +1002,7 @@ ...@@ -909,7 +1002,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 16 "__id__": 18
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -943,7 +1036,7 @@ ...@@ -943,7 +1036,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 21
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -999,7 +1092,7 @@ ...@@ -999,7 +1092,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 18 "__id__": 20
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1033,7 +1126,7 @@ ...@@ -1033,7 +1126,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 21 "__id__": 23
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1089,7 +1182,7 @@ ...@@ -1089,7 +1182,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 20 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1123,7 +1216,7 @@ ...@@ -1123,7 +1216,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1179,7 +1272,7 @@ ...@@ -1179,7 +1272,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 24
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1213,7 +1306,7 @@ ...@@ -1213,7 +1306,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 27
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1269,7 +1362,7 @@ ...@@ -1269,7 +1362,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1303,7 +1396,7 @@ ...@@ -1303,7 +1396,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1359,7 +1452,7 @@ ...@@ -1359,7 +1452,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1393,7 +1486,7 @@ ...@@ -1393,7 +1486,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1449,7 +1542,7 @@ ...@@ -1449,7 +1542,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 28 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1480,14 +1573,14 @@ ...@@ -1480,14 +1573,14 @@
"__id__": 9 "__id__": 9
}, },
"_children": [ "_children": [
{
"__id__": 31
},
{ {
"__id__": 33 "__id__": 33
}, },
{ {
"__id__": 35 "__id__": 35
},
{
"__id__": 37
} }
], ],
"_active": true, "_active": true,
...@@ -1545,13 +1638,13 @@ ...@@ -1545,13 +1638,13 @@
"_name": "ready", "_name": "ready",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 34
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1607,7 +1700,7 @@ ...@@ -1607,7 +1700,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1626,13 +1719,13 @@ ...@@ -1626,13 +1719,13 @@
"_name": "go", "_name": "go",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1688,7 +1781,7 @@ ...@@ -1688,7 +1781,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1707,13 +1800,13 @@ ...@@ -1707,13 +1800,13 @@
"_name": "goodjob", "_name": "goodjob",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1769,7 +1862,7 @@ ...@@ -1769,7 +1862,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -94,7 +94,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -94,7 +94,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
getJumpData() { getJumpData() {
return //{step: 2}; return {step: 2};
} }
...@@ -158,6 +158,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -158,6 +158,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log( ' in initView') console.log( ' in initView')
if (this.jumpData) { if (this.jumpData) {
this.junpAnim(); this.junpAnim();
return; return;
...@@ -372,7 +373,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -372,7 +373,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.dragonDisplay.timeScale = 1; 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) => { cc.assetManager.loadRemote(this.data.lrcData.audio_url, (err, audioClip) => {
this.audioId = cc.audioEngine.play(audioClip, false, 0.8); this.audioId = cc.audioEngine.play(audioClip, false, 0.8);
...@@ -479,12 +480,34 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -479,12 +480,34 @@ export default class SceneComponent extends MyCocosSceneComponent {
goodjob.scale = this._mapScaleMin; goodjob.scale = this._mapScaleMin;
const dragonDisplay = goodjob.getComponent(dragonBones.ArmatureDisplay); const dragonDisplay = goodjob.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('normal', 1); dragonDisplay.playAnimation('normal', -1);
playAudio(this.goodjobClip); 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, () => {});
}) })
} }
......
{
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment