Table of Contents

Class LabelNode

Namespace
Fantas
Assembly
Fantas.dll

Node that contains a text

public class LabelNode : Node
Inheritance
LabelNode
Inherited Members

Constructors

LabelNode()

Creates an empty Label node

public LabelNode()

LabelNode(LabelNode)

Copy an label node

public LabelNode(LabelNode other)

Parameters

other LabelNode

LabelNode(string)

Creates label with text

public LabelNode(string text)

Parameters

text string

Properties

BlendMode

Set the blend operation for the Sprite node

public BlendMode BlendMode { get; set; }

Property Value

BlendMode

BottomColor

Label text bottom color

public Color BottomColor { get; set; }

Property Value

Color

BottomSecondaryColor

Label text secondary bottom color

public Color BottomSecondaryColor { get; set; }

Property Value

Color

Color

Label text color

public Color Color { get; set; }

Property Value

Color

ColorBlendFactor

Color blend factor (0-1)

public float ColorBlendFactor { get; set; }

Property Value

float

Font

Label font

public Font Font { get; set; }

Property Value

Font

HorizontalAlignmentMode

Text label horizontal alignment mode

public LabelHorizontalAlignmentMode HorizontalAlignmentMode { get; set; }

Property Value

LabelHorizontalAlignmentMode

MaxLength

Maximum number of character in the LabelNode

public int MaxLength { get; set; }

Property Value

int

Outline

Enable/Disable outline for Label

public bool Outline { get; set; }

Property Value

bool

OutlineBottomColor

Outline bottom color

public Color OutlineBottomColor { get; set; }

Property Value

Color

OutlineBottomSecondaryColor

Outline bottom secondary color

public Color OutlineBottomSecondaryColor { get; set; }

Property Value

Color

OutlineColor

Outline Color

public Color OutlineColor { get; set; }

Property Value

Color

OutlineColorBlendFactor

Outline color blend factor

public float OutlineColorBlendFactor { get; set; }

Property Value

float

OutlineDelta

Change the outline delta distance

public float OutlineDelta { get; set; }

Property Value

float

OutlineFlags

Change which sides has outline

public OutlinePosition OutlineFlags { get; set; }

Property Value

OutlinePosition

OutlineOffset

Change the offset distance for the outline (can be as shadow)

public Vector2 OutlineOffset { get; set; }

Property Value

Vector2

OutlineSecondaryColor

Outline secondary color

public Color OutlineSecondaryColor { get; set; }

Property Value

Color

OutlineTopColor

Outline top color

public Color OutlineTopColor { get; set; }

Property Value

Color

OutlineTopSecondaryColor

Outline top secondary color

public Color OutlineTopSecondaryColor { get; set; }

Property Value

Color

PreferredWidth

Preferred label width, when set the LabelNode will wrap the words

public float PreferredWidth { get; set; }

Property Value

float

SecondaryColor

Secondary Color (to be blend using ColorBlendFactor)

public Color SecondaryColor { get; set; }

Property Value

Color

Text

Label text

public string Text { get; set; }

Property Value

string

TopColor

Label text top color

public Color TopColor { get; set; }

Property Value

Color

TopSecondaryColor

Label text top secondary color

public Color TopSecondaryColor { get; set; }

Property Value

Color

VerticalAlignmentMode

Text label horizontal alignment mode

public LabelVerticalAlignmentMode VerticalAlignmentMode { get; set; }

Property Value

LabelVerticalAlignmentMode

Methods

Copy()

Copy label

protected override Node Copy()

Returns

Node