180 lines
7.9 KiB
JSON
180 lines
7.9 KiB
JSON
{
|
|
"info": {
|
|
"name": "Example Plugin",
|
|
"authors": [ "Jiiks" ],
|
|
"version": 1.0,
|
|
"description": "Example Plugin Description",
|
|
"icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FscXVlXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAwMCAyMDAwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyMDAwIDIwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGZpbGw9IiMzRTgyRTUiIGQ9Ik0xNDAyLjIsNjMxLjdjLTkuNy0zNTMuNC0yODYuMi00OTYtNjQyLjYtNDk2SDY4LjR2NzE0LjFsNDQyLDM5OFY0OTAuN2gyNTdjMjc0LjUsMCwyNzQuNSwzNDQuOSwwLDM0NC45SDU5Ny42djMyOS41aDE2OS44YzI3NC41LDAsMjc0LjUsMzQ0LjgsMCwzNDQuOGgtNjk5djM1NC45aDY5MS4yYzM1Ni4zLDAsNjMyLjgtMTQyLjYsNjQyLjYtNDk2YzAtMTYyLjYtNDQuNS0yODQuMS0xMjIuOS0zNjguNkMxMzU3LjcsOTE1LjgsMTQwMi4yLDc5NC4zLDE0MDIuMiw2MzEuN3oiLz48cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMTI2Mi41LDEzNS4yTDEyNjIuNSwxMzUuMmwtNzYuOCwwYzI2LjYsMTMuMyw1MS43LDI4LjEsNzUsNDQuM2M3MC43LDQ5LjEsMTI2LjEsMTExLjUsMTY0LjYsMTg1LjNjMzkuOSw3Ni42LDYxLjUsMTY1LjYsNjQuMywyNjQuNmwwLDEuMnYxLjJjMCwxNDEuMSwwLDU5Ni4xLDAsNzM3LjF2MS4ybDAsMS4yYy0yLjcsOTktMjQuMywxODgtNjQuMywyNjQuNmMtMzguNSw3My44LTkzLjgsMTM2LjItMTY0LjYsMTg1LjNjLTIyLjYsMTUuNy00Ni45LDMwLjEtNzIuNiw0My4xaDcyLjVjMzQ2LjIsMS45LDY3MS0xNzEuMiw2NzEtNTY3LjlWNzE2LjdDMTkzMy41LDMxMi4yLDE2MDguNywxMzUuMiwxMjYyLjUsMTM1LjJ6Ii8+PC9nPjwvc3ZnPg=="
|
|
},
|
|
"main": "index.js",
|
|
"defaultConfig": [
|
|
{
|
|
"category_default_comment": "default category has no header and is always displayed first",
|
|
"category": "default",
|
|
"settings": [
|
|
{
|
|
"id": "default-0",
|
|
"type": "bool",
|
|
"value": false,
|
|
"text": "Bool Test Setting 3",
|
|
"hint": "Bool Test Setting Hint 3"
|
|
},
|
|
{
|
|
"id": "default-1",
|
|
"type": "text",
|
|
"value": "defaultValue",
|
|
"text": "Text Test Setting",
|
|
"hint": "Text Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "default-2",
|
|
"type": "dropdown",
|
|
"value": "opt1",
|
|
"text": "Dropdown Test Setting",
|
|
"hint": "Dropdown Test Setting Hint",
|
|
"options": [
|
|
{"value": "opt1", "text": "Option 1"},
|
|
{"value": "opt2", "text": "Option 2"},
|
|
{"value": "opt3", "text": "Option 3"},
|
|
{"value": "opt4", "text": "Option 4"},
|
|
{"value": "opt5", "text": "Option 5"}
|
|
]
|
|
},
|
|
{
|
|
"id": "default-5",
|
|
"type": "radio",
|
|
"value": "opt1",
|
|
"text": "Radio Test Setting",
|
|
"hint": "Radio Test Setting Hint",
|
|
"options": [
|
|
{"value": "opt1", "text": "Option 1"},
|
|
{"value": "opt2", "text": "Option 2"},
|
|
{"value": "opt3", "text": "Option 3"},
|
|
{"value": "opt4", "text": "Option 4"},
|
|
{"value": "opt5", "text": "Option 5"}
|
|
]
|
|
},
|
|
{
|
|
"id": "default-6",
|
|
"type": "number",
|
|
"value": 0,
|
|
"text": "Number Test Setting",
|
|
"hint": "Number Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "test-multiline-1",
|
|
"type": "text",
|
|
"multiline": true,
|
|
"text": "Multiline Text Test Setting",
|
|
"hint": "Multiline Text Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "test-slider-1",
|
|
"type": "slider",
|
|
"value": 0,
|
|
"min": 0,
|
|
"max": 100,
|
|
"step": 1,
|
|
"unit": "%",
|
|
"text": "Slider Test Setting",
|
|
"hint": "Slider Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "test-slider-2",
|
|
"type": "slider",
|
|
"value": 0,
|
|
"min": 0,
|
|
"max": 100,
|
|
"step": 1,
|
|
"unit": "%",
|
|
"points": {
|
|
"0": "0%",
|
|
"100": "100%"
|
|
},
|
|
"text": "Slider Test Setting",
|
|
"hint": "Slider with two points."
|
|
},
|
|
{
|
|
"id": "default-3",
|
|
"type": "file",
|
|
"value": null,
|
|
"text": "Test File Setting 1",
|
|
"hint": "File selector with the default options."
|
|
},
|
|
{
|
|
"id": "default-4",
|
|
"type": "file",
|
|
"value": null,
|
|
"text": "Test File Setting 2",
|
|
"hint": "File selector with custom button text and the ability to open directories and multiple items.",
|
|
"dialogOptions": {
|
|
"buttonLabel": "Select",
|
|
"properties": [
|
|
"openFile",
|
|
"openDirectory",
|
|
"multiSelections"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"category_header_comment": "Setting a category other than default has a header with category name as the text",
|
|
"category": "Test Category",
|
|
"drawer_type_comment": "// Drawer type will create an expandable drawer for the settings",
|
|
"type": "drawer",
|
|
"settings": [
|
|
{
|
|
"id": "drawer-0",
|
|
"type": "bool",
|
|
"value": false,
|
|
"text": "Bool Test Setting 3",
|
|
"hint": "Bool Test Setting Hint 3"
|
|
},
|
|
{
|
|
"id": "drawer-1",
|
|
"type": "text",
|
|
"value": "defaultValue",
|
|
"text": "Text Test Setting",
|
|
"hint": "Text Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "drawer-2",
|
|
"type": "bool",
|
|
"value": false,
|
|
"text": "Bool Test Setting 3",
|
|
"hint": "Bool Test Setting Hint 3"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"category": "Test Category 2",
|
|
"static_type_comment": "Static type will behave like default but will have a header",
|
|
"type": "static",
|
|
"settings": [
|
|
{
|
|
"id": "static-0",
|
|
"type": "bool",
|
|
"value": false,
|
|
"text": "Bool Test Setting 3",
|
|
"hint": "Bool Test Setting Hint 3"
|
|
},
|
|
{
|
|
"id": "static-1",
|
|
"type": "text",
|
|
"value": "defaultValue",
|
|
"text": "Text Test Setting",
|
|
"hint": "Text Test Setting Hint"
|
|
},
|
|
{
|
|
"id": "static-2",
|
|
"type": "bool",
|
|
"value": false,
|
|
"text": "Bool Test Setting 3",
|
|
"hint": "Bool Test Setting Hint 3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|