private void HandleInvasionPOIChanged()
 {
     if (LegionfallData.HasCurrentInvasionPOI() && LegionfallData.GetCurrentInvasionPOI().AreaPoiID == this.m_invasionPOIID)
     {
         this.m_invasionZoneNameArea.SetActive(true);
     }
     else
     {
         this.m_invasionZoneNameArea.SetActive(false);
     }
 }
 private void HandleInvasionPOIChanged()
 {
     if (LegionfallData.HasCurrentInvasionPOI())
     {
         base.gameObject.SetActive(true);
         this.m_headerText.text = ((!LegionfallData.GetCurrentInvasionPOI().IsHordeAssault()) ? StaticDB.GetString("ALLIANCE_ATTACKING", "[PH] ALLIANCE ATTACKING") : StaticDB.GetString("HORDE_ATTACKING", "[PH] HORDE ATTACKING"));
         this.GetActiveCrest().SetActive(true);
     }
     else
     {
         base.gameObject.SetActive(false);
     }
 }
Example #3
0
 private void HandleInvasionPOIChanged()
 {
     if (!LegionfallData.HasCurrentInvasionPOI())
     {
         this.m_invasionNotification.gameObject.SetActive(false);
     }
     else
     {
         WrapperAreaPoi currentInvasionPOI = LegionfallData.GetCurrentInvasionPOI();
         this.m_invasionNotification.gameObject.SetActive(true);
         this.m_invasionTitle.text = currentInvasionPOI.Description;
         TimeSpan timeSpan = LegionfallData.GetCurrentInvasionExpirationTime() - GarrisonStatus.CurrentTime();
         timeSpan = ((timeSpan.TotalSeconds <= 0.0) ? TimeSpan.Zero : timeSpan);
         this.m_invasionTimeRemaining.text = timeSpan.GetDurationString(false);
     }
     this.SetActiveMapViewSize();
 }
 private GameObject GetActiveCrest()
 {
     return((!LegionfallData.GetCurrentInvasionPOI().IsHordeAssault()) ? this.m_allianceBG : this.m_hordeBG);
 }