Commit e486f2ec authored by 李维's avatar 李维

调整按钮比例

parent 7d4dca63
...@@ -789,8 +789,6 @@ export default class NewClass extends middleLayerBase { ...@@ -789,8 +789,6 @@ export default class NewClass extends middleLayerBase {
return new Promise(async resolve => { return new Promise(async resolve => {
if(type == 0) { if(type == 0) {
// 单课件完成 // 单课件完成
btn_next.scale = 0;
btn_replay.scale = 0;
finishLayer.active = true; finishLayer.active = true;
aniOne.active = true; aniOne.active = true;
aniAll.active = false; aniAll.active = false;
...@@ -798,6 +796,9 @@ export default class NewClass extends middleLayerBase { ...@@ -798,6 +796,9 @@ export default class NewClass extends middleLayerBase {
btn_replay.active = true; btn_replay.active = true;
btn_ok.active = false; btn_ok.active = false;
btn_next.scale = 0;
btn_replay.scale = 0;
aniOne.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1); aniOne.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1);
const targetScale = 0.65; const targetScale = 0.65;
...@@ -818,15 +819,18 @@ export default class NewClass extends middleLayerBase { ...@@ -818,15 +819,18 @@ export default class NewClass extends middleLayerBase {
} else if (type == 1) { } else if (type == 1) {
// 一课全部完成 // 一课全部完成
btn_ok.scale = 0;
finishLayer.active = true; finishLayer.active = true;
aniOne.active = false; aniOne.active = false;
aniAll.active = true; aniAll.active = true;
btn_next.active = false; btn_next.active = false;
btn_replay.active = false; btn_replay.active = false;
btn_ok.active = false; btn_ok.active = false;
btn_ok.scale = 0;
aniAll.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1); aniAll.getComponent(dragonBones.ArmatureDisplay).playAnimation('newAnimation', 1);
// const targetScale = 0.5; // const targetScale = 0.5;
cc.tween(btn_ok) cc.tween(btn_ok)
.delay(2.5) .delay(2.5)
.call(() => { .call(() => {
......
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