-
Notifications
You must be signed in to change notification settings - Fork 206
/
settings.js
958 lines (948 loc) · 28.3 KB
/
settings.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
import { settingClasses } from '@cookiemonsterteam/cookiemonsterframework/src/index';
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions';
import RefreshScale from '../Disp/HelperFunctions/RefreshScale';
import { SimDoSims } from '../Sim/VariablesAndData'; // eslint-disable-line no-unused-vars
import ToggleBotBar from '../Config/Toggles/ToggleBotBar';
import ToggleDetailedTime from '../Config/Toggles/ToggleDetailedTime';
import ToggleGCTimer from '../Config/Toggles/ToggleGCTimer';
import ToggleSectionHideButtons from '../Config/Toggles/ToggleSectionHideButtons';
import ToggleToolWarnPos from '../Config/Toggles/ToggleToolWarnPos';
import ToggleUpgradeBarAndColour from '../Config/Toggles/ToggleUpgradeBarAndColour';
import ToggleUpgradeBarFixedPos from '../Config/Toggles/ToggleUpgradeBarFixedPos';
import ToggleWrinklerButtons from '../Config/Toggles/ToggleWrinklerButtons';
import UpdateBuildings from '../Disp/BuildingsUpgrades/Buildings';
import { UpdateFavicon } from '../Disp/TabTitle/FavIcon';
import UpdateUpgradeSectionsHeight from '../Disp/BuildingsUpgrades/UpdateUpgradeSectionsHeight';
import UpdateUpgrades from '../Disp/BuildingsUpgrades/Upgrades';
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles';
/** This includes all options of CookieMonster and their relevant data */
const settings = {
// Calculation
CPSMode: new settingClasses.SettingStandard(
1,
'bool',
'Calculation',
['Current cookies per second', 'Average cookies per second'],
'Calculate times using current cookies per second or average cookies per second',
false,
),
AvgCPSHist: new settingClasses.SettingStandard(
3,
'bool',
'Calculation',
[
'Average CPS in past 10s',
'Average CPS in past 15s',
'Average CPS in past 30s',
'Average CPS in past 1m',
'Average CPS in past 5m',
'Average CPS in past 10m',
'Average CPS in past 15m',
'Average CPS in past 30m',
],
'How much time average Cookies Per Second should consider',
false,
),
AvgClicksHist: new settingClasses.SettingStandard(
0,
'bool',
'Calculation',
[
'Average clicks in past 1s',
'Average clicks in past 5s',
'Average clicks in past 10s',
'Average clicks in past 15s',
'Average clicks in past 30s',
],
'How much time average Cookie Clicks should consider',
false,
),
CalcWrink: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'Calculation',
[
'Calculate with wrinklers OFF',
'Calculate with wrinklers ON',
'Calculate with single fattest wrinkler ON',
],
'Calculate times and average Cookies Per Second with (only the single non-shiny fattest) wrinklers',
true,
() => {
SimDoSims = true;
},
),
// Notation
Scale: new settingClasses.SettingStandardWithFunc(
2,
'bool',
'Notation',
[
"Game's setting scale",
'Metric',
'Short scale',
'Short scale (Abbreviated)',
'Scientific notation',
'Engineering notation',
],
'Change how long numbers are formatted',
false,
() => {
RefreshScale();
},
),
ScaleDecimals: new settingClasses.SettingStandardWithFunc(
2,
'bool',
'Notation',
['1 decimals', '2 decimals', '3 decimals'],
`Set the number of decimals used when applicable. This only works with Cookie Monster scales and not with "Game's Setting Scale"`,
false,
() => {
RefreshScale();
},
),
ScaleSeparator: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'Notation',
['. for decimals (standard)', '. for thousands'],
'Set the separator used for decimals and thousands',
false,
() => {
RefreshScale();
},
),
ScaleCutoff: new settingClasses.SettingInputNumber(
999999,
'numscale',
'Notation',
'Notation cut-off point: ',
'The number from which Cookie Monster will start formatting numbers based on chosen scale. Standard is 999,999. Setting this above 999,999,999 might break certain notations',
1,
999999999,
),
TimeFormat: new settingClasses.SettingStandard(
0,
'bool',
'Notation',
['Time XXd, XXh, XXm, XXs', 'Time XX:XX:XX:XX:XX'],
'Change the time format',
false,
),
DetailedTime: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'Notation',
['Detailed time OFF', 'Detailed time ON'],
'Change how time is displayed in certain statistics and tooltips',
true,
() => {
ToggleDetailedTime();
},
),
PPDisplayTime: new settingClasses.SettingStandard(
0,
'bool',
'Notation',
['PP as value (standard)', 'PP as time unit'],
'Display PP as calculated value or as approximate time unit. Note that PP does not translate directly into a time unit and this is therefore only an approximation.',
false,
),
// Colours
BuildColour: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'Colours',
['Building colours OFF', 'Building colours ON'],
'Colour code buildings',
true,
() => {
UpdateBuildings();
},
),
PPOnlyConsiderBuyable: new settingClasses.SettingStandard(
0,
'bool',
'Colours',
["Don't ignore non-buyable", 'Ignore non-buyable'],
"Makes Cookie Monster label buildings and upgrades you can't buy right now red, useful in those situations where you just want to spend your full bank 'most optimally'",
true,
),
PPExcludeTop: new settingClasses.SettingStandard(
0,
'bool',
'Colours',
[
"Don't ignore any",
'Ignore 1st best',
'Ignore 1st and 2nd best',
'Ignore 1st, 2nd and 3rd best',
],
'Makes Cookie Monster ignore the 1st, 2nd or 3rd best buildings in labeling and colouring PP values',
true,
),
PPRigidelMode: new settingClasses.SettingStandard(
0,
'bool',
'Colours',
['Rigidel mode OFF', 'Rigidel mode ON'],
'Makes Cookie Monster ignore all "buy 1" options when colouring PP in order to stay at a total building count ending in 10 for pantheon god Rigidel',
true,
),
PPSecondsLowerLimit: new settingClasses.SettingInputNumber(
0,
'numscale',
'Colours',
'Lower limit for PP (in seconds): ',
'If a building or upgrade costs less than the specified seconds of CPS it will also be considered optimal and label it as such ("PP is less than xx seconds of CPS"); setting to 0 ignores this option',
0,
Infinity,
),
ColourBlue: new settingClasses.SettingColours(
'#4bb8f0',
'colour',
'Colours',
'Standard colour is blue. Used to show upgrades better than best PP building, for Click Frenzy bar, and for various labels',
),
ColourGreen: new settingClasses.SettingColours(
'#00ff00',
'colour',
'Colours',
'Standard colour is green. Used to show best PP building, for Blood Frenzy bar, and for various labels',
),
ColourYellow: new settingClasses.SettingColours(
'#ffff00',
'colour',
'Colours',
'Standard colour is yellow. Used to show buildings within the top 10 of PP, for Frenzy bar, and for various labels',
),
ColourOrange: new settingClasses.SettingColours(
'#ff7f00',
'colour',
'Colours',
'Standard colour is orange. Used to show buildings within the top 20 of PP, for Next Reindeer bar, and for various labels',
),
ColourRed: new settingClasses.SettingColours(
'#ff0000',
'colour',
'Colours',
'Standard colour is Red. Used to show buildings within the top 30 of PP, for Clot bar, and for various labels',
),
ColourPurple: new settingClasses.SettingColours(
'#ff00ff',
'colour',
'Colours',
'Standard colour is purple. Used to show buildings outside of the top 30 of PP, for Next Cookie bar, and for various labels',
),
ColourGray: new settingClasses.SettingColours(
'#b3b3b3',
'colour',
'Colours',
'Standard colour is gray. Used to show negative or infinity PP, and for Next Cookie/Next Reindeer bar',
),
ColourPink: new settingClasses.SettingColours(
'#ff1493',
'colour',
'Colours',
'Standard colour is pink. Used for Dragonflight bar',
),
ColourBrown: new settingClasses.SettingColours(
'#8b4513',
'colour',
'Colours',
'Standard colour is brown. Used for Dragon Harvest bar',
),
// BarsDisplay
BotBar: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Bottom bar OFF', 'Bottom bar ON'],
'Building information',
true,
() => {
ToggleBotBar();
},
),
TimerBar: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Timer bar OFF', 'Timer bar ON'],
'Bar with timers for golden cookie, season popup, Frenzy (Normal, Clot, Elder), Click Frenzy',
true,
() => {
ToggleTimerBar();
},
),
TimerBarPos: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'BarsDisplay',
['Timer bar position (top left)', 'Timer bar position (bottom)'],
'Placement of the timer bar',
false,
() => {
ToggleTimerBarPos();
},
),
TimerBarOverlay: new settingClasses.SettingStandard(
2,
'bool',
'BarsDisplay',
['Timer bar overlay OFF', 'Timer bar overlay only seconds', 'Timer bar overlay full'],
'Overlay on timers displaying seconds and/or percentage left',
true,
),
AutosaveTimerBar: new settingClasses.SettingStandard(
0,
'bool',
'BarsDisplay',
['Autosave timer bar OFF', 'Autosave timer bar ON'],
'Show a timer counting down till next autosave in the timer bar',
true,
),
UpBarColour: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Upgrade colours/bar OFF', 'Upgrade colours with bar ON', 'Upgrade colours without bar ON'],
'Colour code upgrades and optionally add a counter bar',
false,
() => {
ToggleUpgradeBarAndColour();
},
),
UpgradeBarFixedPos: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Upgrade bar fixed position OFF', 'Upgrade bar fixed position ON'],
'Lock the upgrade bar at top of the screen to prevent it from moving ofscreen when scrolling',
true,
() => {
ToggleUpgradeBarFixedPos();
},
),
SortBuildings: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'BarsDisplay',
[
'Sort buildings: default',
'Sort buildings: PP of x1 purchase',
'Sort buildings: PP of selected bulk mode',
'Sort buildings: price until next achievement',
],
'Sort the display of buildings in default order, by PP, or until next achievement',
false,
() => {
UpdateBuildings();
},
),
SortUpgrades: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'BarsDisplay',
['Sort upgrades: default', 'Sort upgrades: PP'],
'Sort the display of upgrades in either default order or by PP',
false,
() => {
UpdateUpgrades();
},
),
UpgradesNeverCollapse: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'BarsDisplay',
['Upgrades always expanded OFF', 'Upgrades always expanded ON'],
'Toggle to make the upgrades sections always expanded to the size needed to display all upgrades',
true,
() => {
UpdateUpgradeSectionsHeight();
},
),
DragonAuraInfo: new settingClasses.SettingStandard(
1,
'bool',
'BarsDisplay',
['Extra dragon aura info OFF', 'Extra dragon aura info ON'],
'Shows information about changes in CPS and costs in the dragon aura interface.',
true,
),
GrimoireBar: new settingClasses.SettingStandard(
1,
'bool',
'BarsDisplay',
['Grimoire magic meter timer OFF', 'Grimoire magic meter timer ON'],
'A timer overlay showing how long till the Grimoire magic meter is full',
true,
),
GCTimer: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Golden cookie timer OFF', 'Golden cookie timer ON'],
'A timer on the golden cookie when it has been spawned',
true,
() => {
ToggleGCTimer();
},
),
Favicon: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Favicon OFF', 'Favicon ON'],
'Update favicon with golden/wrath cookie',
true,
() => {
UpdateFavicon();
},
),
WrinklerButtons: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'BarsDisplay',
['Extra wrinkler buttons OFF', 'Extra wrinkler buttons ON'],
'Show buttons for popping wrinklers at bottom of cookie section',
true,
() => {
ToggleWrinklerButtons();
},
),
HideSectionsButtons: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'BarsDisplay',
['Hide buildings/upgrades button OFF', 'Hide buildings/upgrades button ON'],
'Show buttons for hiding and showing the buildings and upgrades sections in the right column',
true,
() => {
ToggleSectionHideButtons();
},
),
// Tooltip
TooltipBuildUpgrade: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Building/upgrade tooltip information OFF', 'Building/upgrade tooltip information ON'],
'Extra information in building/upgrade tooltips',
true,
),
TooltipAmor: new settingClasses.SettingStandard(
0,
'bool',
'Tooltip',
[
'Buildings tooltip amortization information OFF',
'Buildings tooltip amortization information ON',
],
'Add amortization information to buildings tooltip',
true,
),
ToolWarnLucky: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Tooltip lucky warning OFF', 'Tooltip lucky warning ON'],
'A warning when buying if it will put the bank under the amount needed for max "Lucky!" rewards',
true,
),
ToolWarnLuckyFrenzy: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Tooltip lucky frenzy warning OFF', 'Tooltip lucky frenzy warning ON'],
'A warning when buying if it will put the bank under the amount needed for max "Lucky!" (Frenzy) rewards',
true,
),
ToolWarnConjure: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Tooltip conjure warning OFF', 'Tooltip conjure warning ON'],
'A warning when buying if it will put the bank under the amount needed for max "Conjure Baked Goods" rewards',
true,
),
ToolWarnConjureFrenzy: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Tooltip conjure frenzy warning OFF', 'Tooltip conjure frenzy warning ON'],
'A warning when buying if it will put the bank under the amount needed for max "Conjure Baked Goods" rewards with Frenzy active',
true,
),
ToolWarnEdifice: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Tooltip edifice warning OFF', 'Tooltip edifice warning ON'],
'A warning when buying if it will put the bank under the amount needed for "Spontaneous Edifice" to possibly give you your most expensive building',
true,
),
ToolWarnUser: new settingClasses.SettingInputNumber(
0,
'numscale',
'Tooltip',
'Tooltip warning at x times CPS: ',
'Use this to show a customized warning if buying it will put the bank under the amount equal to value times cps; setting to 0 disables the function altogether',
0,
Infinity,
),
ToolWarnBon: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Calculate tooltip warning with bonus CPS OFF', 'Calculate tooltip warning with bonus CPS ON'],
'Calculate the warning with or without the bonus CPS you get from buying',
true,
),
ToolWarnPos: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'Tooltip',
['Tooltip warning position (left)', 'Tooltip warning position (bottom)'],
'Placement of the warning boxes',
false,
() => {
ToggleToolWarnPos();
},
),
TooltipGrim: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Grimoire tooltip information OFF', 'Grimoire tooltip information ON'],
'Extra information in tooltip for grimoire',
true,
),
TooltipWrink: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Wrinkler tooltip OFF', 'Wrinkler tooltip ON'],
'Shows the amount of cookies a wrinkler will give when popping it',
true,
),
TooltipLump: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Sugar lump tooltip OFF', 'Sugar lump tooltip ON'],
'Shows the current Sugar Lump type in Sugar lump tooltip.',
true,
),
TooltipPlots: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Garden plots tooltip OFF', 'Garden plots tooltip ON'],
'Shows a tooltip for plants that have a cookie reward.',
true,
),
TooltipPantheon: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Pantheon tooltip OFF', 'Pantheon tooltip ON'],
'Shows additional info in the pantheon tooltip',
true,
),
TooltipAscendButton: new settingClasses.SettingStandard(
1,
'bool',
'Tooltip',
['Show Extra Info Ascend Tooltip OFF', 'Show Extra Info Ascend Tooltip ON'],
'Shows additional info in the ascend tooltip',
true,
),
// Statistics
Stats: new settingClasses.SettingStandard(
1,
'bool',
'Statistics',
['Statistics OFF', 'Statistics ON'],
'Extra Cookie Monster statistics!',
true,
),
MissingUpgrades: new settingClasses.SettingStandard(
1,
'bool',
'Statistics',
['Missing upgrades OFF', 'Missing upgrades ON'],
'Shows missing upgrades in statistics menu',
true,
),
MissingAchievements: new settingClasses.SettingStandard(
0,
'bool',
'Statistics',
['Missing Achievements OFF', 'Missing Normal Achievements ON'],
'Shows missing normal achievements in statistics menu.',
true,
),
UpStats: new settingClasses.SettingStandard(
1,
'bool',
'Statistics',
['Statistics update rate (default)', 'Statistics update rate (1s)'],
'Default rate is once every 5 seconds',
false,
),
HeavenlyChipsTarget: new settingClasses.SettingInputNumber(
1,
'numscale',
'Statistics',
'Heavenly chips target: ',
'Use this to set a heavenly chips target that will be counted towards in the "prestige" statsistics sections',
1,
Infinity,
),
ShowMissedGC: new settingClasses.SettingStandard(
1,
'bool',
'Statistics',
['Missed GC OFF', 'Missed GC ON'],
'Show a stat in the statistics screen that counts how many golden cookies you have missed',
true,
),
// Notification
Title: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGeneral',
['Title OFF', 'Title ON', 'Title pinned tab highlight'],
'Update title with colden cookie/season popup timers; pinned tab highlight only changes the title when a golden cookie/season popup spawns; "!" means that golden cookie/reindeer can spawn',
true,
),
GeneralSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGeneral',
['Consider game volume setting OFF', 'Consider game volume setting ON'],
'Turning this toggle to "off" makes Cookie Monster no longer consider the volume setting of the base game, allowing mod notifications to play with base game volume turned down',
true,
),
GCNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationGC',
['Notification OFF', 'Notification ON'],
'Create a notification when golden cookie spawns',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.GCNotification,
);
},
),
GCFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGC',
['Flash OFF', 'Flash ON'],
'Flash screen on golden cookie',
true,
),
ColourGCFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationGC',
'The colour of the GC flash, standard colour is white',
),
GCSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGC',
['Sound OFF', 'Sound ON'],
'Play a sound on golden cookie',
true,
),
GCVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationGC', [], 'Volume'),
GCSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/66/66717_931655-lq.mp3',
'url',
'NotificationGC',
'Sound URL:',
'URL of the sound to be played when a golden cookie spawns',
),
FortuneNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationFC',
['Notification OFF', 'Notification ON'],
'Create a notification when fortune cookie is on the ticker',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.FortuneNotification,
);
},
),
FortuneFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationFC',
['Flash OFF', 'Flash ON'],
'Flash screen on fortune cookie spawn',
true,
),
ColourFortuneFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationFC',
'The colour of the fortune flash, standard colour is white',
),
FortuneSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationFC',
['Sound OFF', 'Sound ON'],
'Play a sound on fortune cookie spawn',
true,
),
FortuneVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationFC', [], 'Volume'),
FortuneSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/174/174027_3242494-lq.mp3',
'url',
'NotificationFC',
'Sound URL:',
'URL of the sound to be played when the ticker has a fortune cookie',
),
SeaNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationSea',
['Notification OFF', 'Notification ON'],
'Create a notification on season popup',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.SeaNotification,
);
},
),
SeaFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationSea',
['Flash OFF', 'Flash ON'],
'Flash screen on season popup',
true,
),
ColourSeaFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationSea',
'The colour of the season popup flash, standard colour is white',
),
SeaSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationSea',
['Sound OFF', 'Sound ON'],
'Play a sound on season popup',
true,
),
SeaVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationSea', [], 'Volume'),
SeaSoundURL: new settingClasses.SettingStandard(
'https://www.freesound.org/data/previews/121/121099_2193266-lq.mp3',
'url',
'NotificationSea',
'Sound URL:',
'URL of the sound to be played when on season popup spawns',
),
GardFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGard',
['Garden Tick Flash OFF', 'Flash ON'],
'Flash screen on garden tick',
true,
),
ColourGardFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationGard',
'The colour of the garden flash, standard colour is white',
),
GardSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationGard',
['Sound OFF', 'Sound ON'],
'Play a sound on garden tick',
true,
),
GardVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationGard', [], 'Volume'),
GardSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/103/103046_861714-lq.mp3',
'url',
'NotificationGard',
'Garden Tick Sound URL:',
'URL of the sound to be played when the garden ticks',
),
MagicNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationMagi',
['Notification OFF', 'Notification ON'],
'Create a notification when magic reaches maximum',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.MagicNotification,
);
},
),
MagicFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationMagi',
['Flash OFF', 'Flash ON'],
'Flash screen when magic reaches maximum',
true,
),
ColourMagicFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationMagi',
'The colour of the magic flash, standard colour is white',
),
MagicSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationMagi',
['Sound OFF', 'Sound ON'],
'Play a sound when magic reaches maximum',
true,
),
MagicVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationMagi', [], 'Volume'),
MagicSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/221/221683_1015240-lq.mp3',
'url',
'NotificationMagi',
'Sound URL:',
'URL of the sound to be played when magic reaches maxium',
),
WrinklerNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationWrink',
['Notification OFF', 'Notification ON'],
'Create a notification when a wrinkler appears',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.WrinklerNotification,
);
},
),
WrinklerFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationWrink',
['Flash OFF', 'Flash ON'],
'Flash screen when a wrinkler appears',
true,
),
ColourWrinklerFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationWrink',
'The colour of the wrinkler flash, standard colour is white',
),
WrinklerSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationWrink',
['Sound OFF', 'Sound ON'],
'Play a sound when a wrinkler appears',
true,
),
WrinklerVolume: new settingClasses.SettingVolume(100, 'vol', 'NotificationWrink', [], 'Volume'),
WrinklerSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/124/124186_8043-lq.mp3',
'url',
'NotificationWrink',
'Sound URL:',
'URL of the sound to be played when a wrinkler appears',
),
WrinklerMaxNotification: new settingClasses.SettingStandardWithFunc(
0,
'bool',
'NotificationWrinkMax',
['Notification OFF', 'Notification ON'],
'Create a notification when the maximum amount of wrinklers has appeared',
true,
() => {
CheckNotificationPermissions(
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.WrinklerMaxNotification,
);
},
),
WrinklerMaxFlash: new settingClasses.SettingStandard(
1,
'bool',
'NotificationWrinkMax',
['Flash OFF', 'Flash ON'],
'Flash screen when the maximum amount of Wrinklers has appeared',
true,
),
ColourWrinklerMaxFlash: new settingClasses.SettingColours(
'#ffffff',
'colour',
'NotificationWrinkMax',
'The colour of the maximum wrinkler flash, standard colour is white',
),
WrinklerMaxSound: new settingClasses.SettingStandard(
1,
'bool',
'NotificationWrinkMax',
['Sound OFF', 'Sound ON'],
'Play a sound when the maximum amount of wrinklers has appeared',
true,
),
WrinklerMaxVolume: new settingClasses.SettingVolume(
100,
'vol',
'NotificationWrinkMax',
[],
'Volume',
),
WrinklerMaxSoundURL: new settingClasses.SettingStandard(
'https://freesound.org/data/previews/152/152743_15663-lq.mp3',
'url',
'NotificationWrinkMax',
'Sound URL:',
'URL of the sound to be played when the maximum amount of wrinklers has appeared',
),
// Miscellaneous
BulkBuyBlock: new settingClasses.SettingStandard(
1,
'bool',
'Miscellaneous',
['Block bulk buying OFF', 'Block bulk buying ON'],
"Block clicking bulk buying when you can't buy all. This prevents buying 7 of a building when you are in buy-10 or buy-100 mode.",
true,
),
FavouriteSettings: new settingClasses.SettingStandardWithFunc(
1,
'bool',
'Miscellaneous',
[
'Favourite settings section OFF',
'Favourite settings section ON',
'Favourite settings section ON (Locked)',
],
"Show stars before each setting which allows selecting it for a 'favourites' section at the top of the Cookie Monster settings. Setting this to Locked removes the stars but shows the 'favourites' section",
true,
() => {
Game.UpdateMenu();
},
),
};
export default settings;