forked from ATTWoWAddon/AllTheThings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.lua
2747 lines (2582 loc) · 105 KB
/
Settings.lua
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
--------------------------------------------------------------------------------
-- A L L T H E T H I N G S --
--------------------------------------------------------------------------------
-- Copyright 2017-2019 Dylan Fortune (Crieve-Sargeras) --
--------------------------------------------------------------------------------
local app = AllTheThings;
local L = app.L;
-- Binding Localizations
BINDING_HEADER_ALLTHETHINGS = L["TITLE"];
BINDING_NAME_ALLTHETHINGS_TOGGLEACCOUNTMODE = L["TOGGLE_ACCOUNT_MODE"];
BINDING_NAME_ALLTHETHINGS_TOGGLECOMPLETIONISTMODE = L["TOGGLE_COMPLETIONIST_MODE"];
BINDING_NAME_ALLTHETHINGS_TOGGLEDEBUGMODE = L["TOGGLE_DEBUG_MODE"];
BINDING_HEADER_ALLTHETHINGS_PREFERENCES = L["PREFERENCES"];
BINDING_NAME_ALLTHETHINGS_TOGGLECOMPLETEDTHINGS = L["TOGGLE_COMPLETEDTHINGS"];
BINDING_NAME_ALLTHETHINGS_TOGGLECOMPLETEDGROUPS = L["TOGGLE_COMPLETEDGROUPS"];
BINDING_NAME_ALLTHETHINGS_TOGGLECOLLECTEDTHINGS = L["TOGGLE_COLLECTEDTHINGS"];
BINDING_NAME_ALLTHETHINGS_TOGGLEBOEITEMS = L["TOGGLE_BOEITEMS"];
BINDING_NAME_ALLTHETHINGS_TOGGLESOURCETEXT = L["TOGGLE_SOURCETEXT"];
BINDING_HEADER_ALLTHETHINGS_MODULES = L["MODULES"];
BINDING_NAME_ALLTHETHINGS_TOGGLEMAINLIST = L["TOGGLE_MAINLIST"];
BINDING_NAME_ALLTHETHINGS_TOGGLEMINILIST = L["TOGGLE_MINILIST"];
BINDING_NAME_ALLTHETHINGS_TOGGLE_PROFESSION_LIST = L["TOGGLE_PROFESSION_LIST"];
BINDING_NAME_ALLTHETHINGS_TOGGLE_RAID_ASSISTANT = L["TOGGLE_RAID_ASSISTANT"];
BINDING_NAME_ALLTHETHINGS_TOGGLE_WORLD_QUESTS_LIST = L["TOGGLE_WORLD_QUESTS_LIST"];
BINDING_NAME_ALLTHETHINGS_TOGGLERANDOM = L["TOGGLE_RANDOM"];
BINDING_NAME_ALLTHETHINGS_REROLL_RANDOM = L["REROLL_RANDOM"];
-- The Settings Frame
local settings = CreateFrame("FRAME", app:GetName() .. "-Settings", UIParent );
app.Settings = settings;
settings.name = app:GetName();
settings.MostRecentTab = nil;
settings.Tabs = {};
settings:SetBackdrop({
bgFile = "Interface/RAIDFRAME/UI-RaidFrame-GroupBg",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = false, edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 }
});
settings:SetBackdropColor(0, 0, 0, 1);
InterfaceOptions_AddCategory(settings);
-- Music / Sound Management (You can add your own sounds for this if you want.)
settings.AUDIO_COMPLETE_TABLE = {
"Interface\\AddOns\\AllTheThings\\assets\\complete1.ogg",
};
settings.AUDIO_FANFARE_TABLE = {
"Interface\\AddOns\\AllTheThings\\assets\\fanfare1.ogg",
"Interface\\AddOns\\AllTheThings\\assets\\fanfare2.ogg",
"Interface\\AddOns\\AllTheThings\\assets\\fanfare3.ogg",
"Interface\\AddOns\\AllTheThings\\assets\\fanfare4.ogg",
"Interface\\AddOns\\AllTheThings\\assets\\fanfare5.ogg",
"Interface\\AddOns\\AllTheThings\\assets\\fanfare6.ogg",
};
settings.AUDIO_RAREFIND_TABLE = {
"Interface\\AddOns\\AllTheThings\\assets\\rarefind1.ogg",
};
settings.AUDIO_REMOVE_TABLE = {
"Interface\\AddOns\\AllTheThings\\assets\\remove1.ogg",
};
-- Settings Class
local GeneralSettingsBase = {
__index = {
["AccountMode"] = false,
["Completionist"] = true,
["MainOnly"] = false,
["DebugMode"] = false,
["AccountWide:Achievements"] = true,
-- ["AccountWide:BattlePets"] = true,
["AccountWide:FlightPaths"] = true,
["AccountWide:Followers"] = true,
-- ["AccountWide:Heirlooms"] = true,
["AccountWide:Illusions"] = true,
-- ["AccountWide:Mounts"] = true,
["AccountWide:MusicRolls"] = true,
-- ["AccountWide:Quests"] = false,
["AccountWide:Recipes"] = true,
["AccountWide:Reputations"] = true,
["AccountWide:SelfieFilters"] = true,
["AccountWide:Titles"] = true,
-- ["AccountWide:Toys"] = true,
-- ["AccountWide:Transmog"] = true,
["Thing:Achievements"] = true,
["Thing:BattlePets"] = true,
["Thing:FlightPaths"] = true,
["Thing:Followers"] = true,
["Thing:Heirlooms"] = true,
["Thing:Illusions"] = true,
["Thing:Mounts"] = true,
["Thing:MusicRolls"] = true,
["Thing:Quests"] = false,
["Thing:Recipes"] = true,
["Thing:Reputations"] = true,
["Thing:SelfieFilters"] = true,
["Thing:Titles"] = true,
["Thing:Toys"] = true,
["Thing:Transmog"] = true,
["Show:CompletedGroups"] = false,
["Show:CollectedThings"] = false,
},
};
local FilterSettingsBase = {
__index = {
},
};
local TooltipSettingsBase = {
__index = {
["Auto:MiniList"] = true,
["Auto:ProfessionList"] = true,
["Celebrate"] = true,
["ClassRequirements"] = true,
["Descriptions"] = true,
["DisplayInCombat"] = true,
["Enabled"] = true,
["Expand:Difficulty"] = true,
["IncludeOriginalSource"] = true,
["LootSpecializations"] = true,
["MinimapButton"] = true,
["MinimapSize"] = 36,
["MinimapStyle"] = true,
["Models"] = true,
["LiveScan"] = false,
["Locations"] = 5,
["Precision"] = 2,
["Progress"] = true,
["QuestGivers"] = true,
["RaceRequirements"] = true,
["Report:Collected"] = true,
["ShowIconOnly"] = false,
["SharedAppearances"] = true,
["Skip:Cutscenes"] = false,
["SourceLocations"] = true,
["SourceLocations:Completed"] = true,
["SourceLocations:Creatures"] = true,
["SourceLocations:Things"] = true,
["SpecializationRequirements"] = true,
["SummarizeThings"] = true,
["Warn:Difficulty"] = false,
["Warn:Removed"] = true,
},
};
local OnClickForTab = function(self)
local id = self:GetID();
local parent = self:GetParent();
PanelTemplates_SetTab(parent, id);
-- print("CLICKED TAB", id, self:GetText());
for i,tab in ipairs(parent.Tabs) do
if i == id then
for j,o in ipairs(tab.objects) do
o:Show();
end
else
for j,o in ipairs(tab.objects) do
o:Hide();
end
end
end
end;
settings.Initialize = function(self)
PanelTemplates_SetNumTabs(self, #self.Tabs);
-- Assign the default settings
if not AllTheThingsSettings then AllTheThingsSettings = {}; end
if not AllTheThingsSettings.General then AllTheThingsSettings.General = {}; end
if not AllTheThingsSettings.Tooltips then AllTheThingsSettings.Tooltips = {}; end
setmetatable(AllTheThingsSettings.General, GeneralSettingsBase);
setmetatable(AllTheThingsSettings.Tooltips, TooltipSettingsBase);
-- Assign the preset filters for your character class as the default states
if not AllTheThingsSettingsPerCharacter then AllTheThingsSettingsPerCharacter = {}; end
if not AllTheThingsSettingsPerCharacter.Filters then AllTheThingsSettingsPerCharacter.Filters = {}; end
setmetatable(AllTheThingsSettingsPerCharacter.Filters, FilterSettingsBase);
FilterSettingsBase.__index = app.Presets[app.Class];
self.LocationsSlider:SetValue(self:GetTooltipSetting("Locations"));
self.PrecisionSlider:SetValue(self:GetTooltipSetting("Precision"));
self.MinimapButtonSizeSlider:SetValue(self:GetTooltipSetting("MinimapSize"));
if self:GetTooltipSetting("MinimapButton") then
if not app.Minimap then app.Minimap = app.CreateMinimapButton(); end
app.Minimap:Show();
elseif app.Minimap then
app.Minimap:Hide();
end
OnClickForTab(self.Tabs[1]);
self:Refresh();
self:UpdateMode();
if self:GetTooltipSetting("Auto:MainList") then
app:OpenMainList();
end
if self:GetTooltipSetting("Auto:RaidAssistant") then
app:GetWindow("RaidAssistant"):Show();
end
if self:GetTooltipSetting("Auto:WorldQuestsList") then
app:GetWindow("WorldQuests"):Show();
end
end
settings.Get = function(self, setting)
return AllTheThingsSettings.General[setting];
end
settings.GetFilter = function(self, filterID)
return AllTheThingsSettingsPerCharacter.Filters[filterID];
end
settings.GetModeString = function(self)
local mode = "Mode";
if settings:Get("Thing:Transmog") or settings:Get("DebugMode") then
if self:Get("Completionist") then
mode = "Completionist " .. mode;
else
mode = "Unique Appearance " .. mode;
end
end
if self:Get("DebugMode") then
mode = "Debug " .. mode;
else
if self:Get("AccountMode") then
mode = "Account " .. mode;
elseif self:Get("MainOnly") and not self:Get("Completionist") then
mode = mode .. " (Main Only)";
end
local things = {};
local thingCount = 0;
local totalThingCount = 0;
for key,_ in pairs(GeneralSettingsBase.__index) do
if string.sub(key, 1, 6) == "Thing:" then
totalThingCount = totalThingCount + 1;
if settings:Get(key) then
thingCount = thingCount + 1;
table.insert(things, string.sub(key, 7));
end
end
end
if thingCount == 0 then
mode = "None of the Things " .. mode;
elseif thingCount == 1 then
mode = things[1] .. " Only " .. mode;
elseif thingCount == 2 then
mode = things[1] .. " + " .. things[2] .. " Only " .. mode;
elseif thingCount == totalThingCount then
mode = "Insane " .. mode;
elseif not settings:Get("Thing:Transmog") then
mode = "Some of the Things " .. mode;
end
end
if self:Get("Filter:ByLevel") then
mode = "Level " .. app.Level .. " " .. mode;
end
return mode;
end
settings.GetPersonal = function(self, setting)
return AllTheThingsSettingsPerCharacter[setting];
end
settings.GetTooltipSetting = function(self, setting)
return AllTheThingsSettings.Tooltips[setting];
end
settings.Set = function(self, setting, value)
AllTheThingsSettings.General[setting] = value;
self:Refresh();
end
settings.SetFilter = function(self, filterID, value)
AllTheThingsSettingsPerCharacter.Filters[filterID] = value;
self:Refresh();
app:RefreshData();
end
settings.SetTooltipSetting = function(self, setting, value)
AllTheThingsSettings.Tooltips[setting] = value;
wipe(app.searchCache);
self:Refresh();
end
settings.SetPersonal = function(self, setting, value)
AllTheThingsSettingsPerCharacter[setting] = value;
self:Refresh();
end
settings.Refresh = function(self)
for i,tab in ipairs(self.Tabs) do
if tab.OnRefresh then tab:OnRefresh(); end
for j,o in ipairs(tab.objects) do
if o.OnRefresh then o:OnRefresh(); end
end
end
end
settings.CreateCheckBox = function(self, text, OnRefresh, OnClick)
local cb = CreateFrame("CheckButton", self:GetName() .. "-" .. text, self, "InterfaceOptionsCheckButtonTemplate");
table.insert(self.MostRecentTab.objects, cb);
cb:SetScript("OnClick", OnClick);
cb.OnRefresh = OnRefresh;
cb.Text:SetText(text);
return cb;
end
settings.CreateTab = function(self, text)
local id = #self.Tabs + 1;
local tab = CreateFrame('Button', self:GetName() .. '-Tab' .. id, self, 'OptionsFrameTabButtonTemplate');
if id > 1 then tab:SetPoint("TOPLEFT", self.Tabs[id - 1], "TOPRIGHT", 0, 0); end
table.insert(self.Tabs, tab);
self.MostRecentTab = tab;
tab.objects = {};
tab:SetID(id);
tab:SetText(text);
PanelTemplates_TabResize(tab, 0);
tab:SetScript('OnClick', OnClickForTab);
return tab;
end
settings.ShowCopyPasteDialog = function(self)
app:ShowPopupDialogWithEditBox(nil, self:GetText());
end
settings.SetAccountMode = function(self, accountMode)
self:Set("AccountMode", accountMode);
self:UpdateMode();
app:RefreshData();
end
settings.ToggleAccountMode = function(self)
self:SetAccountMode(not self:Get("AccountMode"));
end
settings.SetCompletionistMode = function(self, completionistMode)
self:Set("Completionist", completionistMode);
self:UpdateMode();
wipe(app.GetDataMember("CollectedSources"));
app.RefreshCollections();
end
settings.ToggleCompletionistMode = function(self)
self:SetCompletionistMode(not self:Get("Completionist"));
end
settings.SetDebugMode = function(self, debugMode)
self:Set("DebugMode", debugMode);
self:UpdateMode();
if debugMode and not self:Get("Thing:Transmog") then
wipe(app.GetDataMember("CollectedSources"));
app.RefreshCollections();
end
app:RefreshData();
end
settings.ToggleDebugMode = function(self)
self:SetDebugMode(not self:Get("DebugMode"));
end
settings.SetMainOnlyMode = function(self, mainOnly)
self:Set("MainOnly", mainOnly);
self:SetCompletionistMode(self:Get("Completionist"));
end
settings.ToggleMainOnlyMode = function(self)
self:SetMainOnlyMode(not self:Get("MainOnly"));
end
settings.SetCompletedThings = function(self, checked)
self:Set("Show:CompletedGroups", checked);
self:Set("Show:CollectedThings", checked);
self:UpdateMode();
app:RefreshData();
end
settings.ToggleCompletedThings = function(self)
self:SetCompletedThings(not self:Get("Show:CompletedGroups"));
end
settings.SetCompletedGroups = function(self, checked)
self:Set("Show:CompletedGroups", checked);
self:UpdateMode();
app:RefreshData();
end
settings.ToggleCompletedGroups = function(self)
self:SetCompletedGroups(not self:Get("Show:CompletedGroups"));
end
settings.SetCollectedThings = function(self, checked)
self:Set("Show:CollectedThings", checked);
self:UpdateMode();
app:RefreshData();
end
settings.ToggleCollectedThings = function(self)
settings:SetCollectedThings(not self:Get("Show:CollectedThings", checked));
end
settings.SetHideBOEItems = function(self, checked)
self:Set("Hide:BoEs", checked);
if checked then
app.RequireBindingFilter = app.FilterItemClass_RequireBinding;
else
app.RequireBindingFilter = app.NoFilter;
end
app:RefreshData();
end
settings.ToggleBOEItems = function(self)
self:SetHideBOEItems(not self:Get("Hide:BoEs"));
end
settings.UpdateMode = function(self)
if self:Get("Completionist") then
app.ItemSourceFilter = app.FilterItemSource;
app.ActiveItemCollectionHelper = app.CompletionistItemCollectionHelper;
app.ActiveItemRemovalHelper = app.CompletionistItemRemovalHelper;
else
if self:Get("MainOnly") and not self:Get("AccountMode") and not self:Get("DebugMode") then
app.ItemSourceFilter = app.FilterItemSourceUniqueOnlyMain;
app.ActiveItemCollectionHelper = app.UniqueModeItemCollectionHelperOnlyMain;
app.ActiveItemRemovalHelper = app.UniqueModeItemRemovalHelperOnlyMain;
else
app.ItemSourceFilter = app.FilterItemSourceUnique;
app.ActiveItemCollectionHelper = app.UniqueModeItemCollectionHelper;
app.ActiveItemRemovalHelper = app.UniqueModeItemRemovalHelper;
end
end
if self:Get("DebugMode") then
app.GroupFilter = app.NoFilter;
app.SeasonalItemFilter = app.NoFilter;
app.UnobtainableItemFilter = app.NoFilter;
app.VisibilityFilter = app.NoFilter;
app.AccountWideAchievements = true;
app.AccountWideBattlePets = true;
app.AccountWideFlightPaths = true;
app.AccountWideFollowers = true;
app.AccountWideIllusions = true;
app.AccountWideMounts = true;
app.AccountWideMusicRolls = true;
app.AccountWideQuests = true;
app.AccountWideRecipes = true;
app.AccountWideReputations = true;
app.AccountWideSelfieFilters = true;
app.AccountWideTitles = true;
app.AccountWideToys = true;
app.AccountWideTransmog = true;
app.CollectibleAchievements = true;
app.CollectibleBattlePets = true;
app.CollectibleFlightPaths = true;
app.CollectibleFollowers = true;
app.CollectibleHeirlooms = true;
app.CollectibleIllusions = true;
app.CollectibleMounts = true;
app.CollectibleMusicRolls = true;
app.CollectibleQuests = true;
app.CollectibleRecipes = true;
app.CollectibleReputations = true;
app.CollectibleSelfieFilters = true;
app.CollectibleTitles = true;
app.CollectibleToys = true;
app.CollectibleTransmog = true;
else
app.VisibilityFilter = app.ObjectVisibilityFilter;
app.GroupFilter = app.FilterItemClass;
if app.GetDataMember("FilterSeasonal") then
app.SeasonalItemFilter = app.FilterItemClass_SeasonalItem;
else
app.SeasonalItemFilter = app.NoFilter;
end
if app.GetDataMember("FilterUnobtainableItems") then
app.UnobtainableItemFilter = app.FilterItemClass_UnobtainableItem;
else
app.UnobtainableItemFilter = app.NoFilter;
end
app.AccountWideAchievements = self:Get("AccountWide:Achievements");
app.AccountWideBattlePets = self:Get("AccountWide:BattlePets");
app.AccountWideFlightPaths = self:Get("AccountWide:FlightPaths");
app.AccountWideFollowers = self:Get("AccountWide:Followers");
app.AccountWideIllusions = self:Get("AccountWide:Illusions");
app.AccountWideMounts = self:Get("AccountWide:Mounts");
app.AccountWideMusicRolls = self:Get("AccountWide:MusicRolls");
app.AccountWideQuests = self:Get("AccountWide:Quests");
app.AccountWideRecipes = self:Get("AccountWide:Recipes");
app.AccountWideReputations = self:Get("AccountWide:Reputations");
app.AccountWideSelfieFilters = self:Get("AccountWide:SelfieFilters");
app.AccountWideTitles = self:Get("AccountWide:Titles");
app.AccountWideToys = self:Get("AccountWide:Toys");
app.AccountWideTransmog = self:Get("AccountWide:Transmog");
app.CollectibleAchievements = self:Get("Thing:Achievements");
app.CollectibleBattlePets = self:Get("Thing:BattlePets");
app.CollectibleFlightPaths = self:Get("Thing:FlightPaths");
app.CollectibleFollowers = self:Get("Thing:Followers");
app.CollectibleHeirlooms = self:Get("Thing:Heirlooms");
app.CollectibleIllusions = self:Get("Thing:Illusions");
app.CollectibleMounts = self:Get("Thing:Mounts");
app.CollectibleMusicRolls = self:Get("Thing:MusicRolls");
app.CollectibleQuests = self:Get("Thing:Quests");
app.CollectibleRecipes = self:Get("Thing:Recipes");
app.CollectibleReputations = self:Get("Thing:Reputations");
app.CollectibleSelfieFilters = self:Get("Thing:SelfieFilters");
app.CollectibleTitles = self:Get("Thing:Titles");
app.CollectibleToys = self:Get("Thing:Toys");
app.CollectibleTransmog = self:Get("Thing:Transmog");
end
if self:Get("AccountMode") then
app.ItemTypeFilter = app.NoFilter;
app.ClassRequirementFilter = app.NoFilter;
app.RaceRequirementFilter = app.NoFilter;
app.RequiredSkillFilter = app.NoFilter;
else
app.ItemTypeFilter = app.FilterItemClass_RequireItemFilter;
app.ClassRequirementFilter = app.FilterItemClass_RequireClasses;
app.RaceRequirementFilter = app.FilterItemClass_RequireRaces;
app.RequiredSkillFilter = app.FilterItemClass_RequiredSkill;
end
if self:Get("Show:CompletedGroups") or self:Get("DebugMode") then
app.GroupVisibilityFilter = app.NoFilter;
else
app.GroupVisibilityFilter = app.FilterGroupsByCompletion;
end
if self:Get("Show:CollectedThings") or self:Get("DebugMode") then
app.CollectedItemVisibilityFilter = app.NoFilter;
else
app.CollectedItemVisibilityFilter = app.Filter;
end
if self:Get("Show:IncompleteThings") then
app.ShowIncompleteThings = app.FilterItemTrackable;
else
app.ShowIncompleteThings = app.Filter;
end
if self:Get("AccountWide:Achievements") then
app.AchievementFilter = 4;
else
app.AchievementFilter = 13;
end
if self:Get("AccountWide:Recipes") then
app.RecipeChecker = app.GetDataSubMember;
else
app.RecipeChecker = app.GetTempDataSubMember;
end
if self:Get("Filter:BoEs") then
app.ItemBindFilter = app.FilterItemBind;
else
app.ItemBindFilter = app.Filter;
end
if self:Get("Hide:BoEs") then
app.RequireBindingFilter = app.FilterItemClass_RequireBinding;
else
app.RequireBindingFilter = app.NoFilter;
end
app:UnregisterEvent("PLAYER_LEVEL_UP");
if self:Get("Filter:ByLevel") then
app:RegisterEvent("PLAYER_LEVEL_UP");
app.GroupRequirementsFilter = app.FilterGroupsByLevel;
else
app.GroupRequirementsFilter = app.NoFilter;
end
app:UnregisterEvent("TAXIMAP_OPENED");
if self:Get("Thing:FlightPaths") or self:Get("DebugMode") then
app:RegisterEvent("TAXIMAP_OPENED");
end
end
-- The ALL THE THINGS Epic Logo!
local f = settings:CreateTexture(nil, "ARTWORK");
f:SetATTSprite("base_36x36", 429, 217, 36, 36, 512, 256);
f:SetPoint("TOPLEFT", settings, "TOPLEFT", 8, -8);
f:SetSize(36, 36);
f:Show();
settings.logo = f;
f = settings:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
f:SetPoint("TOPLEFT", settings.logo, "TOPRIGHT", 4, -4);
f:SetJustifyH("LEFT");
f:SetText(L["TITLE"]);
f:SetScale(1.5);
f:Show();
settings.title = f;
f = settings:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
f:SetPoint("TOPRIGHT", settings, "TOPRIGHT", -8, -8);
f:SetJustifyH("RIGHT");
f:SetText("v" .. GetAddOnMetadata("AllTheThings", "Version"));
f:Show();
settings.version = f;
f = CreateFrame("Button", nil, settings, "OptionsButtonTemplate");
f:SetPoint("TOPLEFT", settings, "BOTTOMLEFT", 0, -6);
f:SetText("https://www.twitch.tv/dfortun81");
f:SetWidth(230);
f:SetHeight(30);
f:RegisterForClicks("AnyUp");
f:SetScript("OnClick", settings.ShowCopyPasteDialog);
f:SetATTTooltip("Click this button to copy the url to get to my Twitch Channel.\n\nYou can ask questions while I'm streaming and I will try my best to answer them!");
settings.twitch = f;
f = CreateFrame("Button", nil, settings, "OptionsButtonTemplate");
f:SetPoint("TOPLEFT", settings.twitch, "TOPRIGHT", 4, 0);
f:SetText("https://discord.gg/9GFDsgy");
f:SetWidth(200);
f:SetHeight(30);
f:RegisterForClicks("AnyUp");
f:SetScript("OnClick", settings.ShowCopyPasteDialog);
f:SetATTTooltip("Click this button to copy the url to get to the ALL THE THINGS Discord.\n\nYou can share your progress/frustrations with other collectors!");
settings.community = f;
------------------------------------------
-- The "General" Tab. --
------------------------------------------
local line;
(function()
local tab = settings:CreateTab("General");
tab:SetPoint("TOPLEFT", settings.logo, "BOTTOMRIGHT", 16, 0);
line = settings:CreateTexture(nil, "ARTWORK");
line:SetPoint("LEFT", settings, "LEFT", 4, 0);
line:SetPoint("RIGHT", settings, "RIGHT", -4, 0);
line:SetPoint("TOP", settings.Tabs[1], "BOTTOM", 0, 0);
line:SetColorTexture(1, 1, 1, 0.4);
line:SetHeight(2);
local ModeLabel = settings:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
ModeLabel:SetPoint("TOPLEFT", line, "BOTTOMLEFT", 8, -8);
ModeLabel:SetJustifyH("LEFT");
ModeLabel:Show();
table.insert(settings.MostRecentTab.objects, ModeLabel);
ModeLabel.OnRefresh = function(self)
self:SetText(settings:GetModeString());
end;
local DebugModeCheckBox = settings:CreateCheckBox("|Cff15abffDebug Mode|r (Show Everything)",
function(self)
self:SetChecked(settings:Get("DebugMode"));
end,
function(self)
settings:SetDebugMode(self:GetChecked());
end);
DebugModeCheckBox:SetATTTooltip("Quite literally... ALL THE THINGS IN THE GAME. PERIOD. DOT. YEAH, ALL OF IT. Even Uncollectible things like bags, consumables, reagents, etc will appear in the lists. (Even yourself! No, really. Look.)\n\nThis is for Debugging purposes only. Not intended to be used for completion tracking.\n\nThis mode bypasses all filters, including Unobtainables.");
DebugModeCheckBox:SetPoint("TOPLEFT", ModeLabel, "BOTTOMLEFT", 0, -8);
local CompletionistModeCheckBox = settings:CreateCheckBox("|CFFADD8E6Completionist Mode|r (All Sources)",
function(self)
self:SetChecked(settings:Get("Completionist"));
if not settings:Get("Thing:Transmog") and not settings:Get("DebugMode") and not settings:Get("AccountMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:SetCompletionistMode(self:GetChecked());
end);
CompletionistModeCheckBox:SetATTTooltip("Turn this setting off if you want ATT to mark shared appearances that qualify for the same unlock requirements as 'Collected'.\n\nItems 'Collected' through this mode will be marked with an asterisk (*). This means that you haven't collected that specific source of the appearance yet.");
CompletionistModeCheckBox:SetPoint("TOPLEFT", DebugModeCheckBox, "BOTTOMLEFT", 0, 4);
local MainOnlyModeCheckBox = settings:CreateCheckBox(L["I_ONLY_CARE_ABOUT_MY_MAIN"],
function(self)
self:SetChecked(settings:Get("MainOnly"));
if settings:Get("Completionist") or settings:Get("AccountMode") or settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:SetMainOnlyMode(self:GetChecked());
end);
MainOnlyModeCheckBox:SetATTTooltip("Turn this setting on if you additionally want ATT to *pretend* that you've earned all shared appearances not locked by a different race or class.\n\nAs an example, if you have collected a Hunter-Only Tier Piece from ICC and there is a shared appearance from the raid without class/race restrictions, ATT will *pretend* that you've earned that source of the appearance as well.\n\nNOTE: Switching to a different race/class will incorrectly report that you've earned appearance sources that you haven't collected for that new chararacter when unlocked in this way.");
MainOnlyModeCheckBox:SetPoint("TOPLEFT", CompletionistModeCheckBox, "BOTTOMLEFT", 4, 4);
local AccountModeCheckBox = settings:CreateCheckBox("|Cff00ab00Account Mode|r (All Characters)",
function(self)
self:SetChecked(settings:Get("AccountMode"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:SetAccountMode(self:GetChecked());
end);
AccountModeCheckBox:SetATTTooltip("Turn this setting on if you want to track all of the Things for all of your characters regardless of class and race filters.\n\nUnobtainable filters still apply.");
AccountModeCheckBox:SetPoint("TOPLEFT", MainOnlyModeCheckBox, "BOTTOMLEFT", -5, 4);
-- This creates the "Precision" slider.
local PrecisionSlider = CreateFrame("Slider", "ATTPrecisionSlider", settings, "OptionsSliderTemplate");
PrecisionSlider:SetPoint("RIGHT", settings, "RIGHT", -20, 0);
PrecisionSlider:SetPoint("TOP", ModeLabel, "BOTTOM", 0, -12);
table.insert(settings.MostRecentTab.objects, PrecisionSlider);
settings.PrecisionSlider = PrecisionSlider;
PrecisionSlider.tooltipText = 'Use this to customize your desired level of precision in percentage calculations.\n\nDefault: 2';
PrecisionSlider:SetOrientation('HORIZONTAL');
PrecisionSlider:SetWidth(260);
PrecisionSlider:SetHeight(20);
PrecisionSlider:SetValueStep(1);
PrecisionSlider:SetMinMaxValues(0, 8);
PrecisionSlider:SetObeyStepOnDrag(true);
_G[PrecisionSlider:GetName() .. 'Low']:SetText('0')
_G[PrecisionSlider:GetName() .. 'High']:SetText('8')
_G[PrecisionSlider:GetName() .. 'Text']:SetText("Level of Precision for Percentage")
PrecisionSlider.Label = PrecisionSlider:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall");
PrecisionSlider.Label:SetPoint("TOP", PrecisionSlider, "BOTTOM", 0, 0);
PrecisionSlider.Label:SetText(PrecisionSlider:GetValue());
PrecisionSlider:SetScript("OnValueChanged", function(self, newValue)
self.Label:SetText(newValue);
if newValue == settings:GetTooltipSetting("Precision") then
return 1;
end
settings:SetTooltipSetting("Precision", newValue)
app:UpdateWindows();
end);
-- This creates the "Minimap Button Size" slider.
local MinimapButtonSizeSlider = CreateFrame("Slider", "ATTMinimapButtonSizeSlider", settings, "OptionsSliderTemplate");
MinimapButtonSizeSlider:SetPoint("RIGHT", settings, "RIGHT", -20, 0);
MinimapButtonSizeSlider:SetPoint("TOP", PrecisionSlider, "BOTTOM", 0, -28);
table.insert(settings.MostRecentTab.objects, MinimapButtonSizeSlider);
settings.MinimapButtonSizeSlider = MinimapButtonSizeSlider;
MinimapButtonSizeSlider.tooltipText = 'Use this to customize the size of the Minimap Button.\n\nDefault: 36';
MinimapButtonSizeSlider:SetOrientation('HORIZONTAL');
MinimapButtonSizeSlider:SetWidth(260);
MinimapButtonSizeSlider:SetHeight(20);
MinimapButtonSizeSlider:SetValueStep(1);
MinimapButtonSizeSlider:SetMinMaxValues(18, 48);
MinimapButtonSizeSlider:SetObeyStepOnDrag(true);
_G[MinimapButtonSizeSlider:GetName() .. 'Low']:SetText('18')
_G[MinimapButtonSizeSlider:GetName() .. 'High']:SetText('48')
_G[MinimapButtonSizeSlider:GetName() .. 'Text']:SetText("Minimap Button Size")
MinimapButtonSizeSlider.Label = MinimapButtonSizeSlider:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall");
MinimapButtonSizeSlider.Label:SetPoint("TOP", MinimapButtonSizeSlider, "BOTTOM", 0, 0);
MinimapButtonSizeSlider.Label:SetText(MinimapButtonSizeSlider:GetValue());
MinimapButtonSizeSlider:SetScript("OnValueChanged", function(self, newValue)
self.Label:SetText(newValue);
if newValue == settings:GetTooltipSetting("MinimapSize") then
return 1;
end
settings:SetTooltipSetting("MinimapSize", newValue)
if app.Minimap then app.Minimap:SetSize(newValue, newValue); end
end);
local ShowMinimapButtonCheckBox = settings:CreateCheckBox("Show the Minimap Button",
function(self)
self:SetChecked(settings:GetTooltipSetting("MinimapButton"));
end,
function(self)
settings:SetTooltipSetting("MinimapButton", self:GetChecked());
if self:GetChecked() then
if not app.Minimap then app.Minimap = app.CreateMinimapButton(); end
app.Minimap:Show();
elseif app.Minimap then
app.Minimap:Hide();
end
end);
ShowMinimapButtonCheckBox:SetATTTooltip("Enable this option if you want to see the minimap button. This button allows you to quickly access the Main List, show your Overall Collection Progress, and access the Settings Menu by right clicking it.\n\nSome people don't like clutter. Alternatively, you can access the Main List by typing '/att' in your chatbox. From there, you can right click the header to get to the Settings Menu.");
ShowMinimapButtonCheckBox:SetPoint("TOP", MinimapButtonSizeSlider, "BOTTOM", 0, -12);
ShowMinimapButtonCheckBox:SetPoint("RIGHT", settings, "RIGHT", -228, 0);
local MinimapButtonStyleCheckBox = settings:CreateCheckBox("Use the Old Minimap Style",
function(self)
self:SetChecked(settings:GetTooltipSetting("MinimapStyle"));
end,
function(self)
settings:SetTooltipSetting("MinimapStyle", self:GetChecked());
if app.Minimap then app.Minimap:UpdateStyle(); end
end);
MinimapButtonStyleCheckBox:SetATTTooltip("Some people don't like the new minimap button...\n\nThose people are wrong!\n\nIf you don't like it, here's an option to go back to the old style.");
MinimapButtonStyleCheckBox:SetPoint("TOP", ShowMinimapButtonCheckBox, "BOTTOM", 0, 4);
MinimapButtonStyleCheckBox:SetPoint("RIGHT", settings, "RIGHT", -228, 0);
local ThingsLabel = settings:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
ThingsLabel:SetPoint("TOPLEFT", AccountModeCheckBox, "BOTTOMLEFT", 0, -8);
ThingsLabel:SetJustifyH("LEFT");
ThingsLabel:SetText("Which \"Things\" do you want to track?");
ThingsLabel:Show();
table.insert(settings.MostRecentTab.objects, ThingsLabel);
ThingsLabel.OnRefresh = function(self)
if settings:Get("DebugMode") then
self:SetAlpha(0.2);
else
self:SetAlpha(1);
end
end;
local AchievementsCheckBox = settings:CreateCheckBox("Achievements",
function(self)
self:SetChecked(settings:Get("Thing:Achievements"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:Achievements", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
AchievementsCheckBox:SetATTTooltip("Enable this option to track achievements.");
AchievementsCheckBox:SetPoint("TOPLEFT", ThingsLabel, "BOTTOMLEFT", 0, -8);
local AchievementsAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(settings:Get("AccountWide:Achievements"));
if settings:Get("DebugMode") or not settings:Get("Thing:Achievements") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("AccountWide:Achievements", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
AchievementsAccountWideCheckBox:SetATTTooltip("Achievement tracking is usually account wide, but there are a number of achievements exclusive to specific classes and races that you can't get on your main.");
AchievementsAccountWideCheckBox:SetPoint("TOPLEFT", AchievementsCheckBox, "TOPLEFT", 220, 0);
local TransmogCheckBox = settings:CreateCheckBox("Appearances / Transmog",
function(self)
self:SetChecked(settings:Get("Thing:Transmog"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:Transmog", self:GetChecked());
settings:UpdateMode();
if self:GetChecked() then
wipe(app.GetDataMember("CollectedSources"));
app.RefreshCollections();
end
app:RefreshData();
end);
TransmogCheckBox:SetATTTooltip("Enable this option to track appearance acquisition.\n\nNOTE: Disabling this option also disables all fanfares and acquisition logic. You can use this toggle as a way to prevent lag spikes while doing important group content, but bear in mind the computation will need to occur once re-enabled.\n\nTracked Account Wide by Default.");
TransmogCheckBox:SetPoint("TOPLEFT", AchievementsCheckBox, "BOTTOMLEFT", 0, 4);
local TransmogAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(true);
self:Disable();
self:SetAlpha(0.2);
end,
function(self)
print("Transmog appearances are only tracked account wide and cannot be disabled.");
end);
TransmogAccountWideCheckBox:SetPoint("TOPLEFT", TransmogCheckBox, "TOPLEFT", 220, 0);
local BattlePetsCheckBox = settings:CreateCheckBox("Battle Pets / Companions",
function(self)
self:SetChecked(settings:Get("Thing:BattlePets"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:BattlePets", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
BattlePetsCheckBox:SetATTTooltip("Enable this option to track battle pets and companions. These can be found in the open world or via boss drops in various Dungeons and Raids as well as from Vendors and Reputation.\n\nTracked Account Wide by Default.");
BattlePetsCheckBox:SetPoint("TOPLEFT", TransmogCheckBox, "BOTTOMLEFT", 0, 4);
local BattlePetsAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(true);
self:Disable();
self:SetAlpha(0.2);
end,
function(self)
print("Battle pets are only tracked account wide.");
end);
BattlePetsAccountWideCheckBox:SetPoint("TOPLEFT", BattlePetsCheckBox, "TOPLEFT", 220, 0);
local FlightPathsCheckBox = settings:CreateCheckBox("Flight Paths / Ferry Stations",
function(self)
self:SetChecked(settings:Get("Thing:FlightPaths"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:FlightPaths", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
FlightPathsCheckBox:SetATTTooltip("Enable this option to track flight paths and ferry stations.\n\nTo collect these, open the dialog with the flight / ferry master in each continent.\n\NOTE: Due to phasing technology, you may have to phase to the other versions of a zone to get credit for those points of interest.");
FlightPathsCheckBox:SetPoint("TOPLEFT", BattlePetsCheckBox, "BOTTOMLEFT", 0, 4);
local FlightPathsAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(settings:Get("AccountWide:FlightPaths"));
if settings:Get("DebugMode") or not settings:Get("Thing:FlightPaths") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("AccountWide:FlightPaths", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
FlightPathsAccountWideCheckBox:SetATTTooltip("Flight Paths tracking is only really useful per character, but do you really want to collect them all on all 50 of your characters?");
FlightPathsAccountWideCheckBox:SetPoint("TOPLEFT", FlightPathsCheckBox, "TOPLEFT", 220, 0);
local FollowersCheckBox = settings:CreateCheckBox("Followers / Champions",
function(self)
self:SetChecked(settings:Get("Thing:Followers"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:Followers", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
FollowersCheckBox:SetATTTooltip("Enable this option to track followers and champions.\n\nIE: Garrison Followers, Legion Class Hall Champions, and BFA Campaign Minions.");
FollowersCheckBox:SetPoint("TOPLEFT", FlightPathsCheckBox, "BOTTOMLEFT", 0, 4);
local FollowersAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(settings:Get("AccountWide:Followers"));
if settings:Get("DebugMode") or not settings:Get("Thing:Followers") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("AccountWide:Followers", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
FollowersAccountWideCheckBox:SetATTTooltip("Followers are typically per character, but do you really want to have to collect 243 Garrison Inn Followers on one character at a rate of 1 per week?\n\nI think not, good sir.");
FollowersAccountWideCheckBox:SetPoint("TOPLEFT", FollowersCheckBox, "TOPLEFT", 220, 0);
local HeirloomsCheckBox = settings:CreateCheckBox("Heirlooms",
function(self)
self:SetChecked(settings:Get("Thing:Heirlooms"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:Heirlooms", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
HeirloomsCheckBox:SetATTTooltip("Enable this option to track whether you have unlocked an Heirloom and its respective Upgrade Levels.\n\nHeirlooms that have an associated Appearance are filtered via the Appearances filter. (turning off appearances will still show the Heirloom itself)\n\nSome items that appear with heirloom quality also help boost reputations and can be filtered via the Reputations filter.");
HeirloomsCheckBox:SetPoint("TOPLEFT", FollowersCheckBox, "BOTTOMLEFT", 0, 4);
local HeirloomsAccountWideCheckBox = settings:CreateCheckBox("Account Wide",
function(self)
self:SetChecked(true);
self:Disable();
self:SetAlpha(0.2);
end,
nil);
HeirloomsAccountWideCheckBox:SetATTTooltip("Heirlooms are tracked account wide.");
HeirloomsAccountWideCheckBox:SetPoint("TOPLEFT", HeirloomsCheckBox, "TOPLEFT", 220, 0);
local IllusionsCheckBox = settings:CreateCheckBox("Illusions",
function(self)
self:SetChecked(settings:Get("Thing:Illusions"));
if settings:Get("DebugMode") then
self:Disable();
self:SetAlpha(0.2);
else
self:Enable();
self:SetAlpha(1);
end
end,
function(self)
settings:Set("Thing:Illusions", self:GetChecked());
settings:UpdateMode();
app:RefreshData();
end);
IllusionsCheckBox:SetATTTooltip("Enable this option to track illusions.\n\nThese are really cool looking transmog effects you can apply to your weapons!\n\nNOTE: You are not an Illusion despite what all the Nightborn think.\n\nTracked Account Wide by Default.");
IllusionsCheckBox:SetPoint("TOPLEFT", HeirloomsCheckBox, "BOTTOMLEFT", 0, 4);
local IllusionsAccountWideCheckBox = settings:CreateCheckBox("Account Wide",