-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresets.js
91 lines (86 loc) · 1.58 KB
/
presets.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
getPresets: function() {
var presets = []
var self = this
for(let k of this.config.countdown.split(";")) {
let pst = {
category: 'Countdown',
label: `CountDown ${k}`,
bank: {
style: 'text',
text: `${k}\\n\\n\$(TI:count_${k})`,
size: 'auto',
color: self.rgb(255, 255, 255),
bgcolor: self.rgb(0, 0, 0),
latch: false,
},
actions: [
{
action: 'countdown',
options: {
name: `${k}`,
time: '0:10:00',
func: 1,
}
}
],
feedbacks: [
{
type: 'countdown',
options: {
fg: this.rgb(0,0,0),
bg: this.rgb(255,255,0),
name: `${k}`,
time: '0:05:00',
}
},{
type: 'countdown',
options: {
fg: this.rgb(255,255,255),
bg: this.rgb(255,0,0),
name: `${k}`,
time: '0:01:00',
}
}
],
}
presets.push(pst)
}
for(let k of this.config.stopwatch.split(";")) {
let pst = {
category: 'Stopwatch',
label: `Stopwatch ${k}`,
bank: {
style: 'text',
text: `${k}\\n\\n\$(TI:stop_${k})`,
size: 'auto',
color: self.rgb(255, 255, 255),
bgcolor: self.rgb(0, 0, 0),
latch: false,
},
actions: [
{
action: 'stopwatch',
options: {
name: `${k}`,
func: 1,
}
}
],
feedbacks: [
{
type: 'stopwatch',
options: {
fg: this.rgb(255,255,255),
bg: this.rgb(255,0,0),
name: `${k}`,
time: '0:10:00',
}
}
],
}
presets.push(pst)
}
return presets
},
}