/// <inheritdoc/>
        public override SpriteFont GetFont(TextFontStyle style)
        {
            switch (style)
            {
            case TextFontStyle.Header1:
                return(_head1);

            case TextFontStyle.Header2:
                return(_head2);

            case TextFontStyle.Header3:
                return(_head3);

            case TextFontStyle.Mono:
                return(_mono);

            case TextFontStyle.Muted:
                return(_muted);

            case TextFontStyle.Highlight:
                return(_highlight);

            default:
                return(_system);
            }
        }
Beispiel #2
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(TextCharacterAppearance != null ? TextCharacterAppearance.ToStepValue() : "$");
            parameters.Add(TextStyle != null ? TextStyle.ToStepValue() : "$");
            parameters.Add(TextFontStyle != null ? TextFontStyle.ToStepValue() : "$");
            parameters.Add(ModelOrDraughting != null ? ModelOrDraughting.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
        /// <inheritdoc/>
        public override Color GetFontColor(TextFontStyle style)
        {
            switch (style)
            {
            case TextFontStyle.Header1:
            case TextFontStyle.Header2:
            case TextFontStyle.Header3:
                return(GetAccentColor().Lighten(0.75F).Lighten(0.75F));

            default:
                return(Color.White);
            }
        }
Beispiel #4
0
 public override Color GetFontColor(TextFontStyle style)
 {
     return(Color.Black);
 }
Beispiel #5
0
 public override void DrawString(GraphicsContext graphics, string text, int x, int y, int width, int height, TextFontStyle style)
 {
 }
Beispiel #6
0
 public override void DrawDisabledString(GraphicsContext graphics, string text, int x, int y, int width, int height, TextFontStyle style)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
        /// <summary>
        /// Sets the font style of this object
        /// </summary>
        public FluentXpoUrlText SetFontStyle(TextFontStyle fontStyle)
        {
            XpoUrlText.FontStyle = fontStyle;

            return(this);
        }
 public static IText CreateText(string font, int size, TextFontStyle style)
 {
     return(PlayerControl.CreateText(font, size, style));
 }
        /// <summary>
        /// Sets the font style of this object
        /// </summary>
        public FluentXpoUrlText SetFontStyle(TextFontStyle fontStyle)
        {
            XpoUrlText.FontStyle = fontStyle;

            return this;
        }