Notifications (368)

Any information about the fun attribute is given here.
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Notifications (368)

Post by TheFennekin » 05 Nov 2017, 10:37

Maybe @KoalaGuy[Posts][PM]'s problem is not to use "once": true and use once: true just like @Lobby[Posts][PM] said in the codes.
Image
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Notifications (368)

Post by Lobby » 05 Nov 2017, 10:47

It will be fixed, and it will be renamed to

Code: Select all

"show once":true
@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 :)
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Notifications (368)

Post by JustAnyone » 18 Dec 2017, 17:33

Wait. How do you remove navigation button.
:pickle:
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Notifications (368)

Post by Bearbear76 » 04 May 2018, 10:14

JustAnyone wrote: 18 Dec 2017, 17:33 Wait. How do you remove navigation button.
In case you wonder: the "z":1 puts a location button on the notification that navigates the user to the building that spawned it.
Just my opinion
retired
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Notifications (368)

Post by JustAnyone » 04 May 2018, 12:05

I already figured out.
With the new version something cool is coming for notifications.
:pickle:
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Notifications (368)

Post by Bearbear76 » 24 May 2018, 02:27

How to make your notifications into a question

To make a notification into a question add the following code to your JSON

Code: Select all

"question":true,
Default is false

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":[]
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

Code: Select all

"cancel/ok fun":[]
Here is an example JSON

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":[]
}]
Just my opinion
retired
User avatar
AngelPandaEarth
Small-town resident
Reactions:
Posts: 29
Joined: 11 Jun 2018, 02:14
Location: United States
Plugins: Showcase Store

Plugin Creator

Platform

Re: Notifications (368)

Post by AngelPandaEarth » 04 Apr 2019, 20:16

?
You do not have the required permissions to view the files attached to this post.
~ AngelPandaEarth
🌀🎵
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Notifications (368)

Post by CommanderABab » 04 Apr 2019, 21:55

Code: Select all

"actions":[{}]
needs to be within a pair of

Code: Select all

{}
.
my avatar:
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2208
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Notifications (368)

Post by KINGTUT10101 » 26 Oct 2019, 17:58

How can I add those optional tags like "show once" to a notification shown via Lua?
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Notifications (368)

Post by JustAnyone » 26 Oct 2019, 20:09

Yes.
:pickle:
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2208
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Notifications (368)

Post by KINGTUT10101 » 26 Oct 2019, 20:20

That's helpful...
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Notifications (368)

Post by JustAnyone » 26 Oct 2019, 21:47

:pickle:
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2208
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Notifications (368)

Post by KINGTUT10101 » 27 Oct 2019, 01:02

You sly dog :bt