예제 #1
0
 public UICatalogItem(bool Active)
 {
     SetActive(Active);
     m_TooltipHandler = UIUtils.GiveTooltip(this);
     ClickHandler = ListenForMouse(new Rectangle(0, 0, 45, 45), new UIMouseEvent(MouseEvt));
 }
예제 #2
0
파일: UIUtils.cs 프로젝트: Daribon/FreeSO
 public static UITooltipHandler GiveTooltip(UIElement target)
 {
     var handler = new UITooltipHandler(target);
     return handler;
 }
예제 #3
0
        public static UITooltipHandler GiveTooltip(UIElement target)
        {
            var handler = new UITooltipHandler(target);

            return(handler);
        }
예제 #4
0
파일: UIButton.cs 프로젝트: Daribon/FreeSO
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Texture"></param>
        public UIButton(Texture2D Texture)
        {
            this.Texture = Texture;

            ClickHandler =
                ListenForMouse(new Rectangle(0, 0, m_Width, m_Texture.Height), new UIMouseEvent(OnMouseEvent));

            m_TooltipHandler = UIUtils.GiveTooltip(this); //buttons can have tooltips
        }