public void OnPointerEnter(PointerEventData eventData) { delay = LeanTween.delayedCall(0.5f, () => { ToolTipSystem.Show(content, header); }); }
public void ToolTipComplete(ToolTipSystem toolTipSystem) { if (Input.GetKeyDown(keyToCloseTip)) { toolTipSystem.HideToolTip(); } }
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 } }
public void OnPointerEnter(PointerEventData eventData) { //FadeIn(); //ToolTipSystem.Show(content, header); LeanTween.delayedCall(2f, () => { ToolTipSystem.Show(content, header); }); }
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>(); }
public void OnMouseExit() { ToolTipSystem.Hide(); }
public void OnPointerExit(PointerEventData eventData) { ToolTipSystem.Hide(); //calls on method from ToolTipSystem to deactivate tooltip hover = false; }
public void OnPointerExit(PointerEventData eventData) { ToolTipSystem.Hide(); LeanTween.cancel(delay.uniqueId); }
public void OnPointerEnter(PointerEventData eventData) { ToolTipSystem.Show(content, header); }
public void Awake() { current = this; Hide(); }
public void Awake() { current = this; }
public void OnPointerExit(PointerEventData eventData) { ToolTipSystem.Hide(); }
void Start() { base.Start(); tooltipSystem = GameObject.FindWithTag("TooltipSystem").GetComponent <ToolTipSystem>(); }
private void Awake() { i = this; }