C# Класс GarrysModLuaShared.notification

Used to display notifications on the screen (mid-right).
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddLegacy() публичный статический Метод

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.
Результат void

AddProgress() публичный статический Метод

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.
Результат void

Kill() публичный статический Метод

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.
Результат void