M MY Multiplayer: Wiki
Lado
Tipo

createTrayNotification

Cliente

Muestra una notificación del sistema en la bandeja de Windows, mientras el juego no tiene el foco.

bool createTrayNotification(string text [, string icon = "default", bool sound = true])

Parámetros

NombreTipoDescripción
textstringEl texto de la notificación.
iconstring"default", "info", "warning" o "error".por defecto "default"
soundboolSi la notificación reproduce el sonido del sistema.por defecto true

Retorno

true si la notificación se mostró. false si la ventana del juego tiene el foco o se mostró otra notificación hace menos de 30 segundos.

Ejemplo

addEvent("onRaceStart", true)
addEventHandler("onRaceStart", root, function()
    createTrayNotification("¡La carrera está comenzando!", "info")
end)

Ver también