Beispiel #1
0
        public Frame(int width, int height, BasePositionProfile positionProfile, Colour colour)
            : base(positionProfile)
        {
            this.Width           = width;
            this.Height          = height;
            this.PositionProfile = positionProfile;
            this.colour          = colour;

            this.Components = new List <BaseComponent>();
        }
Beispiel #2
0
 public Container(
     int width,
     int height,
     BasePositionProfile positionProfile,
     int priority,
     Colour backgroundColour,
     Colour hoverBackgroundColor)
     : base(width, height, positionProfile, priority)
 {
 }
Beispiel #3
0
 public BaseComplexComponent(int width, int height, BasePositionProfile positionProfile, int priority)
     : base(positionProfile)
 {
     this.Width          = width;
     this.Height         = height;
     this.Priority       = priority;
     this.Interactive    = true;
     this.Visible        = true;
     this.EventResponses = new List <EventResponse>();
     this.Hovered        = false;
     this.Blocker        = false;
 }
Beispiel #4
0
 public Button(
     int width,
     int height,
     string text,
     BasePositionProfile positionProfile,
     int priority,
     Colour textColour,
     Colour hoverTextColour,
     Colour backgroundColour,
     Colour hoverBackgroundColour)
     : base(width, height, positionProfile, priority)
 {
 }
Beispiel #5
0
 public Toolbar(
     int width,
     int height,
     BasePositionProfile positionProfile,
     int priority,
     Colour backgroundColour,
     List <IIconable> iconables)
     : base(width, height, positionProfile, priority)
 {
     this.BackgroundColour = backgroundColour;
     this.Icons            = new List <Icon>();
     this.Tools            = new List <IIconable>();
 }
Beispiel #6
0
 public FontGraphics(string text, int maxWidth, int gutter, BasePositionProfile positionProfile,
                     FontFlow fontFlow, Colour colour, SpriteFont font)
     : base(positionProfile)
 {
     this.text        = text;
     this.displayText = text;
     this.maxWidth    = maxWidth;
     this.gutter      = gutter;
     this.fontFlow    = fontFlow;
     this.colour      = colour;
     this.font        = font;
     this.scale       = 1;
 }
Beispiel #7
0
 public ImageGraphics(Texture2D image, BasePositionProfile positionProfile)
     : base(positionProfile)
 {
     this.image = image;
 }
Beispiel #8
0
 public Icon(int width, int height, BasePositionProfile positionProfile, int priority, Texture2D texture)
     : base(width, height, positionProfile, priority)
 {
     this.Texture = texture;
 }
Beispiel #9
0
 public BaseComponent(BasePositionProfile positionProfile)
 {
     this.PositionProfile = positionProfile;
 }