Code: Select all
{
"id":"$notify_test00",
"type":"notification",
"text":"Hi, I'm a test notification!",
"frames":[{"steal":"$anim_people_source01","frame":14}] // Use this if you want to show one of the built in people in your message
}
Code: Select all
{
"id":"$notification_test_building00",
"type":"decoration",
"width":1,
"height":1,
"frames":[{"x":480,"y":0,"w":32,"h":16}],
"on click fun":[
{
"actions":[{"type":"notify","id":"$notify_test00","z":1}] // Let's trigger the notification if the player taps on this building
}
]
}
There are optional things you can define in a notification:
Code: Select all
"show once":true, // The notification will be displayed only one time (per city)
"immersive":true, // The notification will be displayed in an own window
"important":true, // The notification will be marked as important (like fire notifications)
"closeable":false // Removes the close button from the notification. Not really useful...