Commit 0e0df685 authored by limingzhe's avatar limingzhe

feat: 判断是否隐藏后退按钮

parent 6d3455ff
......@@ -69,6 +69,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent();
this.startTime();
this.updateTop();
this.hideReturnBtn()
}
protected onDestroy(): void {
pg.event.clear();
......@@ -645,6 +647,17 @@ 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;
cc.find("layout_info/label_title", 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