FSO.Client.UI.Controls.UIButton.UIButton C# (CSharp) Method

UIButton() public method

public UIButton ( Microsoft.Xna.Framework.Graphics.Texture2D Texture ) : System
Texture Microsoft.Xna.Framework.Graphics.Texture2D
return System
        public UIButton(Texture2D Texture)
        {
            this.Texture = Texture;

            ClickHandler =
                ListenForMouse(new Rectangle(0, 0, m_Width, m_Height), new UIMouseEvent(OnMouseEvent));

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

Same methods

UIButton::UIButton ( ) : System