Exemple #1
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.5f, () =>
     {
         ToolTipSystem.Show(content, header);
     });
 }
Exemple #2
0
 public void ToolTipComplete(ToolTipSystem toolTipSystem)
 {
     if (Input.GetKeyDown(keyToCloseTip))
     {
         toolTipSystem.HideToolTip();
     }
 }
Exemple #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
        }
    }
Exemple #5
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     //FadeIn();
     //ToolTipSystem.Show(content, header);
     LeanTween.delayedCall(2f, () =>
     {
         ToolTipSystem.Show(content, header);
     });
 }
Exemple #6
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Tab))
     {
         if (WeaponModeAction != null)
         {
             WeaponModeAction();
         }
         ToolTipSystem.Hide();
     }
 }
    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>();
        }
Exemple #9
0
 public void OnMouseExit()
 {
     ToolTipSystem.Hide();
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     ToolTipSystem.Hide();           //calls on method from ToolTipSystem to deactivate tooltip
     hover = false;
 }
Exemple #11
0
    public void OnPointerExit(PointerEventData eventData)
    {
        ToolTipSystem.Hide();

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

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