C# Class GarrysModLuaShared.notification

Used to display notifications on the screen (mid-right).
显示文件 Open project: OmegaExtern/gmod-csharp-binary-module

Public Methods

Method Description
AddLegacy ( LuaState luaState, string text, NOTIFY notifyType, double length ) : void

Adds a standard notification to your screen.

AddProgress ( LuaState luaState, object uniqueId, string text ) : void

Adds a notification with an animated progress bar.

Kill ( LuaState luaState, object uniqueId ) : void

Removes the notification after 0.8 seconds.

Method Details

AddLegacy() public static method

Adds a standard notification to your screen.
public static AddLegacy ( LuaState luaState, string text, NOTIFY notifyType, double length ) : void
luaState LuaState Pointer to lua_State struct.
text string The string to display.
notifyType NOTIFY Determines the method for displaying the notification.
length double The number of seconds to display the notification for.
return void

AddProgress() public static method

Adds a notification with an animated progress bar.
public static AddProgress ( LuaState luaState, object uniqueId, string text ) : void
luaState LuaState Pointer to lua_State struct.
uniqueId object Can be any type. It's used as an index.
text string The text to show.
return void

Kill() public static method

Removes the notification after 0.8 seconds.
public static Kill ( LuaState luaState, object uniqueId ) : void
luaState LuaState Pointer to lua_State struct.
uniqueId object The unique ID of the notification.
return void