rewrite module to typescript
This commit is contained in:
57
src/presets.ts
Normal file
57
src/presets.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
import { combineRgb } from '@companion-module/base'
|
||||
import { TogglTrack } from './main.js'
|
||||
|
||||
export default function (self: TogglTrack): void {
|
||||
self.setPresetDefinitions({
|
||||
Start: {
|
||||
type: 'button',
|
||||
category: 'Timer',
|
||||
name: 'Start',
|
||||
style: {
|
||||
text: 'Start Timer',
|
||||
size: '18',
|
||||
color: combineRgb(255, 255, 255),
|
||||
bgcolor: combineRgb(0, 0, 0),
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
down: [
|
||||
{
|
||||
actionId: 'startNewTimer',
|
||||
options: {
|
||||
description: '',
|
||||
project: '0',
|
||||
},
|
||||
},
|
||||
],
|
||||
up: [],
|
||||
},
|
||||
],
|
||||
feedbacks: [],
|
||||
},
|
||||
|
||||
Stop: {
|
||||
type: 'button',
|
||||
category: 'Timer',
|
||||
name: 'Stop',
|
||||
style: {
|
||||
text: 'Stop Timer',
|
||||
size: '18',
|
||||
color: combineRgb(255, 255, 255),
|
||||
bgcolor: combineRgb(0, 0, 0),
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
down: [
|
||||
{
|
||||
actionId: 'stopCurrentTimer',
|
||||
options: {},
|
||||
},
|
||||
],
|
||||
up: [],
|
||||
},
|
||||
],
|
||||
feedbacks: [],
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user