Sweet Alert For C2 (Plugins)

Discuss Scirra's 2D Asset Store

Post » Tue Dec 01, 2015 6:11 pm



Sweet Alert For C2 — Now for sale in the Scirra Store!
https://www.scirra.com/store/construct2-plugins/sweet-alert-for-c2-1714

Alert box, OK/Cancel, Options, Text entry pop up, they are all here and they works across all platforms. A bridge to the sweet alert project from github.



Use this topic to leave comments, ask questions and talk about Sweet Alert For C2
B
10
S
2
Posts: 21
Reputation: 665

Post » Tue Dec 15, 2015 3:49 pm

Hi, does this plugin works on mobile?

tx.
B
9
S
2
Posts: 52
Reputation: 1,360

Post » Wed Dec 16, 2015 6:18 pm

Yes. I have tested it in iOS.
B
10
S
2
Posts: 21
Reputation: 665

Post » Wed Jan 06, 2016 4:09 pm

Hi, I just bought this plugin and it's great! But I have one problem: I have sprite buttons under the prompt and when I click on the prompt it "clicks-through" and registers on the sprite button also.

I could fix this if I had a condition of "prompt is visible" or something similar so I can disable my buttons while the prompt exists.

Can you fix this?

Edit: Another fix would be "On cancel clicked"
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Thu Jan 14, 2016 1:18 am

I will work on this and see how this can be fixed easily for your.
For now, please use this workaround. Whenever you are creating an alert, first create a full screen sprite with no functions and when alert is clicked, remove that also.

Such a background object is built-in in the alert. Let me see why is this not working. Can you please give me more info like are you facing this in both browsers as well as devices? A sample capx will help too!
B
10
S
2
Posts: 21
Reputation: 665

Post » Mon Jan 25, 2016 4:35 pm

hi there, bought this, works a treat, just wondering how I'd be able to query input?
I'm using PKP_SweetAlert: Input Data

player enter something there, where does it go, I can't see anything obvious in the debugger.

Thanks in advance. (not sure you'll get a notification so I'll send you a quick email)
B
7
S
1
Posts: 10
Reputation: 554

Post » Tue Jan 26, 2016 6:16 am

Have you tried the expression 'Input from Prompt'? It should have the input field value saved. You can check for it in 'prompt input data read' condition. Kindly do and let me know if that works for you. I am on my mac and will need a couple of days to swing back to this. If you have any issues, I will get that done by the end of this week.
B
10
S
2
Posts: 21
Reputation: 665

Post » Wed Jan 27, 2016 10:42 am

Hey Praharsh thanks for the swift reply, that works, but it wasn't immediately obvious sadly.

Two other related questions, which I'm also struggling with.

1. If there were two different SweetAlert:Input Data prompts.

How do you differentiate their input data

PKP_SweetAlert.inPutFromPrompt in the field will always return the last input.
I tried PKP_SweetAlert(0).inPutFromPrompt
but that made no difference.
any ideas or is this not possible.

2. is there a way of knowing the data has been input, some sort of callback when the user submits data, so I don't constantly have to be monitoring it?

Thanks
Shay
B
7
S
1
Posts: 10
Reputation: 554

Post » Sat Jan 30, 2016 6:39 am

Hi Shay,

Glad that it worked for you! And thanks much for the feedback, I have added a FAQ with your first question.

From your latest question,
1) Sweet Alert's Prompt is designed with a serial input mode, one data at a time. Having multiple input field will get very confusing as the requirement will vary from user to user. If you want to differentiate between the prompts themselves, you can associate a 'Tag' with them and then check for the tag in your trigger.

2) You do not need to monitor the field value at all. Once the user hit's the confirm button, the 'input read' condition will trigger. This is designed to happen once the user is done with entering the data.

Kindly let me know if you have any further questions.
B
10
S
2
Posts: 21
Reputation: 665

Post » Thu May 12, 2016 8:22 am

Hi there, would you be able to provide a tutorial on how to use this?
B
34
S
19
G
3
Posts: 22
Reputation: 4,437

Next

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 2 guests