BlisterUI.Widgets.RectButton.RectButton C# (CSharp) Method

RectButton() public method

public RectButton ( WidgetRenderer r, int w, int h, Color cInactive, Color cActive, Microsoft.Xna.Framework.Graphics.Texture2D t = null ) : System
r WidgetRenderer
w int
h int
cInactive Color
cActive Color
t Microsoft.Xna.Framework.Graphics.Texture2D
return System
        public RectButton(WidgetRenderer r, int w, int h, Color cInactive, Color cActive, Texture2D t = null)
            : base(r, t)
        {
            optInactive = new ButtonHighlightOptions(w, h, cInactive);
            optActive = new ButtonHighlightOptions(w, h, cActive);

            // Set To Default
            isHooked = false;
            isHovered = false;
            Width = optInactive.Width;
            Height = optInactive.Height;
            Color = optInactive.Color;
        }

Same methods

RectButton::RectButton ( WidgetRenderer r, ButtonHighlightOptions inactive, ButtonHighlightOptions active, Microsoft.Xna.Framework.Graphics.Texture2D t = null ) : System