|
@@ -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()
|
|
|
}
|
|
|
|
|
|
//网络事件=======================================
|