Skip to content
Update Plugin Function Exports and Syntax authored by Heal-Bot's avatar Heal-Bot
......@@ -23,6 +23,7 @@ export function LedPositions(){return vLedPositions;} //This returns a Matrix of
export function Image(){ return "Base 64 Image String";} This returns the devices Image encoded in a base 64 image string. Onlien conversion of a PNG to Base64 can be done [Here](https://onlinepngtools.com/convert-png-to-base64)
```
*Optional Function Exports*
---
```
export function Type() { return "[Hid|LibUsb]"; } //Usb Protocol Type, Most devices use Hid Protocols, But some devices like AIO's will use Libusb functions instead. Modes are case insensitive and are "HID" and "LIBUSB"
//This Function exports a list of conflicting exe's. Signal will not Initialize the plugin while one of these is running. When the conflicting process is closed SignalRGB will then initialize the plugin
......@@ -37,25 +38,15 @@ export function ConflictingProcesses() {
];
}
```
*Possible setting types*
---
`{"property":"ColorValue", "label":"User Color","min":"0","max":"360","type":"color","default":"#FFFFF"}`
`{"property":"ComboBoxValue", "label":"User DropDown", "type":"combobox", "values":["Option 1","Option 2"], "default":"Option 1"}`
`{"property":"SliderValue", "label":"User Slider","type":"number","min":"0", "max":"10","step":"1","default":"0"}`
`{"property":"BooleanValue", "label":"User Boolean","type":"boolean","default":"false"}`
export function ControllableParameters(){
return [
{"property":"shutdownColor", "label":"Shutdown Color","min":"0","max":"360","type":"color","default":"009bde"},
{"property":"LightingMode", "label":"Lighting Mode", "type":"combobox", "values":["Canvas","Forced"], "default":"Canvas"},
{"property":"forcedColor", "label":"Forced Color","min":"0","max":"360","type":"color","default":"009bde"},
{"property":"RGBHeaderCount", "label":"RGB Header Count","type":"number","min":"0", "max":"2","default":"0"},
{"property":"CustomSize", "label":"Custom Strip Size","type":"number","min":"0", "max":"80","default":"10"},
{"property":"device1", "label":"Ch1 | Device 1", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
{"property":"device2", "label":"Ch1 | Device 2", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
{"property":"device3", "label":"Ch1 | Device 3", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
{"property":"device4", "label":"Ch2 | Device 1", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
{"property":"device5", "label":"Ch2 | Device 2", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
{"property":"device6", "label":"Ch2 | Device 3", "type":"combobox", "values":["None","Strip_10Led","Strip_8Led","Strip_6Led","Custom"], "default":"None"},
];
}
mxValidateFunction = mxModule.property("Validate");
mxTypeFunction = mxModule.property("Type");
mxInitFunction = mxModule.property("Initialize");
......
......