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
BottomColor
Label text bottom color
public Color BottomColor { get; set; }
Property Value
BottomSecondaryColor
Label text secondary bottom color
public Color BottomSecondaryColor { get; set; }
Property Value
Color
Label text color
public Color Color { get; set; }
Property Value
ColorBlendFactor
Color blend factor (0-1)
public float ColorBlendFactor { get; set; }
Property Value
Font
Label font
public Font Font { get; set; }
Property Value
HorizontalAlignmentMode
Text label horizontal alignment mode
public LabelHorizontalAlignmentMode HorizontalAlignmentMode { get; set; }
Property Value
MaxLength
Maximum number of character in the LabelNode
public int MaxLength { get; set; }
Property Value
Outline
Enable/Disable outline for Label
public bool Outline { get; set; }
Property Value
OutlineBottomColor
Outline bottom color
public Color OutlineBottomColor { get; set; }
Property Value
OutlineBottomSecondaryColor
Outline bottom secondary color
public Color OutlineBottomSecondaryColor { get; set; }
Property Value
OutlineColor
Outline Color
public Color OutlineColor { get; set; }
Property Value
OutlineColorBlendFactor
Outline color blend factor
public float OutlineColorBlendFactor { get; set; }
Property Value
OutlineDelta
Change the outline delta distance
public float OutlineDelta { get; set; }
Property Value
OutlineFlags
Change which sides has outline
public OutlinePosition OutlineFlags { get; set; }
Property Value
OutlineOffset
Change the offset distance for the outline (can be as shadow)
public Vector2 OutlineOffset { get; set; }
Property Value
OutlineSecondaryColor
Outline secondary color
public Color OutlineSecondaryColor { get; set; }
Property Value
OutlineTopColor
Outline top color
public Color OutlineTopColor { get; set; }
Property Value
OutlineTopSecondaryColor
Outline top secondary color
public Color OutlineTopSecondaryColor { get; set; }
Property Value
PreferredWidth
Preferred label width, when set the LabelNode will wrap the words
public float PreferredWidth { get; set; }
Property Value
SecondaryColor
Secondary Color (to be blend using ColorBlendFactor)
public Color SecondaryColor { get; set; }
Property Value
Text
Label text
public string Text { get; set; }
Property Value
TopColor
Label text top color
public Color TopColor { get; set; }
Property Value
TopSecondaryColor
Label text top secondary color
public Color TopSecondaryColor { get; set; }
Property Value
VerticalAlignmentMode
Text label horizontal alignment mode
public LabelVerticalAlignmentMode VerticalAlignmentMode { get; set; }
Property Value
Methods
Copy()
Copy label
protected override Node Copy()