Exemple #1
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.5f, () =>
     {
         TooltipSystem.Show(Content, Header);
     });
 }
Exemple #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);
     }
 }
Exemple #4
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     delay = LeanTween.delayedCall(0.8f, () =>
     {
         TooltipSystem.Show(text);
     });
 }
Exemple #5
0
 public void OnPointerExit(PointerEventData eventData)
 {
     if (item != null)
     {
         //itemTitle.HideText(true);
         TooltipSystem.Hide();
     }
 }
 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));
     }
 }
Exemple #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);
            });
        }
    }
Exemple #12
0
 public void Awake()
 {
     current = this;
 }
Exemple #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);
 }
Exemple #15
0
 public void Awake()
 {
     instance = this;
 }
Exemple #16
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.showTooltip(header, cooldown, content);
 }
Exemple #17
0
 // Start is called before the first frame update
 void Awake()
 {
     instance = this;
     Hide();
 }
 void Start()
 {
     needChange = false;
     TooltipSystem.Hide(needChange);
 }
 //private static LTDescr delay;
 public void hide()
 {
     TooltipSystem.Hide(needChange);
 }
Exemple #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);
    }
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.Show(content);
 }
Exemple #23
0
 private void Awake()
 {
     current = this;
 }
Exemple #24
0
 public void Awake()
 {
     current = this;
     Hide();
 }
Exemple #25
0
 public void OnPointerExit(PointerEventData eventData)
 {
     LeanTween.cancel(delay.uniqueId);
     TooltipSystem.Hide();
 }
Exemple #26
0
 private void Awake()
 {
     current = this;
     current.tooltip.gameObject.SetActive(false);
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     TooltipSystem.Hide();
 }
Exemple #28
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     TooltipSystem.Show(message);
 }