Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        public RectButton(WidgetRenderer r, ButtonHighlightOptions inactive, ButtonHighlightOptions active, Texture2D t = null)
            : base(r, t)
        {
            optInactive = inactive;
            optActive = active;

            // Set To Default
            isHooked = false;
            isHovered = false;
            Width = optInactive.Width;
            Height = optInactive.Height;
            Color = optInactive.Color;
        }
Beispiel #4
0
        public RectButton(WidgetRenderer r, ButtonHighlightOptions inactive, ButtonHighlightOptions active, Texture2D t = null)
            : base(r, t)
        {
            optInactive = inactive;
            optActive   = active;

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