Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }