예제 #1
0
    public TooltipTextContainer TooltipOpenLarge(TimeIntervalData timeIntervalData, bool faceLeft)
    {
        GameObject           newTooltip = Instantiate(toolTipExpandedPrefab, transform, false);
        TooltipTextContainer ttC        = newTooltip.GetComponent <TooltipTextContainer>();

        ttC.Unpack(timeIntervalData, faceLeft);
        return(ttC);
    }
예제 #2
0
 public void OnPointerExit(PointerEventData eventData)
 {
     if (tooltipLarge != null)
     {
         Destroy(tooltipLarge.gameObject);
         tooltipLarge = null;
     }
     if (tooltip != null)
     {
         Destroy(tooltip.gameObject);
         tooltip = null;
     }
 }
예제 #3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (tooltipLarge == null)
     {
         tooltipLarge = sneakDiaryRef.TooltipOpenLarge(timeIntervalData, faceLeft);
         CorrectTransformPosition(tooltipLarge.transform, tooltipLarge.myRect);
         if (tooltip != null)
         {
             Destroy(tooltip.gameObject);
             tooltip = null;
         }
     }
 }