Documentation

UI::ShowNotification

Function

void UI::ShowNotification(const string&in text, int time = 5000)

Shows a notification in the overlay.

string text

The text of the notification.

int time

The number of milliseconds this notification stays up for.

void UI::ShowNotification(const string&in header, const string&in text, int time = 5000)

Shows a notification in the overlay with an additional header.

string header

The header text of the notification.

string text

The text of the notification.

int time

The number of milliseconds this notification stays up for.

void UI::ShowNotification(const string&in header, const string&in text, const vec4&in colBackground, int time = 5000)

Shows a notification in the overlay with an additional header and background color.

string header

The header text of the notification.

string text

The text of the notification.

vec4 colBackground

The background color of the notification. Note that the alpha value is ignored.

int time

The number of milliseconds this notification stays up for.