调整顶部弹出菜单的位置

This commit is contained in:
zhl 2019-02-27 18:50:14 +08:00
parent 452ed02612
commit 701d89d8a3

View File

@ -19,7 +19,7 @@ cc.Class({
btn.getComponent('topMenuBtn').selected = i === 0;
this.btns.push(btn);
this.node.addChild(btn);
let y = 400 - 120 * i;
let y = 350 - 120 * i;
btn.setPosition(cc.v2(0, y));
}
},