Notification <BadgeClient/>
A library to display notification on the player screen client side
JO Functions > jo.notif.left()
<!-- @include: ./slots/headers.md#client|jo.notif.left -->
Notification on the left with title, icon, color and sound <br>
<!-- @include: ./slots/descriptions.md#client|jo.notif.left -->
JO Functions > jo.notif.left() > Syntax
jo.notif.left(title, text, dict, icon, color, duration, soundset_ref, soundset_name)
JO Functions > jo.notif.left() > Parameters
title : string
The title of the notification
text : string
The text of the notification
dict : string
The dictionnary of the icon
icon : string
The name of the icon
color : string <BadgeOptional />
The color of the text <br> default : "COLOR_WHITE"
duration : integer <BadgeOptional />
The duration of the notification in ms <br> default: 3000
soundset_ref : string <BadgeOptional />
The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"
soundset_name : string <BadgeOptional />
The name of the soundset <br> default : "Transaction_Positive"
<!-- @include: ./slots/examples.md#client|jo.notif.left -->
<!-- @include: ./slots/footers.md#client|jo.notif.left -->
JO Functions > jo.notif.right()
<!-- @include: ./slots/headers.md#client|jo.notif.right -->
Notification on the right with icon, color and sound <br>
<!-- @include: ./slots/descriptions.md#client|jo.notif.right -->
JO Functions > jo.notif.right() > Syntax
jo.notif.right(text, dict, icon, color, duration, soundset_ref, soundset_name)
JO Functions > jo.notif.right() > Parameters
text : string
The text of the notification
dict : string
The dictionnary of the icon
icon : string
The name of the icon
color : string <BadgeOptional />
The color of the text <br> default : "COLOR_WHITE"
duration : integer <BadgeOptional />
The duration of the notification in ms <br> default: 3000
soundset_ref : string <BadgeOptional />
The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"
soundset_name : string <BadgeOptional />
The name of the soundset <br> default : "Transaction_Positive"
<!-- @include: ./slots/examples.md#client|jo.notif.right -->
<!-- @include: ./slots/footers.md#client|jo.notif.right -->
JO Functions > jo.notif.rightError()
<!-- @include: ./slots/headers.md#client|jo.notif.rightError -->
A function to display an error notification <br>
<!-- @include: ./slots/descriptions.md#client|jo.notif.rightError -->
JO Functions > jo.notif.rightError() > Syntax
jo.notif.rightError(text)
JO Functions > jo.notif.rightError() > Parameters
text : string
The text of the notification
JO Functions > jo.notif.rightError() > Return Value
Type : boolean
Always return
false
<!-- @include: ./slots/examples.md#client|jo.notif.rightError -->
<!-- @include: ./slots/footers.md#client|jo.notif.rightError -->
JO Functions > jo.notif.rightSuccess()
<!-- @include: ./slots/headers.md#client|jo.notif.rightSuccess -->
A function to display a successful notification <br>
<!-- @include: ./slots/descriptions.md#client|jo.notif.rightSuccess -->
JO Functions > jo.notif.rightSuccess() > Syntax
jo.notif.rightSuccess(text)
JO Functions > jo.notif.rightSuccess() > Parameters
text : string
The text of the notification
JO Functions > jo.notif.rightSuccess() > Return Value
Type : boolean
Always return
true
<!-- @include: ./slots/examples.md#client|jo.notif.rightSuccess -->
<!-- @include: ./slots/footers.md#client|jo.notif.rightSuccess -->
JO Functions > jo.notif.simpleTop()
<!-- @include: ./slots/headers.md#client|jo.notif.simpleTop -->
Notification on the top with big title and subtitle (native mission start/end) <br>
<!-- @include: ./slots/descriptions.md#client|jo.notif.simpleTop -->
JO Functions > jo.notif.simpleTop() > Syntax
jo.notif.simpleTop(title, subtitle, duration)
JO Functions > jo.notif.simpleTop() > Parameters
title : string
The title of the notification
subtitle : string
The text of the notification
duration : integer <BadgeOptional />
The duration of the notification in ms <br> default : 3000
<!-- @include: ./slots/examples.md#client|jo.notif.simpleTop -->
<!-- @include: ./slots/footers.md#client|jo.notif.simpleTop -->
JO Functions > jo.notif.right() > Parameters
text : string
The text of the notification
dict : string <BadgeOptional />
The dictionnary of the icon
icon : string <BadgeOptional />
The name of the icon
color : string <BadgeOptional />
The color of the text <br> default : "COLOR_WHITE"
duration : integer <BadgeOptional />
The duration of the notification in ms <br> default: 3000
soundset_ref : string <BadgeOptional />
The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"
soundset_name : string <BadgeOptional />
The name of the soundset <br> default : "Transaction_Positive"
<!-- @include: ./slots/examples.md#client|jo.notif.right -->
<!-- @include: ./slots/footers.md#client|jo.notif.right -->