/// <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); } }
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); } }
public override Color GetFontColor(TextFontStyle style) { return(Color.Black); }
public override void DrawString(GraphicsContext graphics, string text, int x, int y, int width, int height, TextFontStyle style) { }
public override void DrawDisabledString(GraphicsContext graphics, string text, int x, int y, int width, int height, TextFontStyle style) { throw new NotImplementedException(); }
/// <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; }