Class Hint
Useful class to save hint configs in a cleaner way.
public class Hint
- Inheritance
-
Hint
- Inherited Members
- Extension Methods
Constructors
Hint()
Initializes a new instance of the Hint class.
public Hint()
Hint(string, float, bool)
Initializes a new instance of the Hint class.
public Hint(string content, float duration = 3, bool show = true)
Parameters
content
stringThe content of the hint>.
duration
floatThe duration of the hint, in seconds.
show
boolWhether the hint should be shown.
Properties
Content
Gets or sets the hint content.
public string Content { get; set; }
Property Value
Duration
Gets or sets the hint duration.
public float Duration { get; set; }
Property Value
Show
Gets or sets a value indicating whether the hint should be shown.
public bool Show { get; set; }
Property Value
Methods
ToString()
Returns the hint in a human-readable format.
public override string ToString()
Returns
- string
A string containing hint-related data.