Skip to content

Class LemonUI::Elements::ScaledText

ClassList > LemonUI > Elements > ScaledText

A text string.

Inherits the following classes: LemonUI::Elements::IText

Public Properties

Type Name
property Alignment Alignment
The alignment of the text.
property Color Color
The color of the text.
property Font Font
The game font to use.
property int LineCount
The number of lines used by this text.
property float LineHeight
The relative height of each line in the text.
property bool Outline
If the test should have an outline.
property PointF Position
The position of the text.
property float Scale
The scale of the text.
property bool Shadow
If the text should have a drop down shadow.
property string?? Text
The text to draw.
property float Width
The width that the text takes from the screen.
property float WordWrap
The distance from the start position where the text will be wrapped into new lines.

Public Properties inherited from LemonUI::Elements::IText

See LemonUI::Elements::IText

Type Name
property Alignment Alignment
The alignment of the text.
property Color Color
The color of the text.
property Font Font
The game font to use.
property int LineCount
The number of lines used by this text.
property float LineHeight
The height of each line of text.
property bool Outline
If the text should have an outline.
property PointF Position
The position of the text.
property float Scale
The scale of the text.
property bool Shadow
If the text should have a drop down shadow.
property string Text
The text to draw.
property float Width
The width that the text takes from the screen.
property float WordWrap
The maximum distance from X where the text would wrap into a new line.

Public Functions

Type Name
void Draw ()
Draws the text on the screen.
void Recalculate ()
Recalculates the size, position and word wrap of this item.
ScaledText (PointF pos, string text)
Creates a text with the specified options.
ScaledText (PointF pos, string text, float scale)
Creates a text with the specified options.
ScaledText (PointF pos, string text, float scale, Font font)
Creates a text with the specified options

Public Functions inherited from LemonUI::IRecalculable

See LemonUI::IRecalculable

Type Name
void Recalculate ()
Recalculates the values.

Public Functions inherited from LemonUI::IDrawable

See LemonUI::IDrawable

Type Name
void Draw ()
Draws the item on the screen.

Public Properties Documentation

property Alignment

Alignment LemonUI.Elements.ScaledText.Alignment;

property Color

Color LemonUI.Elements.ScaledText.Color;

property Font

Font LemonUI.Elements.ScaledText.Font;

property LineCount

int LemonUI.Elements.ScaledText.LineCount;

property LineHeight

float LemonUI.Elements.ScaledText.LineHeight;

property Outline

bool LemonUI.Elements.ScaledText.Outline;

property Position

PointF LemonUI.Elements.ScaledText.Position;

property Scale

float LemonUI.Elements.ScaledText.Scale;

property Shadow

bool LemonUI.Elements.ScaledText.Shadow;

property Text

string?? LemonUI.Elements.ScaledText.Text;

property Width

float LemonUI.Elements.ScaledText.Width;

property WordWrap

float LemonUI.Elements.ScaledText.WordWrap;

Public Functions Documentation

function Draw

inline void LemonUI::Elements::ScaledText::Draw () 

Implements LemonUI::IDrawable::Draw

function Recalculate

inline void LemonUI::Elements::ScaledText::Recalculate () 

Implements LemonUI::IRecalculable::Recalculate

function ScaledText [1/3]

Creates a text with the specified options.

inline LemonUI::Elements::ScaledText::ScaledText (
    PointF pos,
    string text
) 

Parameters:

  • pos The position where the text should be located.
  • text The text to show.

function ScaledText [2/3]

Creates a text with the specified options.

inline LemonUI::Elements::ScaledText::ScaledText (
    PointF pos,
    string text,
    float scale
) 

Parameters:

  • pos The position where the text should be located.
  • text The text to show.
  • scale The scale of the text.

function ScaledText [3/3]

Creates a text with the specified options

inline LemonUI::Elements::ScaledText::ScaledText (
    PointF pos,
    string text,
    float scale,
    Font font
) 

Parameters:

  • pos The position where the text should be located.
  • text The text to show.
  • scale The scale of the text.
  • font The font to use.

The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Elements/ScaledText.cs