Table of Contents

Class TooltipStyle

Namespace
BSGameLib.UI.Tooltips
Assembly
BSGameLib.UI.dll

How a tooltip looks. Colors take anything a view's color attributes take, "{Resource id}" included, and are resolved when drawn, as a toast's are. Sizes are at a UI scale of 1 and grow with it.

public class TooltipStyle
Inheritance
TooltipStyle
Inherited Members

Properties

BackgroundColor

The colour of the tooltip's background.

public string BackgroundColor { get; set; }

Property Value

string

BorderColor

The colour of the border around the tooltip.

public string BorderColor { get; set; }

Property Value

string

Font

A .ttf/.otf path; null uses the engine's built-in font.

public string Font { get; set; }

Property Value

string

FontSize

The size of the text, in pixels at a UI scale of 1.

public float FontSize { get; set; }

Property Value

float

MaxWidth

Longest a line may be before it wraps, at scale 1.

public float MaxWidth { get; set; }

Property Value

float

Offset

How far right of and below the pointer the tooltip's corner is, at scale 1.

public float Offset { get; set; }

Property Value

float

TextColor

The colour of the text.

public string TextColor { get; set; }

Property Value

string