浏览代码

修改探索红点bug

lanyunfei 22 小时之前
父节点
当前提交
be99f9a033
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      assets/script/ui/BuildingUI.ts

+ 3 - 1
assets/script/ui/BuildingUI.ts

@@ -148,7 +148,9 @@ export class BuildingUI extends BaseUI {
 
         //页签红点  探索
         cc.find('toggles/toggle2/red_dots', this.toggles).active =
-            (this.build.exploreTimes > 0 || this.build.autoExploreTimes > 0) && this.build.id != BUILDING.main
+            (this.build.exploreTimes > 0 || this.build.autoExploreTimes > 0) &&
+            this.build.id != BUILDING.main &&
+            Mgr.global.checkModOpen(MOD.explore)
     }
 
     initBuilding() {