public void OnPointerEnter(PointerEventData eventData) { delay = LeanTween.delayedCall(0.5f, () => { TooltipSystem.Show(Content, Header); }); }
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); } }
public void OnPointerEnter(PointerEventData eventData) { delay = LeanTween.delayedCall(0.8f, () => { TooltipSystem.Show(text); }); }
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)); } }
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); }); } }
public void Awake() { current = this; }
public void HideTooltip() { LeanTween.cancel(delay.uniqueId); TooltipSystem.Hide(); }
public void OnPointerEnter(PointerEventData eventData) { delay = LeanTween.delayedCall(0.5f, () => { TooltipSystem.Show(scriptableObject); }).setIgnoreTimeScale(true); }
public void Awake() { instance = this; }
public void OnPointerEnter(PointerEventData eventData) { TooltipSystem.showTooltip(header, cooldown, content); }
// 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); }
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); }
private void Awake() { current = this; }
public void Awake() { current = this; Hide(); }
public void OnPointerExit(PointerEventData eventData) { LeanTween.cancel(delay.uniqueId); TooltipSystem.Hide(); }
private void Awake() { current = this; current.tooltip.gameObject.SetActive(false); }
public void OnPointerExit(PointerEventData eventData) { TooltipSystem.Hide(); }
public void OnPointerEnter(PointerEventData eventData) { TooltipSystem.Show(message); }