Notifications (368)
Moderators: Scenario Moderators, Plugin Moderators
- TheFennekin
- Neighborhood fox
- Posts: 2728
- Joined: 24 Aug 2017, 11:17
- Location: Wandering around
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Lobby
- Developer
- Posts: 3719
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Notifications (368)
It will be fixed, and it will be renamed to
@TheFennekin I omitted the quotes as some json standards allow it for names without spaces. However, it's better to use them unless you're lazy 
Code: Select all
"show once":true

- JustAnyone
- Developer
- Posts: 3579
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Notifications (368)
Wait. How do you remove navigation button.
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Notifications (368)
In case you wonder: the "z":1 puts a location button on the notification that navigates the user to the building that spawned it.
- JustAnyone
- Developer
- Posts: 3579
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Notifications (368)
I already figured out.
With the new version something cool is coming for notifications.
With the new version something cool is coming for notifications.
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Notifications (368)
How to make your notifications into a question
To make a notification into a question add the following code to your JSON
Default is false
Next add a function for what will happen depending on the response
For example:
Ok fun is activated when the user pressed ok
cancel fun is activated when the user pressed cancel
By writing the following nothing will happen when pressed
Here is an example JSON
To make a notification into a question add the following code to your JSON
Code: Select all
"question":true,
Next add a function for what will happen depending on the response
For example:
Code: Select all
"ok fun":[{"actions":[{"type":"toast", "id":"I'm a toast!"}]
"cancel fun":[]
cancel fun is activated when the user pressed cancel
By writing the following nothing will happen when pressed
Code: Select all
"cancel/ok fun":[]
Code: Select all
[{
"id":"question_notify",
"type":"notification",
"frames":[{"bmp":"person.png"}],
"text":"would you like to see a toast?",
"question":true,
"ok fun":[{"actions":[{"type":"toast", "id":"I'm a toast!"}],
"cancel fun":[]
}]
- AngelPandaEarth
- Small-town resident
- Posts: 32
- Joined: 11 Jun 2018, 04:14
- Location: United States
- Plugins: Showcase Store
- Contact:
-
Plugin Creator
Platform
- CommanderABab
- AB
- Posts: 11240
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Notifications (368)
Code: Select all
"actions":[{}]
Code: Select all
{}
- KINGTUT10101
- 1,000,000 inhabitants
- Posts: 2227
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Notifications (368)
How can I add those optional tags like "show once" to a notification shown via Lua?
- JustAnyone
- Developer
- Posts: 3579
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
- KINGTUT10101
- 1,000,000 inhabitants
- Posts: 2227
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Notifications (368)
That's helpful...
- JustAnyone
- Developer
- Posts: 3579
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
- KINGTUT10101
- 1,000,000 inhabitants
- Posts: 2227
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Notifications (368)
You sly dog 
