Пример #1
0
 private void OnElementPointerEnter(HistoryAbstractElement e)
 {
     if (FightCastManager.currentCastType == FightCastManager.CurrentCastType.None)
     {
         FightUIRework.ShowTooltip(e.tooltipProvider, m_tooltipPosition, e.GetComponent <RectTransform>());
     }
 }
Пример #2
0
 private void OnElementPointerExit(HistoryAbstractElement e)
 {
     if (FightCastManager.currentCastType == FightCastManager.CurrentCastType.None)
     {
         FightUIRework.HideTooltip();
     }
 }
Пример #3
0
 protected unsafe override void OnDestroy()
 {
     //IL_0018: Unknown result type (might be due to invalid IL or missing references)
     //IL_0022: Expected O, but got Unknown
     //IL_0034: Unknown result type (might be due to invalid IL or missing references)
     //IL_003e: Expected O, but got Unknown
     //IL_0050: Unknown result type (might be due to invalid IL or missing references)
     //IL_005a: Expected O, but got Unknown
     //IL_006c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0076: Expected O, but got Unknown
     base.OnDestroy();
     m_popupMenuButton.get_onClick().RemoveListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_optionsButton.get_onClick().RemoveListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_quitButton.get_onClick().RemoveListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_bugReportButton.get_onClick().RemoveListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     if (s_instance == this)
     {
         s_instance = null;
     }
 }
Пример #4
0
 protected unsafe override void Awake()
 {
     //IL_002f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0039: Expected O, but got Unknown
     //IL_004b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0055: Expected O, but got Unknown
     //IL_0067: Unknown result type (might be due to invalid IL or missing references)
     //IL_0071: Expected O, but got Unknown
     //IL_0083: Unknown result type (might be due to invalid IL or missing references)
     //IL_008d: Expected O, but got Unknown
     base.Awake();
     s_instance = this;
     m_turnFeedbackUI.get_gameObject().SetActive(false);
     m_popupMenuButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_optionsButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_quitButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_bugReportButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     if (ApplicationConfig.debugMode)
     {
         m_debugUI = m_factory.CreateDebugUI(this.get_transform());
     }
 }
Пример #5
0
        private IEnumerator ShowPlaying(ICastableStatus item, CastableDragNDropElement dnd, CellObject cell)
        {
            dnd.get_gameObject().SetActive(true);
            CastHighlight cellHighlight = m_factory.CreateCastHighlight(item, cell.highlight.get_transform());
            Vector3       worldPosition = FightUIRework.WorldToUIWorld(cell.highlight.get_transform().get_parent().get_position());
            Tween         tween         = dnd.PlayCastImmediate(worldPosition, m_fightUICanvas.get_transform());

            while (tween.get_active() && !TweenExtensions.IsComplete(tween))
            {
                yield return(null);
            }
            yield return((object)new WaitForTime(m_castingModeParameters.opponentPlayingDuration));

            m_factory.DestroyCellHighlight(cellHighlight);
            yield return((object)new WaitForTime(m_castingModeParameters.opponentCastPlayingDuration));

            Tween endCastImmediate = dnd.EndCastImmediate();

            while (endCastImmediate.get_active() && !TweenExtensions.IsComplete(endCastImmediate))
            {
                yield return(null);
            }
            dnd.get_gameObject().SetActive(false);
        }
Пример #6
0
 public void OnPointerExit(PointerEventData eventData)
 {
     FightUIRework.HideTooltip();
 }
Пример #7
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     FightUIRework.ShowTooltip(this, m_tooltipPosition, this.GetComponent <RectTransform>());
 }