Commit aef3b2be authored by limingzhe's avatar limingzhe

feat: 判断隐藏后退按钮

parent 176e2a0e
No preview for this file type
......@@ -71,6 +71,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent();
this.startTime();
this.updateTop();
this.hideReturnBtn()
}
protected onDestroy(): void {
cc.Tween.stopAll();
......@@ -410,6 +412,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
return quadBase;
}
hideReturnBtn() {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer && middleLayer.isDGTX) {
// 迪格听写中间层,隐藏自己的后退按钮
cc.find("layout_info/btn_return", this.node).active = false;
}
}
}
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