Class ToolTip
Displays popup tooltip text when mouse hovers over component for an amount of time. Designed to be shared by any number of components inside the same canvas area. Use \r escape character to create multi-row tooltips.
Inherited Members
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class ToolTip : BaseScreenComponent, IDisposable
Constructors
| Improve this Doc View SourceToolTip()
Declaration
public ToolTip()
Properties
| Improve this Doc View SourceFont
Gets or sets font used inside tooltip.
Declaration
public DaggerfallFont Font { get; set; }
Property Value
Type | Description |
---|---|
DaggerfallFont |
MouseOffset
Gets or sets tooltip draw position relative to mouse.
Declaration
public Vector2 MouseOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
TextColor
Gets or sets tooltip text colour.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ToolTipDelay
Sets delay time in seconds before tooltip is displayed.
Declaration
public float ToolTipDelay { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceCloneSettings(ToolTip)
Copies key setting from another tooltip.
Declaration
public void CloneSettings(ToolTip from)
Parameters
Type | Name | Description |
---|---|---|
ToolTip | from |
Draw()
Declaration
public override void Draw()
Overrides
| Improve this Doc View SourceDraw(String)
Flags tooltip to be drawn at end of UI update.
Declaration
public void Draw(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to render inside tooltip. |
Update()
Declaration
public override void Update()