-
Notifications
You must be signed in to change notification settings - Fork 1
/
feedbacks.js
47 lines (46 loc) · 1.09 KB
/
feedbacks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const { combineRgb } = require('@companion-module/base')
module.exports = async function (self) {
self.setFeedbackDefinitions({
keypad_cue_entry: {
type: 'boolean',
name: 'Keypad cue entry',
description: 'Update jump button background with keypad input',
defaultStyle: {
bgcolor: combineRgb(204, 102, 0),
},
callback: (feedback) => {
if (self.keypadJumpCue != '' && self.keypadMode == 'cue') {
return true
} else {
return false
}
},
},
keypad_spare_entry: {
type: 'boolean',
name: 'Keypad spare entry',
description: 'Update allocate spare button background with keypad input',
defaultStyle: {
bgcolor: combineRgb(0, 0, 85),
},
callback: (feedback) => {
if (self.keypadMode == 'spare') {
return true
} else {
return false
}
},
},
record_offsets: {
type: 'boolean',
name: 'Record offsets state',
description: 'Update record offsets button background when active',
defaultStyle: {
bgcolor: combineRgb(170, 0, 0),
},
callback: (feedback) => {
return self.recordOffsets
},
},
})
}