Pārlūkot izejas kodu

修改探索红点

lanyunfei 9 stundas atpakaļ
vecāks
revīzija
a9d7024b68
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      assets/script/ui/BuildingUI.ts

+ 4 - 0
assets/script/ui/BuildingUI.ts

@@ -145,7 +145,10 @@ export class BuildingUI extends BaseUI {
         if (this.castleSkillNode.active) this.initCastleSkill()
         if (this.exploreNode.active) this.initExplore()
         cc.find('button_details', this.node).active = BUILDING.main == this.build.id || this.exploreNode.active //主城介绍、只有主城显示
+        this.showExploreToggleRed()
+    }
 
+    showExploreToggleRed() {
         //页签红点  探索
         cc.find('toggles/toggle2/red_dots', this.toggles).active =
             (this.build.exploreTimes > 0 || this.build.autoExploreTimes > 0) &&
@@ -372,6 +375,7 @@ export class BuildingUI extends BaseUI {
         Data.main.buildData[index] = buildData
         this.build = buildData
         this.initExplore()
+        this.showExploreToggleRed()
     }
 
     //网络事件=======================================