Optional Export Flags

DeviceMessage()

This export flag is used to show a message in SignalRGB on the associated device's page. You can use this to display any quirks, or description needed to the user.

The return value is a 1D array of 2 strings. The text to display in the popup, followed by the hover tooltip.

Javascript
Copy

SupportsSubdevices()

This export flag is used for lighting controllers that only support Subdevices and have no onboard LED's to control. When returning true this export will prevent the parent device from appearing over the canvas in layouts, and disable editing its positional settings.

Javascript
Copy

on*Changed()

This export function isn't used by the backend, but instead is used as a callback inside the plugin to notify when a setting is changed. Below you'll see an example of it being used to set the DPI of a mouse every time a user changes the slider instead of polling the values in your render loop and handling the change there.

These callbacks are called after RGB data is grabbed from the canvas, but before the render function is called for the current render frame.

The function also must be exported for SignalRGB to call it.

Javascript
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard