Click or drag to resize
MyAPIUtilitiesIMyUtilitiesCreateNotification Method

[This is preliminary documentation and is subject to change.]

Create a notification object. The object needs to have Show() called on it to be shown. On top of that you can dynamically change the text, font and adjust the time to live.

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Game (in Sandbox.Game.dll) Version: 0.1.5991.32293
Syntax
C#
IMyHudNotification IMyUtilities.CreateNotification(
	string message,
	int disappearTimeMs,
	MyFontEnum font
)

Parameters

message
Type: SystemString

[Missing <param name="message"/> documentation for "M:Sandbox.ModAPI.MyAPIUtilities.VRage#Game#ModAPI#IMyUtilities#CreateNotification(System.String,System.Int32,VRage.Game.MyFontEnum)"]

disappearTimeMs
Type: SystemInt32

[Missing <param name="disappearTimeMs"/> documentation for "M:Sandbox.ModAPI.MyAPIUtilities.VRage#Game#ModAPI#IMyUtilities#CreateNotification(System.String,System.Int32,VRage.Game.MyFontEnum)"]

font
Type: VRage.GameMyFontEnum

[Missing <param name="font"/> documentation for "M:Sandbox.ModAPI.MyAPIUtilities.VRage#Game#ModAPI#IMyUtilities#CreateNotification(System.String,System.Int32,VRage.Game.MyFontEnum)"]

Return Value

Type: IMyHudNotification
The notification object.

Implements

IMyUtilitiesCreateNotification(String, Int32, MyFontEnum)
See Also