-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpresets.js
2292 lines (2224 loc) · 134 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const { combineRgb } = require('@companion-module/base')
const {
numberOfPresentationSlots,
numberOfMediaPlayerSlots,
minNumberOfPresentationFolderFiles,
numberOfPresentationFolders,
minNumberOfMediaFolderFiles,
numberOfMediaFolders } = require('./constants')
exports.getPresets = function (instance) {
var self = instance
var presets = {}
//Presentation Control
presets['Navigation_PrevFS'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Previous in full screen',
style: {
text: "GO prev",
size: "14",
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTBgE0SQIA9pfFtgo6cKGuhooeilaKH41eDs38Ip+f4At1Rq/sjr6NEwQqb/I/DQqsLvaFUjvAx+e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j9AG6k3/Z9D4tXALvoNCYrrhGCyZKFZCP4NofAuNPwI7YCZk4RNchw74AFNgEvzr+MlzcKiaSlQsCDFzKOgqbIepgUIlaAC+wjSoh4rzJW2c0Y6g9moKmBziZIn4BVoWhjsmOWHyLMwn6u2RajMMfaXpSasp9DDsgtkgOZ/hBtyGLpCkJIgaogfpovoPRDXDNQiOXj1sn4Bl/muUwBIRoWF+FVyCflBoNOuDs7AogdX2XyVESNRKuAB6BxrOLzf4r020JYZ+BpUqHinKbx64T41MMD3HZ7GtkS6q+FHtMF6uIpEKKlUYcnZzvA0kKYrQ4KBvvf1IehVFhmPl4XOkOUAFlo9ViSr2LebcrTAhBLneql50H9w2q6FDvec0SE7wpTV0RuVO8NmD1ChFL7fEyz+r4//llu3Pn+3yHX9mJc7Um6+vcN9m+k6LIrzU3UsheRvvWT4DvXXXTPi8xc5jpQEkqmbCSw/iebEXI0/hETxnW99yNRGxC0LGQkxcBC0Vc+EM+/8a8tm3B+5CYqZqfdxiSxGit+tgaKJtBejLPxdI2cfKTVCdGthex2gX6wiVK7jMT+w9iPJ7oK+gHppge+32ISPNuibj3AV7kgQ5rn6xLxGwBd6A5q+7YKcrlPU0DIKLe6yU/V4jzZ38Ca0urziW7orFkXcuTxqhMnrhCqwB9RzNG81guRk00TYdFA8hXWHv8TIRFqsgJGyjwcehGYIviKfY7gRNrEmU4gGcBE2ZlOtBI6RzD3IfjwmKizho5FHQvFAl8ZhE+uOxs5LEBWkORlz1UdlV88E4KqPgBg3QXLV6iEawcqF0G0G33yYI8zdNN+k7uCUHWdZOIKil4CoX28xwoCnJLYvrGdRIozW0l3qPUU85xNV/kWRBcd1ievC6h2+x9g8j51uxg7bfDJgBM2AGzIAZMAMxG/gNaUsXe2qiK/MAAAAASUVORK5CYII=",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [
{
actionId: 'Navigation_PrevFS',
options: {
SlideNumber: 1,
Fullscreen: true,
},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: 26112,
},
},
],
}
presets['Navigation_NextFS'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Next in full screen',
style: {
text: "GO next",
size: "14",
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTBgE0SQIA9pfFtgo6cKGuhooeilaKH41eDs38Ip+f4At1Rq/sjr6NEwQqb/I/DQqsLvaFUjvAx+eWirddAJZnAj1DFJL0mSg/gcIpPkMBkhoyCSJ8lTZIxk0TpKDjXHliJzZPO50dR5ASNSnzeLvIvod0HG/mdkmOC0z8VKnzcQ2M/Yz2vKldduXjp9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4Ao8R6nfWtYKHswteLX4x7P3FPQRv8Ser6WQPvoLrs2Cya1m35h6W1Dj31kSCJTY/v+4fnY/gV0tsHRwELbFakGjf4DI8ZeZ8p5xZxkNSkm6ENugDmZL0FzgDa2aWIploCbwSGuAuDIBMr/lPcBJWzUhhXNAIUAOHoAd+QjscgeWuTRRlqBwUZAAMWHmqOkjbgG2GyCXKOcqByjtLQD81eqkfoIzUvApEADsZ7XmIKpnrVd4LexHjPaV38/2a3kcEUSdJ/dbaCv+FQG6GahY9BHfOYcmm2XMBJI6WVlnM9wxSULIUS0JfsqGMJduf6cD1G6q/IDfry9KnVWQ6175NFOZ7vBPG6NvhVzy+gp4JnmNS4XuJXUWHOpBQsTRvM4h8sRtF2uE5vOb8aBwV8iIQYujj7TqolGlv5iL1E1751O0C7Qo2j7ecZn98LTFtdy7Ki1Vfu2uh09Ujyh6Ob4PGUcd5E2+7sr2h3DgKlV5mEA67IX/3Tj8DPrrBIEYLxzfAPaSX000cN1YvJQJsAf2y/gWdsMM54rgF9J8IZw84KPp7jTb3Mjecdn35Lt3Ti9QPQajfFLRBA2jmdFOvPezNcAvmgOwJtAScPdp7LqtFLhAibCOCVlgP2R+I5zjvgJXgNvsfcXwWrnFfsRmk3UGXyH2lBlx4NII8AWMQxF7QqB46gjTOa7PfYxg5XYf58ZjTEQEsoEIzRG+wYqZ2G0HLbxOM7+9QBrEuGt1hSQ4HaTxt2iDQhrynPNWpdv+0uR4LizIH1ROxXu2FvmM0Uw7z9N/GQh0GGeUSU+J1yXeq+McQZ3Cqi1ZvCpgCpoApYAqYAqZAGRX4CySgGYnzAbC+AAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [
{
actionId: 'Navigation_NextFS',
options: {
SlideNumber: 1,
Fullscreen: true,
},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: 26112,
},
},
],
}
presets['Navigation_CurrentFS'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Put current in fullscreen',
style: {
text: "Start",
size: "14",
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTBgE0SQIA9pfFtgo6cKGuhooeilaKH41eDs38Ip+f4At1Rq/sjr6NEwQqb/I/DQqsLvaFUjvAx+eWirddAJZnAj1DFJL0mSg/gcIpPkMBkhoyCSJ8lTZIxk0TpKDjXHliJzZPO50dR5ASNSnzeLvIvod0HG/mdkmOC0z8VKnzcQ2M/Yz2vKldduXjp9bleLu0ZWn7vWc+l0JGcaai10yNrUnXLP/8Jf59ewX+c3Wgz+B34Df+vbVrc16zTMVgp9um9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aDE0RR7qVgzoKMNtp6zLe0BN1iELMS9MHIMzBE+zbY1dIMhQoeIjqA3mCT8hPF0VB+subBx17H8Qjt5VljffQhV9BZHG9Kca632wsEvCKlr6KifyfoAz0V5f/SIKl2oC1VTbqz8sXoMBhzjE9njc3SY9vUK6idwBdkBV/WL0nrJ7F96K8B175pVlGoLfaVBIfTCCjrvvOrwj1FIEer6gZYOKWjULifuG79S5I9AFSQ0+RSMkMGdYNPKYPvoUsSljSfdo1NlC02zVE9CoI8Dl6DcSD5AgbAInderveAjyApD1G4xyWuWdU2ds1PkDIg0A3gJDgHRMQcNzOuu0AaOU/Q65g2l2CrFTkpwR7zQd6kiWozWR0CO8A6MA+ovvWC9/Sr/gyCb+A6SL6jPEW3nzdvrT7vcxzsdB4Uqp4y1T+piyCS0RnMeXAMiJQ0WYVyIzgCxoE+Q1yZIAeF3sL1NNMT0UuwE0FLHaNgB2bOnH5NYtoNhhVcHfIK27WgE7ypY56k6UsU3oU+jYFcyxLnWi0XgbZTXtF58UGgVXwX5CrO2KXJINtuLK3DV+e93+UAglRzHoHkdlF3LaJa1EMSt5hrO+2tIMSX/x/m0RHLA+ZWuzFCUidAPXKqMZH7e821xXDT5e+qYqGXxv7KVZM3vJ9iLBt9nWuL/ciR2x1s9F/Pxi1/z6C9axAEadV1AhGlx2utIl8jkDNaq4GNMwaMAWPAGDAGjAFjwBhoHAN/AaZBTeZT3lYcAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [
{
actionId: 'Navigation_CurrentFS',
options: {},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed_in_edit_mode',
options: {},
style: {
color: 16777215,
bgcolor: 26112,
},
},
],
}
presets['Navigation_CloseOthers'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Close all except current',
style: {
bgcolor: 0,
text: 'close others',
alignment: 'center:center',
size: 'auto',
color: 16777215,
},
steps: [
{
down: [
{
actionId: 'Navigation_CloseOthers',
options: {},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: combineRgb(51, 0, 0),
},
},
],
}
presets['Exit'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Presentation Exit',
style: {
bgcolor: 0,
text: 'Esc',
alignment: 'center:center',
size: 'auto',
color: 16777215,
},
steps: [
{
down: [
{
actionId: 'PresentationExit',
options: {
Key: 'Key_Esc'
},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: combineRgb(51, 0, 0),
},
},
],
}
// Still Images - Capture
for (let i = 1; i <= 10; i++) {
presets[`Capture${i}`] = getPresetForStillImageCapture(
`Capture Image ${i}`,
`Captr ${i}`,
`Capture${i}`,
combineRgb(200, 180, 0),
)
}
// Still Images - Display
for (let i = 1; i <= 10; i++) {
presets[`Display${i}`] = getPresetForStillImageDisplay(
i,
`Display Image ${i}`,
`${i} $(${instance.label}:image_slot${i})`,
`Display${i}`,
combineRgb(0, 90, 0),
combineRgb(255, 0, 0),
)
}
presets['DisplayTest'] = getPresetForStillImageDisplay(
0,
'Display Test Image',
'Test image',
'DisplayTest',
combineRgb(153, 0, 153),
combineRgb(255, 0, 0),
'18',
)
presets['Blackout'] = getPresetForStillImageDisplay(
0,
'Display Blackout',
'Blackout',
'Blackout',
combineRgb(0, 0, 0),
combineRgb(255, 0, 0),
'14',
)
presets['Freeze'] = getPresetForStillImageDisplay(
0,
'Freeze',
'Freeze',
'Freeze',
combineRgb(0, 51, 153),
combineRgb(255, 0, 0),
'18',
)
presets['ExitImages'] = getPresetForStillImageExit()
// Presentation Files
presets['PresentationFilesPrev'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Previous',
style: {
text: `$(${instance.label}:Presentation_previous)`,
alignment: 'center:center',
size: 'auto',
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [],
up: [],
},
],
feedbacks: [],
}
presets['PresentationFilesCurr'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Current',
style: {
text: `$(${instance.label}:Presentation_current)`,
alignment: 'center:center',
size: 'auto',
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: combineRgb(255, 0, 0),
},
},
],
}
presets['PresentationFilesNext'] = {
type: 'button',
category: 'Presentation file control (active presentation)',
name: 'Next',
style: {
text: `$(${instance.label}:Presentation_next)`,
alignment: 'center:center',
size: 'auto',
color: 16777215,
bgcolor: 0,
},
steps: [
{
down: [],
up: [],
},
],
feedbacks: [
{
feedbackId: 'presentation_displayed',
options: {},
style: {
color: 16777215,
bgcolor: 26112,
},
},
],
}
//Slot Presentations
for (let i = 1; i <= numberOfPresentationSlots; i++) {
presets[`Slot${i}`] = getPresetforSlotPresentation(
self.label,
`Slot ${i}`,
`presentation_slot${i}`,
i,
combineRgb(0, 0, 0),
`Slot${i}`,
1,
true,
)
}
//Folders
presets['PresentationFolderPrev'] = {
type: 'button',
category: 'Presentation Select',
name: 'Previous',
style: {
text: "Set folder",
size: "14",
alignment: "center:top",
png64:
'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitK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xqhMnrhCqwB9RzNG81guRk00TYdFA8hXWHv8TIRFqsgJGyjwcehGYIviKfY7gRNrEmU4gGcBE2ZlOtBI6RzD3IfjwmKizho5FHQvFAl8ZhE+uOxs5LEBWkORlz1UdlV88E4KqPgBg3QXLV6iEawcqF0G0G33yYI8zdNN+k7uCUHWdZOIKil4CoX28xwoCnJLYvrGdRIozW0l3qPUU85xNV/kWRBcd1ievC6h2+x9g8j51uxg7bfDJgBM2AGzIAZMAMxG/gNaUsXe2qiK/MAAAAASUVORK5CYII=',
pngalignment: 'center:center',
color: 16777215,
bgcolor: 6684774,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'SetSelected_PresentationFolder',
options: {
Key: 'Previous',
},
},
],
up: [],
},
],
}
presets['PresentationFolderNext'] = {
type: 'button',
category: 'Presentation Select',
name: 'Next',
style: {
text: "Set folder",
size: "14",
alignment: "center:top",
png64:
'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45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+9QBrEuGt1hSQ4HaTxt2iDQhrynPNWpdv+0uR4LizIH1ROxXu2FvmM0Uw7z9N/GQh0GGeUSU+J1yXeq+McQZ3Cqi1ZvCpgCpoApYAqYAqZAGRX4CySgGYnzAbC+AAAAAElFTkSuQmCC',
pngalignment: 'center:center',
color: 16777215,
bgcolor: 6684774,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'SetSelected_PresentationFolder',
options: {
Key: 'Next',
},
},
],
up: [],
},
],
}
presets['WatchedPresentationFolderStatistics'] = {
type: 'button',
category: 'Presentation Select',
name: 'Selected Presentation Folder',
style: {
text: `$(${self.label}:watched_presentation_folder_number)/${numberOfPresentationFolders}\\n $(${self.label}:watched_presentation_folder_name)`,
size: '14',
alignment: "center:center",
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
// Watched presentation folder select
presets['PresentationSelectPrev'] = {
type: 'button',
category: 'Presentation Select',
name: 'Previous Presentation File',
style: {
text: "Select file",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsR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5FHQvFAl8ZhE+uOxs5LEBWkORlz1UdlV88E4KqPgBg3QXLV6iEawcqF0G0G33yYI8zdNN+k7uCUHWdZOIKil4CoX28xwoCnJLYvrGdRIozW0l3qPUU85xNV/kWRBcd1ievC6h2+x9g8j51uxg7bfDJgBM2AGzIAZMAMxG/gNaUsXe2qiK/MAAAAASUVORK5CYII=",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 204,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'Change_selected_presentation_in_watched_presentation_folder',
options: {
File: "-1",
},
},
],
up: [],
},
],
}
presets['PresentationSelectNext'] = {
type: 'button',
category: 'Presentation Select',
name: 'Next Presentation File',
style: {
text: "Select file",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkX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J1yXeq+McQZ3Cqi1ZvCpgCpoApYAqYAqZAGRX4CySgGYnzAbC+AAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 204,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'Change_selected_presentation_in_watched_presentation_folder',
options: {
File: "1",
},
},
],
up: [],
},
],
}
presets['CurrentSelectedPresentation'] = {
type: 'button',
category: 'Presentation Select',
name: 'Current selected in watched presentation folder',
style: {
text: `$(${self.label}:watched_presentation_folder_selected_presentation_number)/$(${self.label}:watched_presentation_folder_total_files_count)\\n$(${self.label}:watched_presentation_folder_selected_presentation_name)`,
size: '14',
alignment: 'center:center',
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
// Presentation slot select
presets['PresentationSlotSelectPrev'] = {
type: 'button',
category: 'Presentation Select',
name: 'Previous Presentation Slot',
style: {
text: "Select slot",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu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88E4KqPgBg3QXLV6iEawcqF0G0G33yYI8zdNN+k7uCUHWdZOIKil4CoX28xwoCnJLYvrGdRIozW0l3qPUU85xNV/kWRBcd1ievC6h2+x9g8j51uxg7bfDJgBM2AGzIAZMAMxG/gNaUsXe2qiK/MAAAAASUVORK5CYII=",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 102,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'select_presentation_slot',
options: {
Slot: "-1",
},
},
],
up: [],
},
],
}
presets['PresentationSlotSelectNext'] = {
type: 'button',
category: 'Presentation Select',
name: 'Next Presentation Slot',
style: {
text: "Select slot",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv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YmYrMTwfAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 102,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'select_presentation_slot',
options: {
Slot: "1",
},
},
],
up: [],
},
],
}
presets['CurrentSelectedPresentationSlot'] = {
type: 'button',
category: 'Presentation Select',
name: 'Current selected presentation slot',
style: {
text: `$(${self.label}:presentation_slot_selected_number)/${numberOfPresentationSlots}\\n$(${self.label}:presentation_slot_selected_filename)`,
size: '14',
alignment: 'center:center',
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
presets['StorePresentationSlot'] = {
type: 'button',
category: 'Presentation Select',
name: 'Store slot',
style: {
text: `Store slot`,
size: '14',
alignment: 'center:top',
png64: 'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9X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DNaq4GNMwaMAWPAGDAGjAFjwBhoHAN/AaZBTeZT3lYcAAAAAElFTkSuQmCC',
pngalignment: "center:center",
color: 16777215,
bgcolor: 10066176,
},
feedbacks: [],
steps: [
{
down: [],
up: [
{
actionId: 'SetPresentationSlotPath',
options: {
FilePath: `$(${self.label}:watched_presentation_folder_selected_presentation_path)`,
Key: "selected",
},
},
],
2000: {
options: {
runWhileHeld: true,
},
actions:[
{
actionId: "Clear",
options: {
Key: "SlotPresentations",
SlotPresentations: `selected`,
},
}
]
},
},
],
}
for (let i = 1; i <= numberOfPresentationFolders; i++) {
presets[`PresentationFolder${i}`] = getPresetforPresentationFolder(
self.label,
`Folder ${i}`,
`presentation_folder${i}`,
i,
combineRgb(0, 0, 0),
`Folder${i}`,
)
}
//Watched Presentation Folder Presentations
for (let i = 1; i <= Math.max(minNumberOfPresentationFolderFiles, self.watchedPresentationFolderState.filesList.length); i++) {
try{
presets[`PresentationFile${i}`] = getPresetforWatchedPresentationFolderFilesSelect(
`File ${i}`,
`${i} - $(${self.label}:presentation_folder_file${i})`,
combineRgb(0, 0, 0),
`File${i}`,
)
}catch(err){
self.log('debug', err.message)
}
}
for (let i = 1; i <= Math.max(minNumberOfPresentationFolderFiles, self.watchedPresentationFolderState.filesList.length); i++) {
try{
presets[`OpenPresentationFile${i}`] = getPresetforWatchedPresentationFolderFilesOpen(
`File ${i}`,
`${i} - $(${self.label}:presentation_folder_file${i})`,
combineRgb(0, 0, 0),
`File${i}`,
1,
true,
)
}catch(err){
self.log('debug', err.message)
}
}
//Media Folders
presets['MediaFolderPrev'] = {
type: 'button',
category: 'Media Player Select',
name: 'Previous',
style: {
text: "Set folder",
size: '14',
alignment: "center:top",
png64:
'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3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kGmwhQYA/72aq5SDKdOLSjKXKgCtxCrYRBUggKOhUQs0QhqO2KEGcnv7aBDRoj5yK//Cb7APHgIR2EmrIODcAp2wHOoAesuAevPB6eeJGKpCcTo7Wsb3IWXsBSOwwHYDHNgP9yHMnAX7OnfOivAqFIoo6oFbsEDcENaa67CvJ9XS1Og94z8KzwEI6cRaqAUVoIJfQMYDbOgGRbCOzgD9+ApKO4bMPLE501JiEO76R4i+crmj2XgqmZ06Khlc5Jf36Tu9RG8gNfwARTiO/gsStIUf5ui18BFRFLUvFqaEeTAH4NT5Lo/2rG202QI7wxufc+VK7KobNRNAYW9At1eIL++OWgTdGQKEInQ0Xsm6r1gFCZiaUeQTjtVGsCyucbVKxMxeO23GS2v4AY4vVwBE7O0BWrriH27WlWAOabt1OJnu2a9a7C13Tfy+KCQAhk1HiGaYCNkEgmucOUwDbKJOl7PzQopkCM2asSV6jN0Zq58CplptHXWXqfPCy2QA5wMVzsd6Z8XjBpFupzh+7FfK6RA7pSPQR1kM11cCd0j+ZeBaAtAMRkrmEBs6vxDmkt+fQ6uea7w30w5VM2uSsEEcpiKxEW6rLmrTdPsz6+fr09vO5HA2UzTjH1OO4I8aM5jahziGtchxTFhe6D1rwJuGvNuaQt0GA+mw9Q8eaJI5+EEuJ8KFhQICgQFggJBgaDAXwV+AXqfqlFVYrHJAAAAAElFTkSuQmCC',
pngalignment: 'center:center',
color: 16777215,
bgcolor: 6684774,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'SetSelected_MediaFolder',
options: {
Key: 'Previous',
},
},
],
up: [],
},
],
}
presets['MediaFolderNext'] = {
type: 'button',
category: 'Media Player Select',
name: 'Next',
style: {
text: "Set folder",
size: '14',
alignment: "center:top",
png64:
'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyT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DgMyIRYzmvhioYDv722BeU4TJ8DZQyHc7CCVgCrphnQIF+oKYSiQlCzBB6sB7skBnisuvb/wrfYQY8gkMwGZbDXjgJG8AluRasOx+sPwscepJKJCaI1nvvdXAX3OIvgKOwG1bDNNgFD2ApuJfpA9ZZBGaVoswqd8k34SHcgmu8AEZYxr8nGkkK+kDL3dI/AjPnDdTCVFgMPWAFmA1T4DPMhgY4BffhKSj3HZh54vVPacjhOfG23VaIE7xl54+F4D+2zA476rlzkm+/KXt8zPE5vIWPoAg/QC0TTdKc/g6l18J5JCk10Ugyg2z4E3CIXPZHG5E7TCooMzBbzpUriujcrKsCxdbBfy/It+8ctAraCwVEEtor50S9DczCVCLpDLLTDpXX4LlzjatXPjIo9jvMlpdwBRxeroCpRdKCcjvis1ytNoFzTO7Q4mebYb1LUNNmiQQvpCnIrPGT4BOshHwywRVuDUyAOFlH8dJEmoJssVkjrlTfoKNw5VNkvtnW0f1iX09bkA0cDxfzbKlZo6QLeZYvebE0BblTPgK3IM5wcSV0j/QFoi0Ap+lEaoLY1DWzcXTJv1dA1/yuaKJ+AVWLq5KaIJupJA7y34S73CTD+/v2S/XqvU8kOM4wLbiPSWeQH5ozGBr7ORbbIeU4YftB638F3DQmHkkLOkAPJkJ1iXqipNNwHNxPhQgGgoFgIBgIBoKBNg38AjmceactR/rPAAAAAElFTkSuQmCC',
pngalignment: 'center:center',
color: 16777215,
bgcolor: 6684774,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'SetSelected_MediaFolder',
options: {
Key: 'Next',
},
},
],
up: [],
},
],
}
presets['WatchedMediaFolderStatistics'] = {
type: 'button',
category: 'Media Player Select',
name: 'Selected Media Folder',
style: {
text: `$(${self.label}:watched_media_folder_number)/${numberOfMediaFolders}\\n $(${self.label}:watched_media_folder_name)`,
size: '14',
alignment: "center:center",
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
// Watched media folder select
presets['MediaSelectPrev'] = {
type: 'button',
category: 'Media Player Select',
name: 'Previous Media File',
style: {
text: "Select file",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTBgE0SQIA9pfFtgo6cKGuhooeilaKH41eDs38Ip+f4At1Rq/sjr6NEwQqb/I/DQqsLvaFUjvAx+eWirddAJZnAj1DFJL0mSg/gcIpPkMBkhoyCSJ8lTZIxk0TpKDjXHliJzZPO50dR5ASNSnzeLvIvod0HG/mdkmOC0z8VKnzcQ2M/Yz2vKldduXjp9bleLu0ZWn7vWc+l0JGcaai10yNrUnXLP/8Jf59ewX+c3Wgz+B34Df+vbVrc16zTMVgp9um9bxEfzPU5kPq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bgMItQhOwjfQzEEPYA+Mi9t+j6iPEH1gOfybrF9wbx9M6hGOxnUCIaLlvopyZEbUM9gN/eP20SPqI0Qk1GnKDeBO+jwMz6eDtNcXBoBHmUQs0eWXgZukZ4DbAM9iH7P1gjYc40AYBeNhciuW5SYcoe0nXPNuia4wDPoHI76T6agRw7Oam0sdn9iKApvsR8AQ+AmK5nPNLccF6H4COfp/DRH8KJEQHkGmwhQYA/72aq5SDKdOLSjKXKgCtxCrYRBUggKOhUQs0QhqO2KEGcnv7aBDRoj5yK//Cb7APHgIR2EmrIODcAp2wHOoAesuAevPB6eeJGKpCcTo7Wsb3IWXsBSOwwHYDHNgP9yHMnAX7OnfOivAqFIoo6oFbsEDcENaa67CvJ9XS1Og94z8KzwEI6cRaqAUVoIJfQMYDbOgGRbCOzgD9+ApKO4bMPLE501JiEO76R4i+crmj2XgqmZ06Khlc5Jf36Tu9RG8gNfwARTiO/gsStIUf5ui18BFRFLUvFqaEeTAH4NT5Lo/2rG202QI7wxufc+VK7KobNRNAYW9At1eIL++OWgTdGQKEInQ0Xsm6r1gFCZiaUeQTjtVGsCyucbVKxMxeO23GS2v4AY4vVwBE7O0BWrriH27WlWAOabt1OJnu2a9a7C13Tfy+KCQAhk1HiGaYCNkEgmucOUwDbKJOl7PzQopkCM2asSV6jN0Zq58CplptHXWXqfPCy2QA5wMVzsd6Z8XjBpFupzh+7FfK6RA7pSPQR1kM11cCd0j+ZeBaAtAMRkrmEBs6vxDmkt+fQ6uea7w30w5VM2uSsEEcpiKxEW6rLmrTdPsz6+fr09vO5HA2UzTjH1OO4I8aM5jahziGtchxTFhe6D1rwJuGvNuaQt0GA+mw9Q8eaJI5+EEuJ8KFhQICgQFggJBgaDAXwV+AXqfqlFVYrHJAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 204,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'Change_selected_media_in_watched_media_folder',
options: {
File: "-1",
},
},
],
up: [],
},
],
}
presets['MediaSelectNext'] = {
type: 'button',
category: 'Media Player Select',
name: 'Next Media File',
style: {
text: "Select file",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTBgE0SQIA9pfFtgo6cKGuhooeilaKH41eDs38Ip+f4At1Rq/sjr6NEwQqb/I/DQqsLvaFUjvAx+eWirddAJZnAj1DFJL0mSg/gcIpPkMBkhoyCSJ8lTZIxk0TpKDjXHliJzZPO50dR5ASNSnzeLvIvod0HG/mdkmOC0z8VKnzcQ2M/Yz2vKldduXjp9bleLu0ZWn7vWc+l0JGcaai10yNrUnXLP/8Jf59ewX+c3Wgz+B34Df+vbVrc16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f57GKvxn1bIyhtiAv//WSb8bea5DbCasBYdYJSitHnbACTLnGcfuFbwkJ+k5sAdegeEkfQ+2wsTuZSTbWzreC2bDQXgPhsv8bdgMVd1ODJ1279MPymEQrIPn8BrqYD2MKaWYouagUjYkuhcdtE1+OgwFd8Xjs3guN+Ag80k9ZZ13RoLlX/K39xxLGp26CtFB9yrDwI6785VJ4DI9GFyqnWiV5jXDvdc5qM8u107CiUXigpDgMyIRYzmvhioYDv722BeU4TJ8DZQyHc7CCVgCrphnQIF+oKYSiQlCzBB6sB7skBnisuvb/wrfYQY8gkMwGZbDXjgJG8AluRasOx+sPwscepJKJCaI1nvvdXAX3OIvgKOwG1bDNNgFD2ApuJfpA9ZZBGaVoswqd8k34SHcgmu8AEZYxr8nGkkK+kDL3dI/AjPnDdTCVFgMPWAFmA1T4DPMhgY4BffhKSj3HZh54vVPacjhOfG23VaIE7xl54+F4D+2zA476rlzkm+/KXt8zPE5vIWPoAg/QC0TTdKc/g6l18J5JCk10Ugyg2z4E3CIXPZHG5E7TCooMzBbzpUriujcrKsCxdbBfy/It+8ctAraCwVEEtor50S9DczCVCLpDLLTDpXX4LlzjatXPjIo9jvMlpdwBRxeroCpRdKCcjvis1ytNoFzTO7Q4mebYb1LUNNmiQQvpCnIrPGT4BOshHwywRVuDUyAOFlH8dJEmoJssVkjrlTfoKNw5VNkvtnW0f1iX09bkA0cDxfzbKlZo6QLeZYvebE0BblTPgK3IM5wcSV0j/QFoi0Ap+lEaoLY1DWzcXTJv1dA1/yuaKJ+AVWLq5KaIJupJA7y34S73CTD+/v2S/XqvU8kOM4wLbiPSWeQH5ozGBr7ORbbIeU4YftB638F3DQmHkkLOkAPJkJ1iXqipNNwHNxPhQgGgoFgIBgIBoKBNg38AjmceactR/rPAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 204,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'Change_selected_media_in_watched_media_folder',
options: {
File: "1",
},
},
],
up: [],
},
],
}
presets['CurrentSelectedMedia'] = {
type: 'button',
category: 'Media Player Select',
name: 'Current selected in watched media folder',
style: {
text: `$(${self.label}:watched_media_folder_selected_media_number)/$(${self.label}:watched_media_folder_total_files_count)\\n$(${self.label}:watched_media_folder_selected_media_name)`,
size: '14',
alignment: 'center:center',
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
// Media slot select
presets['MediaSlotSelectPrev'] = {
type: 'button',
category: 'Media Player Select',
name: 'Previous Media Slot',
style: {
text: "Select slot",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD7EFZiNyUDBhHnsFTB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w5VM2uSsEEcpiKxEW6rLmrTdPsz6+fr09vO5HA2UzTjH1OO4I8aM5jahziGtchxTFhe6D1rwJuGvNuaQt0GA+mw9Q8eaJI5+EEuJ8KFhQICgQFggJBgaDAXwV+AXqfqlFVYrHJAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 102,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'select_media_slot',
options: {
Slot: "-1",
},
},
],
up: [],
},
],
}
presets['MediaSlotSelectNext'] = {
type: 'button',
category: 'Media Player Select',
name: 'Next Media Slot',
style: {
text: "Select slot",
size: '14',
alignment: 'center:top',
png64: "iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8HOh0qao30cArp9SZZxDfg3h1wTzKxu5E/LUxX5wKdX5SnAzmDx4A4OIqLbB69yMesE1pKojLjVdoNsfyiPi45hZmAn3uLWdpOtfQOaVmikEs7ovj8hFWpz7EV6mel0L9Xy23FMYlPYZenAx0yDB1/PX6dledmQjikjkXCxqMJS9WtfFCyH9XtSekEF+2dH+P4tzITduTygGfv58a5VCTH5PtXD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v1dA1/yuaKJ+AVWLq5KaIJupJA7y34S73CTD+/v2S/XqvU8kOM4wLbiPSWeQH5ozGBr7ORbbIeU4YftB638F3DQmHkkLOkAPJkJ1iXqipNNwHNxPhQgGgoFgIBgIBoKBNg38AjmceactR/rPAAAAAElFTkSuQmCC",
alignment: "center:top",
pngalignment: "center:center",
color: 16777215,
bgcolor: 102,
},
feedbacks: [],
steps: [
{
down: [
{
actionId: 'select_media_slot',
options: {
Slot: "1",
},
},
],
up: [],
},
],
}
presets['CurrentSelectedMediaSlot'] = {
type: 'button',
category: 'Media Player Select',
name: 'Current selected media slot',
style: {
text: `$(${self.label}:media_slot_selected_number)/${numberOfMediaPlayerSlots}\\n$(${self.label}:media_slot_selected_filename)`,
size: '14',
alignment: 'center:center',
color: 16777215,
bgcolor: 0,
show_topbar: false,
},
feedbacks: [],
steps: [
{
down: [],
up: [],
},
],
}
presets['StoreMediaSlot'] = {
type: 'button',
category: 'Media Player Select',
name: 'Store slot',
style: {
text: `Store slot`,
size: '14',
alignment: 'center:top',
png64: 'iVBORw0KGgoAAAANSUhEUgAAAEgAAAA6CAYAAAATBx+NAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t/tkXda8Tbg0+PszB9FN8DuPaXKnKW4YcQn1Xk3HSIry5ps8UQ/2W5aQnxIwBdu7yFcgrxPsRjVXu8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YL0isUm+7Q4xYq9PJlJJvgriZnupOiPQ9zJRPrHULuVAjZkYLUvLefuQkZW30EpkG2g+VQQ14LwaK/oafIyg88xtMh2fhFfGUmbbaPEpQ0iJZC2siIydchq12wtuMWvZ7BHlrxCmefhuZJNJBTbHCqL3x4aSfgiRD38sU+8YP1v5a3S1Hy8pPQdq4nYZF4I2kaLnEek7iP1puM+K9fRPEoqxv4hI0oyNZi/SMleQETfLonKAkCrK5EE+S9oTTI9T4cn+bi3Q6ex39IprIXmdCz2Os0C+sc0PXar9kLWwIehHKppxjIyRbkEaOlgr9Zq+R9B6shQ1B98imDg6Cfm/3ZajT7mTRzgVnId5/ARvbt/a0Q9NrqfEu/lfqoXSw95IkF86AM+AMOAPOgDMwZuA3HjBBIa49utIAAAAASUVORK5CYII=',
pngalignment: "center:center",
color: 16777215,
bgcolor: 10066176,
},
feedbacks: [],
steps: [
{
down: [],
up: [
{
actionId: 'SetMediaSlotPath',
options: {
FilePath: `$(${self.label}:watched_media_folder_selected_media_path)`,
Key: "selected",
},
},
],
2000: {
options: {
runWhileHeld: true,
},
actions:[
{
actionId: "Clear",
options: {
Key: "Media",
Media: `selected`,
},
}
]
},
},
],
}
// Watched media folders
for (let i = 1; i <= numberOfMediaFolders; i++) {
presets[`MediaFolder${i}`] = getPresetforMediaFolder(
self.label,
`Folder ${i}`,
`media_folder${i}`,
i,
combineRgb(0, 0, 0),
`Folder${i}`,
)
}
//Watched Media Folder Media files
for (let i = 1; i <= Math.max(minNumberOfMediaFolderFiles, self.watchedMediaFolderState.filesList.length); i++) {
try{
presets[`MediaFile${i}`] = getPresetforWatchedMediaFolderFiles(
`File ${i}`,
`${i} - $(${self.label}:media_folder_file${i})`,
combineRgb(0, 0, 0),
`File${i}`,
)
}catch(err){
self.log('debug', err.message)
}
}
// Slides
presets['SlidePrevious'] = {
type: 'button',
category: 'Presentation slide control',
name: 'Slide Previous',
style: {
text: 'Slide',
size: 'auto',
png64:
'iVBORw0KGgoAAAANSUhEUgA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hEtFcgrPLDTSV2sBjhY13iX1WjnzcI5VtJHNqexiKXn9L7vsCM0vJ0xRv0DkLpbCPQibq6yixzR8BvsgDHW6BjKe23H4coOflccSvCjag7ZNDkl36OA2aMNOQ3LuwRsoW4Xp+038VO5aOSvI6ex4ggjS3esJZDflj9RNwbaSdzx4LA2RMAG6TuhaEcYHCu1Y8qh1nojQafoV6F9jGLp+TNY6eCydI+IQvIXs2UjXkAOx5FHrPBGhfedTjqTn1Ons5EDECfiSI+kBddkjwXAKQ8Rp+Aph/KAwPZxGcrJGxgXQbT6N3zxcznl1eKsQch30Y/0vWICYb/f1/CGRch7uw8l6RnCvNmADNmADNmADNmADNmADNrCrDPwFdF0Se2ZFbxMAAAAASUVORK5CYII=',
alignment: 'center:top',
pngalignment: 'center:center',
color: 16777215,
bgcolor: 0,
},
feedbacks: [],
steps: [
{
down: [
{