Class ScaledText
A text string.
Inherited Members
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledText : IText, IRecalculable, IDrawable
Constructors
View SourceScaledText(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. |
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. |
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. |
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. |
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 SourceAlignment
The alignment of the text.
Declaration
public Alignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment |
Color
The color of the text.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Font
The game font to use.
Declaration
public Font Font { get; set; }
Property Value
Type | Description |
---|---|
Font |
LineCount
The number of lines used by this text.
Declaration
public int LineCount { get; }
Property Value
Type | Description |
---|---|
int |
LineHeight
The relative height of each line in the text.
Declaration
public float LineHeight { get; }
Property Value
Type | Description |
---|---|
float |
Outline
If the test should have an outline.
Declaration
public bool Outline { get; set; }
Property Value
Type | Description |
---|---|
bool |
Position
The position of the text.
Declaration
public PointF Position { get; set; }
Property Value
Type | Description |
---|---|
PointF |
Scale
The scale of the text.
Declaration
public float Scale { get; set; }
Property Value
Type | Description |
---|---|
float |
Shadow
If the text should have a drop down shadow.
Declaration
public bool Shadow { get; set; }
Property Value
Type | Description |
---|---|
bool |
Text
The text to draw.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Width
The width that the text takes from the screen.
Declaration
public float Width { get; }
Property Value
Type | Description |
---|---|
float |
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 SourceDraw()
Draws the text on the screen.
Declaration
public void Draw()
Recalculate()
Recalculates the size, position and word wrap of this item.
Declaration
public void Recalculate()