Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayAndLog ¶
DisplayAndLog creates a new notification and also logs the message to stdout.
Types ¶
type Notification ¶
Notification is a message that will be displayed on the screen during a certain time (number of frames).
type Severity ¶ added in v0.2.8
type Severity uint8
Severity represents the severity of a notification message. It will affect the color of the notification text in the UI.
const ( // Info is for informative message, when everything is fine Info Severity = iota // Success is for successful actions Success // Warning is also for informative messages, when something is not right // for example, if a menu entry has not been implemented. Warning // Error is for failed actions. For example, trying to load a game that // doesn't exists. Error )
Click to show internal directories.
Click to hide internal directories.