Plugin Store
With this plugin you can download or check if is any update of your
favorite plugins by your favorite authors (of course, for this you need
a register link and... the plugin author has to create one :v).
favorite plugins by your favorite authors (of course, for this you need
a register link and... the plugin author has to create one :v).
Tutorial
how to add-on a store in my project
how to add-on a store in my project
First way: you can set up inside of the script-plugin, 'PStore.js'. See below on the picture, the place:
Second way: you can directly download the 'register file' and put on 'pstore' folder at your main project folder. If don't there any 'pstore' folder, just create one and put the file there.
Tutorial
how to create a register json file!
how to create a register json file!
First step: you need to create a json file and named here with your personal 'register json name'. Pay attention: don't named the file with 'pstore.json'!
Second step: the general setup. See below on the picture and after, see the 'parameters' section!
"author": {string} on this you'll set up your name that it shall be the name from your Store and, the name of your 'picture' & 'background'. Then, put basic names without special characters.
"picture": {string} (optional) here you can put some http link that will be your 'cover' picture for your Store. If you don't wanna, don't put this parameter.
"background": {string} (optional) the same that the "picture". But this image will be the background from your 'plugin scene store', the place where the user will download.
"description": {array} Here you will put some descriptions for your Store. You can use to display some important message or whatever. But, I recommend that for while, keep only 3 strings.
"picture": {string} (optional) here you can put some http link that will be your 'cover' picture for your Store. If you don't wanna, don't put this parameter.
"background": {string} (optional) the same that the "picture". But this image will be the background from your 'plugin scene store', the place where the user will download.
"description": {array} Here you will put some descriptions for your Store. You can use to display some important message or whatever. But, I recommend that for while, keep only 3 strings.
Third step: the plugin setup. See below on the picture and after, see the 'parameters' section. Pay attention: the "plugin" parameter need to be an Array element! And each plugin set up need to be a 'Object' element, inside on "plugin" parameter.
"general":
"name": {string} the name that will be displayed on the list of plugins.
"version": {string, float} Set up the current version of this plugin. For the user update this plugin, you need to change the version on the 'register file'. This way, the user will can update.
"requeriment": {array} If this plugin need another plugin as requeriment, put inside the Array as string, the name of.
"incompatible": {array} If this plugin is incompatible with another plugin, put inside the Array as string, the name of.
"description": {array} Put a short description of this plugin. You can use this to display some 'update changes'. I recommend that you keep only 3 strings.
"name": {string} the name that will be displayed on the list of plugins.
"version": {string, float} Set up the current version of this plugin. For the user update this plugin, you need to change the version on the 'register file'. This way, the user will can update.
"requeriment": {array} If this plugin need another plugin as requeriment, put inside the Array as string, the name of.
"incompatible": {array} If this plugin is incompatible with another plugin, put inside the Array as string, the name of.
"description": {array} Put a short description of this plugin. You can use this to display some 'update changes'. I recommend that you keep only 3 strings.
"js": need to be a Array element and each files that will be downloaded has to be a Object element
"url": {string} the http link that will be get the file.
"filename": {string} will save the 'http file' as...
"folder": {string} (optional) what folder inside on 'js' folder will be saved. For default is on 'js/plugins'.
"cache": {boolean} (optional) if this file is already exists, don't download. For default is false.
"confirm": {boolean} (optional) display a window confirm popup, asking if the user wants to download this file. For default is false.
"url": {string} the http link that will be get the file.
"filename": {string} will save the 'http file' as...
"folder": {string} (optional) what folder inside on 'js' folder will be saved. For default is on 'js/plugins'.
"cache": {boolean} (optional) if this file is already exists, don't download. For default is false.
"confirm": {boolean} (optional) display a window confirm popup, asking if the user wants to download this file. For default is false.
"img": need to be a Array element and each files that will be downloaded has to be a Object element
Is the same setup as JS setup, the difference is that will save by default on 'img' folder.
Is the same setup as JS setup, the difference is that will save by default on 'img' folder.
Last step: You need to save this register file on a server in which can provide you with a immutable link, that never will change the http link of this file. I recommend you the Github or Pastebin. In which, the final register link will be the 'raw link'.
Example of register json file on Github: Here
Example of register json file on Github: Here