createTrayNotification
Cliente
Mostra uma notificação do sistema na bandeja do Windows, enquanto o jogo está sem foco.
bool createTrayNotification(string text [, string icon = "default", bool sound = true])
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| text | string | O texto da notificação. |
| icon | string | "default", "info", "warning" ou "error".padrão "default" |
| sound | bool | Se a notificação toca o som do sistema.padrão true |
Retorno
true se a notificação foi mostrada. false se a janela do jogo está em foco ou outra notificação foi mostrada há menos de 30 segundos.
Exemplo
addEvent("onRaceStart", true)
addEventHandler("onRaceStart", root, function()
createTrayNotification("A corrida está começando!", "info")
end)