Table of Contents

Class ToastStyle

Namespace
BSGameLib.UI.Toasts
Assembly
BSGameLib.UI.dll

How toasts look. Colors take anything a view's color attributes take, "{Resource id}" included, and are resolved when drawn - so a toast follows a theme change like a view does. Sizes are at a UI scale of 1 and grow with it.

public class ToastStyle
Inheritance
ToastStyle
Inherited Members

Properties

BackgroundColor

The colour of the toast's background.

public string BackgroundColor { get; set; }

Property Value

string

BorderColor

The colour of the border around the toast.

public string BorderColor { get; set; }

Property Value

string

BottomMargin

Distance from the bottom of the window to the lowest toast, at scale 1.

public float BottomMargin { get; set; }

Property Value

float

ErrorColor

The accent colour of an Error toast.

public string ErrorColor { get; set; }

Property Value

string

Font

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

public string Font { get; set; }

Property Value

string

FontSize

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

public float FontSize { get; set; }

Property Value

float

InfoColor

The accent colour of an Info toast.

public string InfoColor { get; set; }

Property Value

string

MaxWidth

Longest a toast may be before its text wraps, at scale 1.

public float MaxWidth { get; set; }

Property Value

float

ProgressColor

The accent colour of a Progress toast.

public string ProgressColor { get; set; }

Property Value

string

SuccessColor

The accent colour of a Success toast.

public string SuccessColor { get; set; }

Property Value

string

TextColor

The colour of the message.

public string TextColor { get; set; }

Property Value

string