Example #1
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.5f, () =>
     {
         TooltipSystem.Show(Content, Header);
     });
 }
Example #2
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        ScriptableObject scriptableObject;

        if (category.Equals(Category.SOLDIERS))
        {
            scriptableObject = EpochManager.current.GetSoldiersOfCurrentPlayerEpoch()[index].GetComponent <SoldierBehavior>().soldierConfig;
        }
        else if (category.Equals(Category.TURRETS))
        {
            scriptableObject = EpochManager.current.GetTurretsOfCurrentPlayerEpoch()[index].GetComponent <TurretBehavior>().turretConfig;
        }
        else if (category.Equals(Category.SPECIAL_ATTACK))
        {
            scriptableObject = EpochManager.current.GetSpecialAttackConfigOfCurrentPlayerEpoch();
        }
        else
        {
            return;
        }

        delay = LeanTween.delayedCall(0.5f, () => {
            TooltipSystem.Show(scriptableObject);
        }).setIgnoreTimeScale(true);
    }
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (_enabled)
     {
         TooltipSystem.Show(Content, Header);
     }
 }
Example #4
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.8f, () =>
     {
         TooltipSystem.Show(text);
     });
 }
Example #5
0
 public void OnPointerExit(PointerEventData eventData)
 {
     if (item != null)
     {
         //itemTitle.HideText(true);
         TooltipSystem.Hide();
     }
 }
Example #6
0
 public void OnPointerExit(PointerEventData eventData)
 {
     TooltipSystem.Hide(needChange);
     if (needChange)
     {
         needChange = false;
     }
 }
 private void Hide()
 {
     if (_delay != null)
     {
         StopCoroutine(_delay);
         TooltipSystem.Hide();
     }
 }
 protected override bool LayoutSpawn(Transform parent = null)
 {
     if (UseSharedLayout)
     {
         UIWindow = TooltipSystem.ShareLayout(UIWindowPrefab, parent);
         return(true);
     }
     return(false);
 }
 private void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
 public void HideTurretOptions()
 {
     if (TooltipSystem.GetCurrentTooltip() != null && TooltipSystem.GetCurrentTooltip().GetType() == typeof(TurretTooltip))
     {
         TooltipSystem.Hide();
     }
     if (this.gameObject.activeSelf)
     {
         LeanTween.scaleY(this.gameObject, 0, 0.2f).setEaseOutExpo().setOnComplete(() => this.gameObject.SetActive(false));
     }
 }
Example #11
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        if (item != null)
        {
            delay = LeanTween.delayedCall(0.5f, () => {
                Debug.Log("Hovered Over " + item.title);
                //itemTitle.HideText(false);
                //itemTitle.UpdateText(item.title);

                TooltipSystem.Show(item.title);
            });
        }
    }
Example #12
0
 public void Awake()
 {
     current = this;
 }
Example #13
0
	public void HideTooltip()
	{
		LeanTween.cancel(delay.uniqueId);
		TooltipSystem.Hide();
	}
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.5f, () => {
         TooltipSystem.Show(scriptableObject);
     }).setIgnoreTimeScale(true);
 }
Example #15
0
 public void Awake()
 {
     instance = this;
 }
Example #16
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.showTooltip(header, cooldown, content);
 }
Example #17
0
 // Start is called before the first frame update
 void Awake()
 {
     instance = this;
     Hide();
 }
Example #18
0
 void Start()
 {
     needChange = false;
     TooltipSystem.Hide(needChange);
 }
Example #19
0
 //private static LTDescr delay;
 public void hide()
 {
     TooltipSystem.Hide(needChange);
 }
Example #20
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.Show(content, cost, header);
 }
    public IEnumerator ShowTooltip()
    {
        yield return(new WaitForSeconds(0.5f));

        TooltipSystem.Show(Content, Header);
    }
Example #22
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.Show(content);
 }
Example #23
0
 private void Awake()
 {
     current = this;
 }
Example #24
0
 public void Awake()
 {
     current = this;
     Hide();
 }
Example #25
0
 public void OnPointerExit(PointerEventData eventData)
 {
     LeanTween.cancel(delay.uniqueId);
     TooltipSystem.Hide();
 }
Example #26
0
 private void Awake()
 {
     current = this;
     current.tooltip.gameObject.SetActive(false);
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     TooltipSystem.Hide();
 }
Example #28
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.Show(message);
 }