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; } } }
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; } } }
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(); } }
public void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton) { TroopsListItem[] componentsInChildren = this.m_troopsListContents.GetComponentsInChildren <TroopsListItem>(true); foreach (TroopsListItem troopsListItem in componentsInChildren) { troopsListItem.ClearAndHideLootArea(); } }