image in export folder

For developers using the Construct 2 Javascript SDK

Post » Sun Jan 15, 2012 1:03 am

For my plugin, I would like to have some defaults images (for ui, as arrow, etc.) but I would like that when the user will export (or preview) his project, images will automatically put in the exported project folder.

Hopefully I'm clear ;)
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sun Jan 15, 2012 1:56 am

I don't think it's the best solution though.
I prefer having images in a different folder on export (just a matter of taste).

I wouldn't mind having another folder "UI" for the images of your plugin if/when I use it, but I'd find it less "clean" if I had to put up with said images in my main folder.

Again, it is just a matter of taste.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jan 15, 2012 5:56 am

I'd also like to be able to pick the folder included files get exported to.

For now, the only way I know (other than remote loading which has its own problems) is the dependency property.

See the facebook plugin edittime for a usage example.
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Sun Jan 15, 2012 1:17 pm

Thanks both but I wasn't clear.
I don't find my words in english, sorry.

I would like add in my plugins folder some default images (for ui).
Then, I would like construct 2 picks these images from my plugin folder and add them to the exported folder (and if it possible, when user preview his project too).

In fact, that's the same thing that dependency property does. It picks the dependency file and use it to preview/export.

If I'm not clear, I'll write a french message to Kyatric ;)
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sun Jan 15, 2012 7:52 pm

I think it cleared it. I was only thinking about the export perspective and how to store images at that point.
But indeed, for preview, etc... it would need an accessible folder.
In the end, why simply not add the image in the folder of the plugin itself (along the 4 usual .js files)

That could very well be the simpler, wouldn't it ? Or maybe even a folder in that folder to keep things organized.
Thoughts ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests