How to limit the AddObjectParam ?

For developers using the Construct 2 Javascript SDK

Post » Fri May 16, 2014 10:37 am

I would like to limit the AddObjectParam to only select certain specified Plugins and not show all plugins on the selection screen. Is this possible?

For example. It makes no sense to select a "sprite" with my Plugin. I want to remove it to make everything more clear for the user.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 3:03 am

@Schoening

I thought you only could check the type at runtime, not in event sheet.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Mon May 19, 2014 7:38 am

@rexrainbow

Well.. that solves that I guess. Just have to tell people not to pick the wrong plugin type then :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 11:31 am

Unfortunately this is not currently supported, so yes you'll have to check at runtime.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests