private void SpreadText()
 {
     if (LegionfallData.HasCurrentInvasionPOI())
     {
         this.MoveText(this.m_headerTextSpreadPosition, this.m_timerTextSpreadPosition);
         this.FadeCenterIcons(1f);
     }
 }
 private void CollapseText()
 {
     if (LegionfallData.HasCurrentInvasionPOI())
     {
         this.FadeCenterIcons(0f);
         this.MoveText(this.m_headerTextCollapsedPosition, this.m_timerTextCollapsedPosition);
     }
 }
 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);
     }
 }
Exemple #5
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();
 }