Commit 8a9586be authored by 李维's avatar 李维

添加指读模板结束动画

替换拼读小伙伴动画
parent 3f11626d
{
"ver": "1.1.2",
"uuid": "8e73c54b-464f-447b-add4-1aba3a215ec2",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "d0d03bb5-58e8-4a2a-8ad1-b8fc4c30e4d4",
"subMetas": {}
}
\ No newline at end of file
{"name":"alldone","imagePath":"alldone_tex.png","SubTexture":[{"name":"动画/光圈","x":1,"height":549,"y":1,"width":554},{"name":"动画/喇叭小","x":770,"height":154,"y":803,"width":156},{"name":"动画/star","x":1,"height":153,"y":686,"width":522},{"name":"动画/上","x":557,"height":272,"y":1,"width":359},{"name":"动画/下","x":557,"height":201,"y":275,"width":390},{"name":"动画/左手臂","x":928,"height":85,"y":803,"width":65},{"name":"动画/猫","x":709,"height":186,"y":478,"width":169},{"name":"动画/喇叭","x":770,"height":135,"y":666,"width":199},{"name":"动画/嘴","x":654,"height":25,"y":523,"width":19},{"name":"动画/右手","x":1,"height":86,"y":841,"width":109},{"name":"动画/左手","x":675,"height":17,"y":523,"width":21},{"name":"动画/帽子","x":557,"height":69,"y":478,"width":95},{"name":"动画/奖杯前","x":525,"height":195,"y":686,"width":243},{"name":"动画/闪光","x":880,"height":70,"y":584,"width":70},{"name":"动画/绿","x":952,"height":35,"y":625,"width":54},{"name":"动画/黄","x":654,"height":43,"y":478,"width":39},{"name":"动画/蓝","x":952,"height":39,"y":584,"width":60},{"name":"动画/红","x":971,"height":48,"y":662,"width":28},{"name":"动画/well","x":1,"height":132,"y":552,"width":706},{"name":"动画/well高光","x":880,"height":104,"y":478,"width":111}],"height":1024,"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "47219525-268d-470b-a75b-1a0cd8ff3900",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "01d80230-ec8e-4e01-81d2-8563a33005ab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"alldone_tex": {
"ver": "1.0.4",
"uuid": "3234bef2-abdd-481c-a1d3-b0cb14e29ed9",
"rawTextureUuid": "01d80230-ec8e-4e01-81d2-8563a33005ab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -5.5,
"offsetY": 33.5,
"trimX": 1,
"trimY": 1,
"width": 1011,
"height": 955,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b9954d31-ed75-4ebc-9f47-254d6208adeb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "8131eef1-d8fc-4aba-b410-f8d20680ba4d",
"subMetas": {}
}
\ No newline at end of file
{"name":"onedone","imagePath":"onedone_tex.png","SubTexture":[{"name":"动画/star","x":1,"height":456,"y":1,"width":441},{"name":"动画/上","x":1,"height":272,"y":459,"width":359},{"name":"动画/下","x":1,"height":201,"y":840,"width":390},{"name":"动画/奖杯","x":444,"height":352,"y":1,"width":354},{"name":"动画/猫","x":800,"height":155,"y":1,"width":172},{"name":"动画/帽子","x":114,"height":69,"y":733,"width":95},{"name":"动画/奖杯前","x":444,"height":349,"y":355,"width":357},{"name":"动画/猫爪","x":114,"height":26,"y":805,"width":140},{"name":"动画/well","x":362,"height":132,"y":706,"width":621},{"name":"动画/well高光","x":1,"height":104,"y":733,"width":111},{"name":"动画/闪光","x":211,"height":70,"y":733,"width":70},{"name":"动画/绿","x":283,"height":35,"y":774,"width":54},{"name":"动画/黄","x":362,"height":43,"y":459,"width":39},{"name":"动画/蓝","x":283,"height":39,"y":733,"width":60},{"name":"动画/红","x":403,"height":48,"y":459,"width":28}],"height":2048,"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f8a87a9a-16d0-4b10-bd30-4be86dfef8b1",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "239947a4-9072-4941-877b-4ece71f9ed8e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 2048,
"platformSettings": {},
"subMetas": {
"onedone_tex": {
"ver": "1.0.4",
"uuid": "4d445b8a-be09-4bf7-b46e-34dd1a633ed0",
"rawTextureUuid": "239947a4-9072-4941-877b-4ece71f9ed8e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -20,
"offsetY": 503,
"trimX": 1,
"trimY": 1,
"width": 982,
"height": 1040,
"rawWidth": 1024,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -728,12 +728,17 @@ export default class NewClass extends middleLayerBase {
await this.saveAnswer(data);
}
if (this.courseIndex == this.courses.length - 1) {
await this.pdtdFinishHandler();
// await this.pdtdFinishHandler(); // 不再播放拼读小伙伴动画
await this.showAllFinishLayer(1);
this.showCourseEndConfirm();
} else {
// 如果不是最后一页,跳转到下一页
// 数字版又要不自动跳页了
// this.goNextPage();
const { sceneName } = this.currentBundleInfo;
if(sceneName == "OP15_2") {
this.playFinishLayerAnim(0);
}
}
this.waittingUnlock = false;
}
......@@ -747,6 +752,7 @@ export default class NewClass extends middleLayerBase {
// 不是指读学习内容
return;
}
await this.playGetParterAnim();
if (this.isLogin == true && this.gameModel != 'free') {
......@@ -754,6 +760,108 @@ export default class NewClass extends middleLayerBase {
}
}
// 显示结束动画
async showAllFinishLayer() {
if (!this.getData("syllabus_path") || this.getData("syllabus_path").type !== "pdtd") {
// 不是拼读天地的学习内容
return;
}
if (this.getData("syllabus_path").pdtd_type === 'more_games') {
// 不是指读学习内容
return;
}
await this.playFinishLayerAnim(1);
if (this.isLogin == true && this.gameModel != 'free') {
await this.unlockNextForder();
}
}
playFinishLayerAnim(type = -1) {
const finishLayer = cc.find("middleLayer/finishLayer");
const aniOne = cc.find("middleLayer/finishLayer/aniOne");
const aniAll = cc.find("middleLayer/finishLayer/aniAll");
const btn_next = cc.find("middleLayer/finishLayer/btn_next");
const btn_replay = cc.find("middleLayer/finishLayer/btn_replay");
const btn_ok = cc.find("middleLayer/finishLayer/btn_ok");
return new Promise(resolve => {
if(type == 0) {
btn_next.scale = 0;
btn_replay.scale = 0;
finishLayer.active = true
aniOne.active = true;
aniAll.active = false;
btn_next.active = true;
btn_replay.active = true;
btn_ok.active = false;
aniOne.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1);
const targetScale = 0.65;
cc.tween(btn_next)
.delay(0.6)
.to(0.35, { scale: targetScale })
.start();
cc.tween(btn_replay)
.delay(0.6)
.to(0.35, { scale: targetScale })
.call(() => {
resolve(true);
this.showFinishLayer(-1);
})
.start();
} else if (type == 1) {
btn_ok.scale = 0;
finishLayer.active = true;
aniOne.active = false;
aniAll.active = true;
btn_next.active = false;
btn_replay.active = false;
btn_ok.active = true;
aniAll.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1);
const targetScale = 0.65;
cc.tween(btn_ok)
.delay(0.4)
.to(0.25, { scale: targetScale })
.call(() => {
resolve(true);
this.showFinishLayer(-1);
})
.start();
} else {
finishLayer.active = false;
aniOne.active = false;
aniAll.active = false;
btn_next.active = false;
btn_replay.active = false;
btn_ok.active = false;
resolve(true);
}
})
}
// 点击下一页按钮
handleClickBtnFinishNext() {
this.showFinishLayer(-1);
this.goNextPage();
}
// 点击重玩当前页按钮
handleClickBtnFinishReplay() {
this.showFinishLayer(-1);
this.reloadBundle();
}
// 点击确定按钮
handleClickBtnFinishOk() {
this.showFinishLayer(-1);
}
isLevelActived() {
if (this.isLogin == false) {
// 游客
......
{
"ver": "1.1.2",
"uuid": "fefb27b7-798c-41c1-a6fe-19ce34d88d98",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d989a4c0-4ef9-455e-a868-64de2be411b9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 269,
"height": 146,
"platformSettings": {},
"subMetas": {
"btn_next": {
"ver": "1.0.4",
"uuid": "4452a534-04f4-4612-aace-ba6da5e3fec9",
"rawTextureUuid": "d989a4c0-4ef9-455e-a868-64de2be411b9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 3,
"trimY": 3,
"width": 263,
"height": 140,
"rawWidth": 269,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "80262c1d-7879-4b60-b110-f9da2192f1ad",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 269,
"height": 146,
"platformSettings": {},
"subMetas": {
"btn_ok": {
"ver": "1.0.4",
"uuid": "de484892-90a0-44d8-9e3a-da0cce062448",
"rawTextureUuid": "80262c1d-7879-4b60-b110-f9da2192f1ad",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 265,
"height": 142,
"rawWidth": 269,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "32184444-c732-482b-9737-c1b46dbe2ac3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 269,
"height": 146,
"platformSettings": {},
"subMetas": {
"btn_replay": {
"ver": "1.0.4",
"uuid": "f01c1e08-f0dd-4078-875f-f30d1886ae53",
"rawTextureUuid": "32184444-c732-482b-9737-c1b46dbe2ac3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 267,
"height": 144,
"rawWidth": 269,
"rawHeight": 146,
"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