A class that lets you post temporary messages to the screen. If you use this class your messages will automatically have the same style as regular in-game messages. More...
Public Member Functions | |
ScreenMessages () | |
Static Public Member Functions | |
static void | PostScreenMessage (ScreenMessage msg) |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message. More... | |
static ScreenMessage | PostScreenMessage (string message) |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message. More... | |
static ScreenMessage | PostScreenMessage (string message, float duration) |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message. More... | |
static ScreenMessage | PostScreenMessage (string message, float duration, ScreenMessageStyle style) |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message. More... | |
static void | RemoveMessage (ScreenMessage msg) |
Remove a currently active message from the screen. More... | |
Public Attributes | |
List< ScreenMessage > | activeMessages |
The set of currently active screen messages. This is a non-static member, but you can get a reference to the ScreenMessages instance via More... | |
GUIStyle[] | textStyles |
bool | useRenderQueue |
A class that lets you post temporary messages to the screen. If you use this class your messages will automatically have the same style as regular in-game messages.
ScreenMessages.ScreenMessages | ( | ) |
|
static |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message.
msg | The message to post |
|
static |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message.
message | The message to post. |
|
static |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message.
message | The message to post |
duration | How long the message should remain on the screen, in seconds. |
|
static |
Post a temporary message to the screen. Examples of screen messages are the "Warp = {number}x" message and the "Quicksaving..." message.
message | The message to post |
duration | How long the message should remain on the screen, in seconds. |
style | Which style of screen message to post–for instance, should it by like the warp message, the quicksaving message, etc. |
|
static |
Remove a currently active message from the screen.
msg | The message to remove |
List<ScreenMessage> ScreenMessages.activeMessages |
The set of currently active screen messages. This is a non-static member, but you can get a reference to the ScreenMessages instance via
ScreenMessages sm = (ScreenMessages)GameObject.FindObjectOfType(typeof(ScreenMessages));
GUIStyle [] ScreenMessages.textStyles |
bool ScreenMessages.useRenderQueue |