Initial commit

This commit is contained in:
2023-10-30 20:36:51 -04:00
committed by GitHub
commit 03706849b3
12 changed files with 215 additions and 0 deletions

33
feedbacks.js Normal file
View File

@@ -0,0 +1,33 @@
const { combineRgb } = require('@companion-module/base')
module.exports = async function (self) {
self.setFeedbackDefinitions({
ChannelState: {
name: 'Example Feedback',
type: 'boolean',
label: 'Channel State',
defaultStyle: {
bgcolor: combineRgb(255, 0, 0),
color: combineRgb(0, 0, 0),
},
options: [
{
id: 'num',
type: 'number',
label: 'Test',
default: 5,
min: 0,
max: 10,
},
],
callback: (feedback) => {
console.log('Hello world!', feedback.options.num)
if (feedback.options.num > 5) {
return true
} else {
return false
}
},
},
})
}