How do I add an image to my app after it has already been exported as a Node-Webkit? I cannot add these images as Project Files but I still need to load and show them.
I need to deliver an app to my client and they want to be able to add more images to the app in the future.
This leaves me stuck, forced to update their app for them anytime they want to add more pictures unless I can figure out a way to do this.
I have a CSV with all the image names and I can manage the data with an array. After that I need to be able to call the images from the stored names in the array.
I have no idea how many pictures will be added or what they will be called.
Where should l look to try and build a solution for this?
Below is my original post
I can load an image from a URL/URI but how do I display it?
I have followed this tutorial: https://www.scirra.com/tutorials/541/ho ... from-files
And made this tiny app:
But I can't figure out how to show the image after its been loaded.
The Manual says that:
Load an image from a given URL. The current animation frame will be replaced with the image. It is not shown until the image has finished downloading, and On image URL loaded triggers.
On image URL loaded
Triggered when Load image from URL finishes downloading the image and is ready to display it.
My Sprite has only 1 animation frame... so when its complete and ready to display how do I tell the Sprite to show the image? Or what do I tell to show the image?
Does anything change then using Node-Webkit?