Commit a76363e0 authored by 范雪寒's avatar 范雪寒

test:

parent a6c28229
...@@ -215,6 +215,9 @@ cc.Class({ ...@@ -215,6 +215,9 @@ cc.Class({
btn.addComponent(cc.Button); btn.addComponent(cc.Button);
btn.on("click", () => { btn.on("click", () => {
if (!this.can_click_menu_item_storyBox) {
return;
}
console.log(data); console.log(data);
cc.tween(btn) cc.tween(btn)
.to(0.1, { scale: 1.1 }) .to(0.1, { scale: 1.1 })
...@@ -238,6 +241,7 @@ cc.Class({ ...@@ -238,6 +241,7 @@ cc.Class({
this.syllabus_id = data.children[0].id; this.syllabus_id = data.children[0].id;
this.loadBundleByConf(data.children[0].conf); this.loadBundleByConf(data.children[0].conf);
this.can_click_menu_item_storyBox = false;
} else { } else {
this.hideAllSubmenu(); this.hideAllSubmenu();
menuBase.active = true; menuBase.active = true;
...@@ -409,6 +413,9 @@ cc.Class({ ...@@ -409,6 +413,9 @@ cc.Class({
{ y: this.storyBoxMenuLength * -100 - 80 }, { y: this.storyBoxMenuLength * -100 - 80 },
{ easing: "bounceOut" } { easing: "bounceOut" }
) )
.call(() => {
this.can_click_menu_item_storyBox = true;
})
.start(); .start();
}, },
......
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