private void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton)
 {
     if (navButton == this)
     {
         if (!this.m_isSelected)
         {
             this.m_normalImage.enabled   = false;
             this.m_selectedImage.enabled = true;
             this.StopGlowEffect();
             this.m_greenSelectionGlow.gameObject.SetActive(true);
             this.m_glowSpinHandle  = UiAnimMgr.instance.PlayAnim("PrestigeSpin", this.m_selectionGlowRoot.transform, Vector3.zero, 1.66f, 0f);
             this.m_glowPulseHandle = UiAnimMgr.instance.PlayAnim("PrestigePulse", this.m_selectionGlowRoot.transform, Vector3.zero, 1.66f, 0f);
             UiAnimMgr.instance.PlayAnim("MinimapPulseAnim", base.transform, Vector3.zero, 2f, 0f);
             this.m_label.SetActive(true);
             this.ResizeForSelect();
             this.m_isSelected = true;
         }
     }
     else
     {
         this.m_label.SetActive(false);
         this.m_normalImage.enabled   = true;
         this.m_selectedImage.enabled = false;
         if (this.m_isSelected)
         {
             this.StopGlowEffect();
             this.ResizeForDeselect();
             this.m_isSelected = false;
         }
     }
 }
示例#2
0
 private void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton)
 {
     if (navButton == this)
     {
         if (!this.m_isSelected)
         {
             this.m_normalImage.enabled   = false;
             this.m_selectedImage.enabled = true;
             this.StopGlowEffect();
             this.m_label.SetActive(true);
             this.ResizeForSelect();
             this.m_isSelected = true;
         }
     }
     else
     {
         this.m_label.SetActive(false);
         this.m_normalImage.enabled   = true;
         this.m_selectedImage.enabled = false;
         if (this.m_isSelected)
         {
             this.StopGlowEffect();
             this.ResizeForDeselect();
             this.m_isSelected = false;
         }
     }
 }
示例#3
0
 public void SelectOrderHallNavButton(OrderHallNavButton navButton)
 {
     if (this.OrderHallNavButtonSelectedAction != null)
     {
         this.OrderHallNavButtonSelectedAction(navButton);
     }
 }
 public void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton)
 {
     TroopsListItem[] componentsInChildren = this.m_troopsListContents.GetComponentsInChildren <TroopsListItem>(true);
     for (int i = 0; i < (int)componentsInChildren.Length; i++)
     {
         componentsInChildren[i].ClearAndHideLootArea();
     }
 }
示例#5
0
 public void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton)
 {
     TroopsListItem[] componentsInChildren = this.m_troopsListContents.GetComponentsInChildren <TroopsListItem>(true);
     foreach (TroopsListItem troopsListItem in componentsInChildren)
     {
         troopsListItem.ClearAndHideLootArea();
     }
 }