// Token: 0x06002C5A RID: 11354 RVA: 0x00488FD0 File Offset: 0x004871D0 public void OnCloseHint() { GUIManager.Instance.HintMaskObj.HideBtn.m_Handler = null; if (this.FadeOutCanvas) { this.bFadeOut = true; this.FadeTime = 0f; } switch (this.m_eHint) { case EUIButtonHint.UIHIBtn: { UIHIBtn uihibtn = this.m_Button as UIHIBtn; if (!(uihibtn == null)) { eHeroOrItem heroOrItem = (eHeroOrItem)uihibtn.HeroOrItem; if (heroOrItem == eHeroOrItem.Hero || heroOrItem == eHeroOrItem.Item) { this.BtnAction = UIButtonHint._BntAction.BtnUp; } } break; } case EUIButtonHint.DownUpHandler: case EUIButtonHint.UILeBtn: case EUIButtonHint.UIArena_Hint: this.BtnAction = UIButtonHint._BntAction.BtnUp; break; case EUIButtonHint.Slider: if (this.m_DownUpHandler != null) { this.m_DownUpHandler.OnButtonUp(this); } break; case EUIButtonHint.CountDown: this.m_Time = 0f; this.bCountDown = false; this.BtnAction = UIButtonHint._BntAction.BtnUp; break; } }
// Token: 0x06002C56 RID: 11350 RVA: 0x00488CB4 File Offset: 0x00486EB4 public void OnPointerDown(PointerEventData eventData) { if (!base.enabled || !base.gameObject.activeInHierarchy || (this.m_Button != null && !this.m_Button.IsInteractable())) { return; } if (this.m_eHint == EUIButtonHint.UIHIBtn || this.m_eHint == EUIButtonHint.UILeBtn) { this.SetFadeOutObject(this.m_eHint); } if (UIButtonHint.DelayFadeOutHint) { UIButtonHint.DelayFadeOutHint.ForceCloseHint(); } if (GUIManager.Instance.HintMaskObj.HideBtn.m_Handler != null) { GUIManager.Instance.HintMaskObj.HideBtn.m_Handler.OnButtonClick(null); } if (this.GetCScrollRect() != null && this.GetCScrollRect().content != null) { this.PressPosition = this.GetCScrollRect().content.anchoredPosition; } else { this.PressPosition = base.transform.position; } this.BtnAction = UIButtonHint._BntAction.BtnDown; UIButtonHint.DelayFadeOutHint = this; GUIManager.Instance.HintMaskObj.Hide(this); this.IsValidClick = 1; if (this.FadeOutCanvas) { this.bFadeOut = false; this.FadeOutCanvas.alpha = 1f; } switch (this.m_eHint) { case EUIButtonHint.UIHIBtn: { UIHIBtn uihibtn = this.m_Button as UIHIBtn; if (!(uihibtn == null)) { eHeroOrItem heroOrItem = (eHeroOrItem)uihibtn.HeroOrItem; if (heroOrItem != eHeroOrItem.Hero) { if (heroOrItem == eHeroOrItem.Item) { GUIManager.Instance.m_SimpleItemInfo.Show(this, uihibtn.HIID, -1, UIButtonHint.ePosition.Original, null); } } else { GUIManager.Instance.m_SimpleItemInfo.ShowHero(this, uihibtn.HIID, (ushort)uihibtn.m_BtnID1, (ushort)uihibtn.m_BtnID2); } } break; } case EUIButtonHint.DownUpHandler: case EUIButtonHint.Slider: if (this.m_DownUpHandler != null) { this.m_DownUpHandler.OnButtonDown(this); } break; case EUIButtonHint.CountDown: this.m_Time = 0f; this.bCountDown = true; break; case EUIButtonHint.UILeBtn: if (this.m_DownUpHandler != null) { this.m_DownUpHandler.OnButtonDown(this); } break; case EUIButtonHint.UIArena_Hint: if (this.m_DownUpHandler != null) { this.m_DownUpHandler.OnButtonDown(this); } break; } if (this.GetCScrollRect() != null) { this.GetCScrollRect().OnBeginDrag(eventData); } if (this.GetScrollRect() != null) { this.GetScrollRect().OnBeginDrag(eventData); } }