Add support for font size and color in Header attribute
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user