Esempio n. 1
0
    private void HandleInvasionPOIChanged()
    {
        JamMobileAreaPOI currentInvasionPOI = LegionfallData.GetCurrentInvasionPOI();

        if (currentInvasionPOI == null)
        {
            this.m_invasionNotification.gameObject.SetActive(false);
        }
        else
        {
            this.m_invasionNotification.gameObject.SetActive(true);
            this.m_invasionTitle.text = currentInvasionPOI.Description;
            long num = LegionfallData.GetCurrentInvasionExpirationTime() - GarrisonStatus.CurrentTime();
            num = ((num <= 0L) ? 0L : num);
            this.m_invasionTimeRemainingDuration.FormatDurationString((int)num, false);
            this.m_invasionTimeRemaining.text = this.m_invasionTimeRemainingDuration.DurationString;
        }
        if (this.m_mapInfo_BrokenIsles.gameObject.activeSelf)
        {
            this.SetMapViewSize_BrokenIsles();
        }
        else
        {
            this.SetMapViewSize_Argus();
        }
    }
    private void HandleInvasionPOIChanged()
    {
        JamMobileAreaPOI currentInvasionPOI = LegionfallData.GetCurrentInvasionPOI();

        if (currentInvasionPOI != null && currentInvasionPOI.AreaPoiID == this.m_invasionPOIID)
        {
            this.m_invasionZoneNameArea.SetActive(true);
            this.m_zoneNameArea.SetActive(false);
        }
        else
        {
            this.m_invasionZoneNameArea.SetActive(false);
            this.m_zoneNameArea.SetActive(this.zoneNameTag.Length > 0);
        }
    }