Class ToolTip
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Class used to define tooltips attached to the RHF cursor.
Set via the ToolTip property of the given UI element, or registered to RegisterToolTip(ToolTip) manually in HandleInput() every input tick.
The first tooltip registered takes precedence.
public class ToolTip
- Inheritance
-
ToolTip
Constructors
ToolTip()
public ToolTip()
Fields
DefaultBG
public static readonly Color DefaultBG
Field Value
DefaultText
public static readonly GlyphFormat DefaultText
Field Value
GetToolTipFunc
Callback delegate used by the API to retrieve tooltip information
public readonly Func<MyTuple<List<MyTuple<StringBuilder, MyTuple<byte, float, Vector2I, Color>>>, Color?>> GetToolTipFunc
Field Value
OrangeWarningBG
public static readonly Color OrangeWarningBG
Field Value
RedWarningBG
public static readonly Color RedWarningBG
Field Value
bgColor
Color of the text background
public Color? bgColor
Field Value
text
Text to be assigned to the tooltip. Multiline tooltips are allowed, but are not wrapped.
public RichText text
Field Value
Operators
implicit operator ToolTip(RichText)
public static implicit operator ToolTip(RichText text)
Parameters
textRichText
Returns
implicit operator ToolTip(string)
public static implicit operator ToolTip(string text)
Parameters
textstring