Add support for font size and color in Header attribute

This commit is contained in:
Wojtek Figat
2022-04-15 19:16:50 +02:00
parent ddb9b327d4
commit 3c841b1be1
5 changed files with 28 additions and 4 deletions

View File

@@ -17,6 +17,16 @@ namespace FlaxEngine
/// </summary>
public string Text;
/// <summary>
/// The custom header font size.
/// </summary>
public int FontSize;
/// <summary>
/// The custom header color (as 32-bit uint).
/// </summary>
public uint Color;
private HeaderAttribute()
{
}
@@ -25,9 +35,13 @@ namespace FlaxEngine
/// Initializes a new instance of the <see cref="HeaderAttribute"/> class.
/// </summary>
/// <param name="text">The header text.</param>
public HeaderAttribute(string text)
/// <param name="fontSize">The header text font size (-1 to use default which is 14).</param>
/// <param name="color">The header color (as 32-bit uint, 0 to use default).</param>
public HeaderAttribute(string text, int fontSize = -1, uint color = 0)
{
Text = text;
FontSize = fontSize;
Color = color;
}
}
}