public void Hide(Tooltip tooltip) { if (currentTooltip == tooltip) { currentTooltip = null; TooltipChanged?.Invoke(currentTooltip); } }
public void Display(Tooltip tooltip) { if (currentTooltip != tooltip) { currentTooltip = tooltip; TooltipChanged?.Invoke(tooltip); } }
/// <summary> /// The on tooltip. /// </summary> /// <param name="eventArgs"> /// The event args. /// </param> public void OnTooltip(TooltipEventArgs eventArgs) { TooltipChanged?.Invoke(this, eventArgs); }
private void OnTooltipChanged(TooltipChanged tooltip) { Text.text = tooltip.Title; }