Notifications (368)
Moderator: Plugin Moderators
- TheFennekin
- Inhabitant of a Solar System
- Reactions:
- Posts: 1866
- Joined: Thu Aug 24, 2017 11:17
- Location: In your heart
- Plugins: Show
- Version: Beta
- Phone model: Samsung
Re: Notifications (368)
Maybe @KoalaGuy's problem is not to use "once": true and use once: true just like @Lobby said in the codes.
- Lobby
- Developer
- Reactions:
- Posts: 3384
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
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
- An important pickle
- Reactions:
- Posts: 2701
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
- Phone model: Nokia 3310
Re: Notifications (368)
Wait. How do you remove navigation button.
- Ølsken
- Former Bearbear65
- Reactions:
- Posts: 4791
- Joined: Fri Feb 10, 2017 14:53
- Plugins: Show
- Version: Beta
- Phone model: Samsung S10
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
- An important pickle
- Reactions:
- Posts: 2701
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
- Phone model: Nokia 3310
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.
- Ølsken
- Former Bearbear65
- Reactions:
- Posts: 4791
- Joined: Fri Feb 10, 2017 14:53
- Plugins: Show
- Version: Beta
- Phone model: Samsung S10
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
- Villager
- Reactions:
- Posts: 21
- Joined: Mon Jun 11, 2018 4:14
- Location: N. Chesterfield, Virginia, USA
- Plugins: Show
- Version: Beta
- Phone model: SM Galaxy J3 Prime
- Contact:
Re: Notifications (368)
?
~AngelPandaEarth,
Weird, unique, imaginative, and creative. I'm an American male, living in God's image.
Weird, unique, imaginative, and creative. I'm an American male, living in God's image.
- CommanderABab
- AB
- Reactions:
- Posts: 7931
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Notifications (368)
Code: Select all
"actions":[{}]
Code: Select all
{}
777!🆎️
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 1943
- Joined: Thu Jul 07, 2016 22:50
- Location: 'Merica
- Plugins: Show
- Version: Beta
- Phone model: Moto x4
Re: Notifications (368)
How can I add those optional tags like "show once" to a notification shown via Lua?
All of my plug-ins, maps and more:
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
- JustAnyone
- An important pickle
- Reactions:
- Posts: 2701
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
- Phone model: Nokia 3310
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 1943
- Joined: Thu Jul 07, 2016 22:50
- Location: 'Merica
- Plugins: Show
- Version: Beta
- Phone model: Moto x4
Re: Notifications (368)
That's helpful...
All of my plug-ins, maps and more:
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
- JustAnyone
- An important pickle
- Reactions:
- Posts: 2701
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
- Phone model: Nokia 3310
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 1943
- Joined: Thu Jul 07, 2016 22:50
- Location: 'Merica
- Plugins: Show
- Version: Beta
- Phone model: Moto x4
Re: Notifications (368)
You sly dog 

All of my plug-ins, maps and more:
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
https://sites.google.com/site/theotownmaps/home
YouTube channel:
https://m.youtube.com/c/kingtut-101
Who is online
Users browsing this forum: No registered users and 2 guests