Beispiel #1
0
        public void    SetTooltip(Vector2 basePos)
        {
            //	Vector2 screenSize = new Vector2 (Screen.width, Screen.height);

            Vector2 size = this.size;             // Vector2.Scale( this.sizeInScreenPercentage, screenSize );

            m_tooltipId = TooltipManager.SetTooltip(this.tooltipText, this.offset, size, this.maxFontSize, this.textAnchor,
                                                    this.backgroundColor, this.textColor, this.GetComponentInParent <Canvas>());

            this.onTooltipSet();
        }
Beispiel #2
0
//		public void OnMove (AxisEventData eventData)
//		{
//			// update tooltip position
//			this.SetTooltip ( new Vector2( Input.mousePosition.x, Input.mousePosition.y ) );
//		}


        void OnDisable()
        {
            m_isPointerInside = false;
            TooltipManager.RemoveTooltip(m_tooltipId);
        }
Beispiel #3
0
 public void OnPointerExit(PointerEventData eventData)
 {
     m_isPointerInside = false;
     TooltipManager.RemoveTooltip(m_tooltipId);
 }