mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
24 lines
613 B
C#
24 lines
613 B
C#
using System;
|
|
|
|
namespace GlitchyEngine.Editor;
|
|
|
|
/// <summary>
|
|
/// Specifies the tooltip text that will be shown when the name of the field is hovered in the editor.
|
|
/// </summary>
|
|
public sealed class TooltipAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// The tooltip text.
|
|
/// </summary>
|
|
public string Tooltip { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="TooltipAttribute"/>.
|
|
/// </summary>
|
|
/// <param name="tooltip"><inheritdoc cref="Tooltip"/></param>
|
|
public TooltipAttribute(string tooltip)
|
|
{
|
|
Tooltip = tooltip;
|
|
}
|
|
}
|