public void Show(string tooltipText, RectTransform targetRect, TooltipAlignment alignment, TooltipSize size) { if (currentTooltip != null && currentTooltip.Item is TooltipItemNormal == false) { currentTooltip.Hide(); } TooltipNormal.ModifyContent(tooltipText); Show(TooltipNormal.Slot, targetRect, alignment, size); }
private void Show(TooltipSlot newTooltip, RectTransform targetRect, TooltipAlignment alignment, TooltipSize size) { currentTooltip = newTooltip; targetRect.GetWorldCorners(Corners); tooltipSizeSettings.Value(size).Modify(newTooltip); tooltipAlignmentSettings.Value(alignment).Modify(newTooltip, Corners); TooltipSpell.Slot.Show(targetRect); }
public void Show(SpellInfo tooltipSpell, RectTransform targetRect, TooltipAlignment alignment, TooltipSize size) { if (currentTooltip != null && currentTooltip.Item is TooltipItemSpell == false) { currentTooltip.Hide(); } TooltipSpell.ModifyContent(tooltipSpell); Show(TooltipSpell.Slot, targetRect, alignment, size); }