Show / Hide Table of Contents

Class ScaledText

A text string.

Inheritance
object
ScaledText
Implements
IText
IRecalculable
IDrawable
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledText : IText, IRecalculable, IDrawable

Constructors

View Source

ScaledText(PointF, string)

Creates a text with the specified options.

Declaration
public ScaledText(PointF pos, string text)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

View Source

ScaledText(PointF, string, float)

Creates a text with the specified options.

Declaration
public ScaledText(PointF pos, string text, float scale)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

float scale

The scale of the text.

ScaledText(PointF, string, float, Font)

Creates a text with the specified options

Declaration
public ScaledText(PointF pos, string text, float scale, Font font)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

float scale

The scale of the text.

Font font

The font to use.

View Source

ScaledText(PointF, string, float, Font)

Creates a text with the specified options

Declaration
public ScaledText(PointF pos, string text, float scale, Font font)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

float scale

The scale of the text.

Font font

The font to use.

View Source

ScaledText(PointF, string, float, Font)

Creates a text with the specified options

Declaration
public ScaledText(PointF pos, string text, float scale, Font font)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

float scale

The scale of the text.

Font font

The font to use.

View Source

ScaledText(PointF, string, float, Font)

Creates a text with the specified options

Declaration
public ScaledText(PointF pos, string text, float scale, Font font)
Parameters
Type Name Description
PointF pos

The position where the text should be located.

string text

The text to show.

float scale

The scale of the text.

Font font

The font to use.

Properties

View Source

Alignment

The alignment of the text.

Declaration
public Alignment Alignment { get; set; }
Property Value
Type Description
Alignment
View Source

Color

The color of the text.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
View Source

Font

The game font to use.

Declaration
public Font Font { get; set; }
Property Value
Type Description
Font
View Source

LineCount

The number of lines used by this text.

Declaration
public int LineCount { get; }
Property Value
Type Description
int
View Source

LineHeight

The relative height of each line in the text.

Declaration
public float LineHeight { get; }
Property Value
Type Description
float
View Source

Outline

If the test should have an outline.

Declaration
public bool Outline { get; set; }
Property Value
Type Description
bool
View Source

Position

The position of the text.

Declaration
public PointF Position { get; set; }
Property Value
Type Description
PointF
View Source

Scale

The scale of the text.

Declaration
public float Scale { get; set; }
Property Value
Type Description
float
View Source

Shadow

If the text should have a drop down shadow.

Declaration
public bool Shadow { get; set; }
Property Value
Type Description
bool
View Source

Text

The text to draw.

Declaration
public string Text { get; set; }
Property Value
Type Description
string
View Source

Width

The width that the text takes from the screen.

Declaration
public float Width { get; }
Property Value
Type Description
float
View Source

WordWrap

The distance from the start position where the text will be wrapped into new lines.

Declaration
public float WordWrap { get; set; }
Property Value
Type Description
float

Methods

View Source

Draw()

Draws the text on the screen.

Declaration
public void Draw()
View Source

Recalculate()

Recalculates the size, position and word wrap of this item.

Declaration
public void Recalculate()

Implements

IText
IRecalculable
IDrawable
  • View Source
In this article
Back to top Generated by DocFX