private void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton) { if (navButton == this) { if (!this.m_isSelected) { this.m_normalImage.set_enabled(false); this.m_selectedImage.set_enabled(true); this.StopGlowEffect(); this.m_greenSelectionGlow.get_gameObject().SetActive(true); this.m_glowSpinHandle = UiAnimMgr.instance.PlayAnim("PrestigeSpin", this.m_selectionGlowRoot.get_transform(), Vector3.get_zero(), 1.66f, 0f); this.m_glowPulseHandle = UiAnimMgr.instance.PlayAnim("PrestigePulse", this.m_selectionGlowRoot.get_transform(), Vector3.get_zero(), 1.66f, 0f); UiAnimMgr.instance.PlayAnim("MinimapPulseAnim", base.get_transform(), Vector3.get_zero(), 2f, 0f); this.m_label.SetActive(true); this.ResizeForSelect(); this.m_isSelected = true; } } else { this.m_label.SetActive(false); this.m_normalImage.set_enabled(true); this.m_selectedImage.set_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.Invoke(navButton); } }
public void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton) { TroopsListItem[] componentsInChildren = this.m_troopsListContents.GetComponentsInChildren <TroopsListItem>(true); foreach (TroopsListItem troopsListItem in componentsInChildren) { troopsListItem.ClearAndHideLootArea(); troopsListItem.AddInventoryItems(); } }
public void HandleOrderHallNavButtonSelected(OrderHallNavButton navButton) { TroopsListItem[] componentsInChildren = this.m_troopsListContents.GetComponentsInChildren <TroopsListItem>(true); TroopsListItem[] array = componentsInChildren; for (int i = 0; i < array.Length; i++) { TroopsListItem troopsListItem = array[i]; troopsListItem.ClearAndHideLootArea(); } }