Notifications (368)

Any information about the fun attribute is given here.

Moderator: Plugin Moderators

User avatar
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

Platform

Plugin Creator

Re: Notifications (368)

#21

Post by TheFennekin » Sun Nov 05, 2017 12: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.
Don't even blink

User avatar
Lobby
Developer
Reactions:
Posts: 3377
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Notifications (368)

#22

Post by Lobby » Sun Nov 05, 2017 12: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 :)
...Have a nice stay

Online
User avatar
JustAnyone
An important pickle
Reactions:
Posts: 2695
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Notifications (368)

#23

Post by JustAnyone » Mon Dec 18, 2017 19:33

Wait. How do you remove navigation button.

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 4782
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: Notifications (368)

#24

Post by Ølsken » Fri May 04, 2018 12:14

JustAnyone wrote:
Mon Dec 18, 2017 19: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.
ImageJust my opinion

Online
User avatar
JustAnyone
An important pickle
Reactions:
Posts: 2695
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Notifications (368)

#25

Post by JustAnyone » Fri May 04, 2018 14:05

I already figured out.
With the new version something cool is coming for notifications.

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 4782
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: Notifications (368)

#26

Post by Ølsken » Thu May 24, 2018 4: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":[]
}]
ImageJust my opinion

User avatar
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:

Platform

Plugin Creator

Re: Notifications (368)

#27

Post by AngelPandaEarth » Thu Apr 04, 2019 22:16

?
Attachments
Screenshot_20190404-161533.png
~AngelPandaEarth,
Weird, unique, imaginative, and creative. I'm an American male, living in God's image.

User avatar
CommanderABab
AB
Reactions:
Posts: 7913
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Notifications (368)

#28

Post by CommanderABab » Thu Apr 04, 2019 23:55

Code: Select all

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

Code: Select all

{}
.
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
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

Platform

Plugin Creator

Re: Notifications (368)

#29

Post by KINGTUT10101 » Sat Oct 26, 2019 19:58

How can I add those optional tags like "show once" to a notification shown via Lua?

Online
User avatar
JustAnyone
An important pickle
Reactions:
Posts: 2695
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Notifications (368)

#30

Post by JustAnyone » Sat Oct 26, 2019 22:09

Yes.

User avatar
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

Platform

Plugin Creator

Re: Notifications (368)

#31

Post by KINGTUT10101 » Sat Oct 26, 2019 22:20

That's helpful...

Online
User avatar
JustAnyone
An important pickle
Reactions:
Posts: 2695
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Notifications (368)

#32

Post by JustAnyone » Sat Oct 26, 2019 23:47


User avatar
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

Platform

Plugin Creator

Re: Notifications (368)

#33

Post by KINGTUT10101 » Sun Oct 27, 2019 3:02

You sly dog :bt

Post Reply Previous topicNext topic

Return to “Fun attribute”

Who is online

Users browsing this forum: No registered users and 0 guests