/// <summary>
        /// Add a solid color background to the variable it is applied to.
        /// </summary>
        /// <param name="color">Color.</param>
        public BackgroundAttribute(ColorEnum color)
        {
            this.color = ColorEx.GetColorByEnum(color);

            // Always display last to make sure it is applied to the variable, not another DecoratorDrawer
            order = int.MaxValue;
        }
        /// <summary>
        /// Creates a header before the variable it is applied to.
        /// </summary>
        /// <param name="text">Header text</param>
        /// <param name="style">Header style. Either against a solid color background or surrounded by lines.</param>
        /// <param name="textAlignment">Text alignment. Left, Right or Centered</param>
        /// <param name="textColor">Text color.</param>
        /// <param name="backgroundColor">Background color.</param>
        public ComplexHeaderAttribute(string text, Style style, Alignment textAlignment, ColorEnum textColor, ColorEnum backgroundColor)
        {
            this.text            = text;
            this.style           = style;
            this.textAlignment   = textAlignment;
            this.textColor       = ColorEx.GetColorByEnum(textColor);
            this.backgroundColor = ColorEx.GetColorByEnum(backgroundColor);

            // Always display first to make sure it is diplayed at the top, before any other DecoratorDrawer
            order = -int.MaxValue;
        }
Exemplo n.º 3
0
 public EditableCommentAttribute(ColorEnum headerColor)
 {
     this.headerColor = ColorEx.GetColorByEnum(headerColor);
     olRefresh        = (Texture2D)Resources.Load("OLRefresh");
     olCheckGreen     = (Texture2D)Resources.Load("OLCheckGreen");
 }