Example #1
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.5f, () =>
     {
         ToolTipSystem.Show(content, header);
     });
 }
Example #2
0
 public void ToolTipComplete(ToolTipSystem toolTipSystem)
 {
     if (Input.GetKeyDown(keyToCloseTip))
     {
         toolTipSystem.HideToolTip();
     }
 }
Example #3
0
 public void OnMouseEnter()
 {
     {
         LeanTween.delayedCall(2f, () =>
         {
             ToolTipSystem.Show(content, header);
         });
     }
 }
    IEnumerator Delay()
    {
        yield return(new WaitForSeconds(0.5f));

        if (hover == true)
        {
            ToolTipSystem.Show(content, header);           //calls on method from ToolTipSystem to activate tooltip
        }
    }
Example #5
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     //FadeIn();
     //ToolTipSystem.Show(content, header);
     LeanTween.delayedCall(2f, () =>
     {
         ToolTipSystem.Show(content, header);
     });
 }
Example #6
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Tab))
     {
         if (WeaponModeAction != null)
         {
             WeaponModeAction();
         }
         ToolTipSystem.Hide();
     }
 }
Example #7
0
    public void OnSlotPressed()
    {
        if (itemStack.Count == 0)
        {
            return;
        }

        //Activate tooltip
        ToolTipSystem.Show(itemStack.Peek(), transform);
        ToolTipSystem.SetItemActions(this, itemStack.Peek());
    }
        void Start()
        {
            isOccupied          = false;
            powerSourceRotation = mFController.transform.rotation;

            // rotate by 180 if it's an AC connector
            if (connectorLabel == MFController.ConnectorLabel.AC_A1 || connectorLabel == MFController.ConnectorLabel.AC_A2 || connectorLabel == MFController.ConnectorLabel.AC_B1 ||  connectorLabel == MFController.ConnectorLabel.AC_B2)
            {
                  {
                    powerSourceRotation *= Quaternion.Euler(0, 180, 0);
                }
            }

            audioSource   = mFController.GetComponent <AudioSource>();
            tooltipSystem = GameObject.FindWithTag("TooltipSystem").GetComponent <ToolTipSystem>();
        }
Example #9
0
 public void OnMouseExit()
 {
     ToolTipSystem.Hide();
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     ToolTipSystem.Hide();           //calls on method from ToolTipSystem to deactivate tooltip
     hover = false;
 }
Example #11
0
    public void OnPointerExit(PointerEventData eventData)
    {
        ToolTipSystem.Hide();

        LeanTween.cancel(delay.uniqueId);
    }
Example #12
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     ToolTipSystem.Show(content, header);
 }
Example #13
0
 public void Awake()
 {
     current = this;
     Hide();
 }
Example #14
0
 public void Awake()
 {
     current = this;
 }
Example #15
0
 public void OnPointerExit(PointerEventData eventData)
 {
     ToolTipSystem.Hide();
 }
Example #16
0
        void Start()
        {
            base.Start();

            tooltipSystem = GameObject.FindWithTag("TooltipSystem").GetComponent <ToolTipSystem>();
        }
 private void Awake()
 {
     i = this;
 }