-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathConfig.lua
More file actions
590 lines (574 loc) · 34.3 KB
/
Config.lua
File metadata and controls
590 lines (574 loc) · 34.3 KB
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
local _, addon = ...
local CONSTANTS = addon.CONSTANTS
--==========================================================
-- Configuration and related utility functions
--==========================================================
function BWQ:C(k)
if BWQcfg.usePerCharacterSettings then
return BWQcfgPerCharacter[k]
else
return BWQcfg[k]
end
end
--==========================================================
-- Configuration Menu (MenuUtil.CreateContextMenu)
--==========================================================
-- SetOption handles config changes with special cases
local function SetOption(var)
if var == "usePerCharacterSettings" or not BWQcfg.usePerCharacterSettings then
BWQcfg[var] = not BWQcfg[var]
else
BWQcfgPerCharacter[var] = not BWQcfgPerCharacter[var]
end
if var == "expansion" then
BWQ.expansion = BWQ:C("expansion")
BWQ:HideRowsOfInactiveExpansions()
BWQ.hasUnlockedWorldQuests = false
end
if var == "hideFactionParagonBars" then
BWQ:UpdateFactionDisplayVisible()
end
BWQ:UpdateBlock()
-- toggle block when changing attach setting
if var == "attachToWorldMap" then
BWQ:Hide()
if BWQ:C(var) == true and WorldMapFrame:IsShown() then
BWQ:AttachToWorldMap()
end
end
if var == "usePerCharacterSettings" then
return MenuResponse.Refresh
end
if var == "autoChooseExpansionOnZone" then
if BWQ:C("autoChooseExpansionOnZone") then
BWQ:RegisterEvent("ZONE_CHANGED_NEW_AREA")
BWQ:RegisterEvent("NEW_WMO_CHUNK")
else
BWQ:UnregisterEvent("ZONE_CHANGED_NEW_AREA")
BWQ:UnregisterEvent("NEW_WMO_CHUNK")
end
end
-- Return nothing to keep menu open
end
-- Helper to add menu items recursively from options table
local function AddMenuItems(parentDesc, items)
for _, item in ipairs(items) do
if item.text == "" then
-- Divider
parentDesc:CreateDivider()
elseif item.isTitle then
-- Title (non-interactive header)
parentDesc:CreateTitle(item.text)
elseif item.check and item.submenu then
-- Checkbox with submenu children
local checkbox = parentDesc:CreateCheckbox(
item.text,
function()
if item.check == "usePerCharacterSettings" then
return BWQcfg[item.check]
else
return BWQ:C(item.check)
end
end,
function()
return SetOption(item.check)
end
)
-- Auto-open submenu on hover
checkbox:SetOnEnter(function(_, desc) desc:ForceOpenSubmenu() end)
-- Add submenu children
AddMenuItems(checkbox, item.submenu)
elseif item.check then
-- Simple checkbox
parentDesc:CreateCheckbox(
item.text,
function()
if item.check == "usePerCharacterSettings" then
return BWQcfg[item.check]
else
return BWQ:C(item.check)
end
end,
function()
return SetOption(item.check)
end
)
elseif item.submenu then
-- Non-checkable submenu parent
local submenuButton = parentDesc:CreateButton(item.text)
submenuButton:SetOnEnter(function(_, desc) desc:ForceOpenSubmenu() end)
-- Add submenu children
AddMenuItems(submenuButton, item.submenu)
end
end
end
function BWQ:OpenConfigMenu(anchor)
MenuUtil.CreateContextMenu(anchor, function(ownerRegion, rootDescription)
-- Build options table fresh each time (for dynamic content like isHorde, TomTom)
-- If necessary, the following command can be used to get the icon IDs
-- > /run local info = C_CurrencyInfo.GetCurrencyInfo(3354); if info then print(info.iconFileID) else print("nil") end
local options = {
{ text = "Attach list frame to world map", check = "attachToWorldMap" },
{ text = "Show list frame on click instead of mouse-over", check = "showOnClick" },
{ text = "Auto switch expansions based on current zone", check = "autoChooseExpansionOnZone" },
{ text = "Use per-character settings", check = "usePerCharacterSettings" },
{ text = "Disable shift-click tracking and world map 'bouncing red arrow'", check = "readOnlyMode" },
{ text = "" },
{ text = "Always show |cffa335eeepic|r world quests (e.g. world bosses)", check = "alwaysShowEpicQuests" },
{ text = "Only show world quests with |cff0070ddrare|r or above quality", check = "onlyShowRareOrAbove" },
{ text = "Don't filter quests for active bounties", check = "alwaysShowBountyQuests" },
{ text = "Show total counts in broker text", check = "showTotalsInBrokerText", submenu = {
{ text = ("|T%1$s:16:16|t Bronze Celebration Token"):format("Interface\\Icons\\inv_10_dungeonjewelry_dragon_necklace_1_bronze"), check = "brokerShowBronzeCelebrationToken" },
{ text = ("|T%1$s:16:16|t Polished Pet Charms"):format("Interface\\Icons\\inv_currency_petbattle"), check = "brokerShowPolishedPetCharms" },
{ text = ("|T%1$s:16:16|t Artifact Power"):format("Interface\\Icons\\inv_smallazeriteshard"), check = "brokerShowAP" },
{ text = ("|T%1$s:16:16|t Service Medals"):format(BWQ.isHorde and "Interface\\Icons\\ui_horde_honorboundmedal" or "Interface\\Icons\\ui_alliance_7legionmedal"), check = "brokerShowServiceMedals" },
{ text = ("|T%1$s:16:16|t Wakening Essences"):format("Interface\\Icons\\achievement_dungeon_ulduar80_25man"), check = "brokerShowWakeningEssences" },
{ text = ("|T%1$s:16:16|t Prismatic Manapearls"):format("Interface\\Icons\\Inv_misc_enchantedpearlf"), check = "brokerShowPrismaticManapearl" },
{ text = ("|T%1$s:16:16|t Cyphers of the First Ones"):format("Interface\\Icons\\inv_trinket_progenitorraid_02_blue"), check = "brokerShowCyphersOfTheFirstOnes" },
{ text = ("|T%1$s:16:16|t Grateful Offerings"):format("Interface\\Icons\\inv_misc_ornatebox"), check = "brokerShowGratefulOffering" },
{ text = ("|T%1$s:16:16|t War Resources"):format("Interface\\Icons\\inv__faction_warresources"), check = "brokerShowWarResources" },
{ text = ("|T%1$s:16:16|t Order Hall Resources"):format("Interface\\Icons\\inv_orderhall_orderresources"), check = "brokerShowResources" },
{ text = ("|T%1$s:16:16|t Legionfall War Supplies"):format("Interface\\Icons\\inv_misc_summonable_boss_token"), check = "brokerShowLegionfallSupplies" },
{ text = ("|T%1$s:16:16|t XP Only Quests"):format("Interface\\Icons\\xp_icon"), check = "brokerShowXP" },
{ text = ("|T%1$s:16:16|t Honor"):format("Interface\\Icons\\Achievement_LegionPVPTier4"), check = "brokerShowHonor" },
{ text = ("|T%1$s:16:16|t Bloody Tokens"):format("Interface\\Icons\\inv_10_dungeonjewelry_titan_trinket_2_color2"), check = "brokerShowBloodyTokens" },
{ text = ("|T%1$s:16:16|t Gold"):format("Interface\\GossipFrame\\auctioneerGossipIcon"), check = "brokerShowGold" },
{ text = ("|T%1$s:16:16|t Gear"):format("Interface\\Icons\\Inv_chest_plate_legionendgame_c_01"), check = "brokerShowGear" },
{ text = ("|T%1$s:16:16|t Mark Of Honor"):format("Interface\\Icons\\ability_pvp_gladiatormedallion"), check = "brokerShowMarkOfHonor" },
{ text = ("|T%1$s:16:16|t Herbalism Quests"):format("Interface\\Icons\\Trade_Herbalism"), check = "brokerShowHerbalism" },
{ text = ("|T%1$s:16:16|t Mining Quests"):format("Interface\\Icons\\Trade_Mining"), check = "brokerShowMining" },
{ text = ("|T%1$s:16:16|t Fishing Quests"):format("Interface\\Icons\\Trade_Fishing"), check = "brokerShowFishing" },
{ text = ("|T%1$s:16:16|t Skinning Quests"):format("Interface\\Icons\\inv_misc_pelt_wolf_01"), check = "brokerShowSkinning" },
{ text = ("|T%1$s:16:16|t Blood of Sargeras"):format("1417744"), check = "brokerShowBloodOfSargeras" },
{ text = ("|T%1$s:16:16|t Dragon Isles Supplies"):format("Interface\\Icons\\inv_faction_warresources"), check = "brokerShowDragonIslesSupplies" },
{ text = ("|T%1$s:16:16|t Elemental Overflow"):format("Interface\\Icons\\inv_misc_powder_thorium"), check = "brokerShowElementalOverflow" },
{ text = ("|T%1$s:16:16|t Flightstones"):format("Interface\\Icons\\flightstone-dragonflight"), check = "brokerShowFlightstones" },
{ text = ("|T%1$s:16:16|t Whelplings Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_whelplingsdreamingcrest"), check = "brokerShowWhelplingsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Drakes Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_drakesdreamingcrest"), check = "brokerShowDrakesDreamingCrest" },
{ text = ("|T%1$s:16:16|t Wyrms Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_wyrmsdreamingcrest"), check = "brokerShowWyrmsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Aspects Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_aspectsdreamingcrest"), check = "brokerShowAspectsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Whelplings Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_whelplingsAwakenedcrest"), check = "brokerShowWhelplingsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Drakes Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_drakesAwakenedcrest"), check = "brokerShowDrakesAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Wyrms Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_wyrmsAwakenedcrest"), check = "brokerShowWyrmsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Aspects Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_aspectsAwakenedcrest"), check = "brokerShowAspectsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Mysterious Fragment"):format("Interface\\Icons\\Inv_7_0raid_trinket_05a"), check = "brokerShowMysteriousFragment" },
{ text = ("|T%1$s:16:16|t Resonance Crystals"):format("Interface\\Icons\\spell_azerite_essence14"), check = "brokerShowResonanceCrystals" },
{ text = ("|T%1$s:16:16|t The Assembly of the Deeps"):format("Interface\\Icons\\ui_majorfactions_candle"), check = "brokerShowTheAssemblyoftheDeeps" },
{ text = ("|T%1$s:16:16|t Hallowfall Arathi"):format("Interface\\Icons\\ui_majorfactions_flame"), check = "brokerShowHallowfallArathi" },
{ text = ("|T%1$s:16:16|t Valorstones"):format("Interface\\Icons\\inv_valorstone_base"), check = "brokerShowValorstones" },
{ text = ("|T%1$s:16:16|t Kej"):format("Interface\\Icons\\inv_10_tailoring_silkrare_color3"), check = "brokerShowKej" },
{ text = ("|T%1$s:16:16|t Council of Dornogal"):format("Interface\\Icons\\ui_majorfactions_storm"), check = "brokerShowCouncilofDornogal" },
{ text = ("|T%1$s:16:16|t The Weaver"):format("Interface\\Icons\\ui_notoriety_theweaver"), check = "brokerShowTheWeaver" },
{ text = ("|T%1$s:16:16|t The General"):format("Interface\\Icons\\ui_notoriety_thegeneral"), check = "brokerShowTheGeneral" },
{ text = ("|T%1$s:16:16|t The Vizier"):format("Interface\\Icons\\ui_notoriety_thevizier"), check = "brokerShowTheVizier" },
{ text = ("|T%1$s:16:16|t Weathered Undermine Crest"):format("Interface\\Icons\\inv_crestupgrade_undermine_weathered"), check = "brokerShowWeatheredUndermineCrest" },
{ text = ("|T%1$s:16:16|t Twilight's Blade Insignia"):format("7195171"), check = "brokerShowTwilightsBladeInsignia" },
{ text = ("|T%1$s:16:16|t Carved Undermine Crest"):format("Interface\\Icons\\inv_crestupgrade_undermine_carved"), check = "brokerShowCarvedUndermineCrest" },
{ text = ("|T%1$s:16:16|t The Cartels of Undermine"):format("Interface\\Icons\\ui_majorfactions_rocket"), check = "brokerShowTheCartelsOfUndermine" },
{ text = ("|T%1$s:16:16|t The Bilgewater Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_bilgewater"), check = "brokerShowTheBilgewaterCartel" },
{ text = ("|T%1$s:16:16|t The Blackwater Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_blackwater"), check = "brokerShowTheBlackwaterCartel" },
{ text = ("|T%1$s:16:16|t The Steamwheedle Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_steamwheedle"), check = "brokerShowTheSteamwheedleCartel" },
{ text = ("|T%1$s:16:16|t The Venture Company"):format("Interface\\Icons\\inv_1115_reputationcurrencies_ventureco"), check = "brokerShowTheVentureCompany" },
{ text = ("|T%1$s:16:16|t Weathered Ethereal Crest"):format("Interface\\Icons\\inv_crestupgrade_ethereal_weathered"), check = "brokerShowWeatheredEtherealCrest" },
{ text = ("|T%1$s:16:16|t Voidlight Marl"):format("Interface\\Icons\\inv_112_raidtrinkets_voidprism"), check = "brokerShowVoidlightMarl" },
{ text = ("|T%1$s:16:16|t The Amani Tribe"):format("7505698"), check = "brokerShowTheAmaniTribe" },
{ text = ("|T%1$s:16:16|t The Singularity"):format("7505702"), check = "brokerShowTheSingularity" },
{ text = ("|T%1$s:16:16|t The Hara'ti"):format("7505704"), check = "brokerShowTheHarati" },
{ text = ("|T%1$s:16:16|t Coffer Key Shards"):format("Interface\\Icons\\inv_gizmo_hardenedadamantitetube"), check = "brokerShowCofferKeyShards" },
{ text = ("|T%1$s:16:16|t Silvermoon Court"):format("7505700"), check = "brokerShowSilvermoonCourt" },
}
-- If necessary, the following command can be used to get the icon IDs (3354 is an example of the factionID, as found in Constants.lua)
-- > /run local info = C_CurrencyInfo.GetCurrencyInfo(3354); if info then print(info.iconFileID) else print("nil") end
},
{ text = "Sort list by time remaining instead of reward type", check = "sortByTimeRemaining" },
{ text = "Show 'NEW' text for recently found world quests", check = "showNEWTextWhenAppropriate" },
{ text = "" },
{ text = "Filter by reward...", isTitle = true },
{ text = ("|T%1$s:16:16|t Items"):format("Interface\\Minimap\\Tracking\\Banker"), check = "showItems", submenu = {
{ text = ("|T%1$s:16:16|t Gear"):format("Interface\\Icons\\Inv_chest_plate_legionendgame_c_01"), check = "showGear" },
{ text = ("|T%1$s:16:16|t Crafting Materials"):format("1417744"), check = "showCraftingMaterials" },
{ text = ("|T%1$s:16:16|t Mark Of Honor"):format("Interface\\Icons\\ability_pvp_gladiatormedallion"), check = "showMarkOfHonor" },
{ text = ("|T%1$s:16:16|t Bronze Celebration Token"):format("Interface\\Icons\\inv_10_dungeonjewelry_dragon_necklace_1_bronze"), check = "showBronzeCelebrationToken" },
{ text = "Other", check = "showOtherItems" },
}
},
{ text = ("|T%1$s:16:16|t XP Only Quests"):format("Interface\\Icons\\xp_icon"), check = "showXP" },
{ text = ("|T%1$s:16:16|t Honor"):format("Interface\\Icons\\Achievement_LegionPVPTier4"), check = "showHonor" },
{ text = ("|T%1$s:16:16|t Bloody Tokens"):format("Interface\\Icons\\inv_10_dungeonjewelry_titan_trinket_2_color2"), check = "showBloodyTokens" },
{ text = ("|T%1$s:16:16|t Low gold reward"):format("Interface\\GossipFrame\\auctioneerGossipIcon"), check = "showLowGold" },
{ text = ("|T%1$s:16:16|t High gold reward"):format("Interface\\GossipFrame\\auctioneerGossipIcon"), check = "showHighGold" },
-- If necessary, the following command can be used to get the icon IDs (3354 is an example of the factionID, as found in Constants.lua)
-- > /run local info = C_CurrencyInfo.GetCurrencyInfo(3354); if info then print(info.iconFileID) else print("nil") end
{ text = " Midnight", submenu = {
{ text = ("|T%1$s:16:16|t Voidlight Marl"):format("Interface\\Icons\\inv_112_raidtrinkets_voidprism"), check = "showVoidlightMarl" },
{ text = ("|T%1$s:16:16|t The Amani Tribe"):format("7505698"), check = "showTheAmaniTribe" },
{ text = ("|T%1$s:16:16|t The Singularity"):format("7505702"), check = "showTheSingularity" },
{ text = ("|T%1$s:16:16|t The Hara'ti"):format("7505704"), check = "showTheHarati" },
{ text = ("|T%1$s:16:16|t Coffer Key Shards"):format("Interface\\Icons\\inv_gizmo_hardenedadamantitetube"), check = "showCofferKeyShards" },
{ text = ("|T%1$s:16:16|t Silvermoon Court"):format("7505700"), check = "showSilvermoonCourt" },
}
},
{ text = " The War Within", submenu = {
{ text = ("|T%1$s:16:16|t Reputation Tokens"):format("Interface\\Icons\\inv_scroll_11"), check = "showTWWReputation" },
{ text = ("|T%1$s:16:16|t Resonance Crystals"):format("Interface\\Icons\\spell_azerite_essence14"), check = "showResonanceCrystals" },
{ text = ("|T%1$s:16:16|t The Assembly of the Deeps"):format("Interface\\Icons\\ui_majorfactions_candle"), check = "showTheAssemblyoftheDeeps" },
{ text = ("|T%1$s:16:16|t Hallowfall Arathi"):format("Interface\\Icons\\ui_majorfactions_flame"), check = "showHallowfallArathi" },
{ text = ("|T%1$s:16:16|t Valorstones"):format("Interface\\Icons\\inv_valorstone_base"), check = "showValorstones" },
{ text = ("|T%1$s:16:16|t Kej"):format("Interface\\Icons\\inv_10_tailoring_silkrare_color3"), check = "showKej" },
{ text = ("|T%1$s:16:16|t Council of Dornogal"):format("Interface\\Icons\\ui_majorfactions_storm"), check = "showCouncilofDornogal" },
{ text = ("|T%1$s:16:16|t The Weaver"):format("Interface\\Icons\\ui_notoriety_theweaver"), check = "showTheWeaver" },
{ text = ("|T%1$s:16:16|t The General"):format("Interface\\Icons\\ui_notoriety_thegeneral"), check = "showTheGeneral" },
{ text = ("|T%1$s:16:16|t The Vizier"):format("Interface\\Icons\\ui_notoriety_thevizier"), check = "showTheVizier" },
{ text = ("|T%1$s:16:16|t Weathered Undermine Crest"):format("Interface\\Icons\\inv_crestupgrade_undermine_weathered"), check = "showWeatheredUndermineCrest" },
{ text = ("|T%1$s:16:16|t Twilight's Blade Insignia"):format("7195171"), check = "showTwilightsBladeInsignia" },
{ text = ("|T%1$s:16:16|t Carved Undermine Crest"):format("Interface\\Icons\\inv_crestupgrade_undermine_carved"), check = "showCarvedUndermineCrest" },
{ text = ("|T%1$s:16:16|t The Cartels of Undermine"):format("Interface\\Icons\\ui_majorfactions_rocket"), check = "showTheCartelsOfUndermine" },
{ text = ("|T%1$s:16:16|t The Bilgewater Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_bilgewater"), check = "showTheBilgewaterCartel" },
{ text = ("|T%1$s:16:16|t The Blackwater Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_blackwater"), check = "showTheBlackwaterCartel" },
{ text = ("|T%1$s:16:16|t The Steamwheedle Cartel"):format("Interface\\Icons\\inv_1115_reputationcurrencies_steamwheedle"), check = "showTheSteamwheedleCartel" },
{ text = ("|T%1$s:16:16|t The Venture Company"):format("Interface\\Icons\\inv_1115_reputationcurrencies_ventureco"), check = "showTheVentureCompany" },
{ text = ("|T%1$s:16:16|t Weathered Ethereal Crest"):format("Interface\\Icons\\inv_crestupgrade_ethereal_weathered"), check = "showWeatheredEtherealCrest" },
}
},
{ text = " Dragonflight", submenu = {
{ text = ("|T%1$s:16:16|t Reputation Tokens"):format("Interface\\Icons\\inv_scroll_11"), check = "showDFReputation" },
{ text = ("|T%1$s:16:16|t Dragon Isles Supplies"):format("Interface\\Icons\\inv_faction_warresources"), check = "showDragonIslesSupplies" },
{ text = ("|T%1$s:16:16|t Elemental Overflow"):format("Interface\\Icons\\inv_misc_powder_thorium"), check = "ShowElementalOverflow" },
{ text = ("|T%1$s:16:16|t Flightstones"):format("Interface\\Icons\\flightstone-dragonflight"), check = "showFlightstones" },
{ text = ("|T%1$s:16:16|t Whelplings Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_whelplingsdreamingcrest"), check = "showWhelplingsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Drakes Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_drakesdreamingcrest"), check = "showDrakesDreamingCrest" },
{ text = ("|T%1$s:16:16|t Wyrms Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_wyrmsdreamingcrest"), check = "showWyrmsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Aspects Dreaming Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_aspectsdreamingcrest"), check = "showAspectsDreamingCrest" },
{ text = ("|T%1$s:16:16|t Whelplings Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_whelplingsAwakenedcrest"), check = "showWhelplingsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Drakes Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_drakesAwakenedcrest"), check = "showDrakesAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Wyrms Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_wyrmsAwakenedcrest"), check = "showWyrmsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Aspects Awakened Crest"):format("Interface\\Icons\\Inv_10_gearupgrade_aspectsAwakenedcrest"), check = "showAspectsAwakenedCrest" },
{ text = ("|T%1$s:16:16|t Mysterious Fragment"):format("Interface\\Icons\\Inv_7_0raid_trinket_05a"), check = "showMysteriousFragment" },
}
},
{ text = " Shadowlands", submenu = {
{ text = ("|T%1$s:16:16|t Reputation Tokens"):format("Interface\\Icons\\inv_scroll_11"), check = "showSLReputation" },
{ text = ("|T%1$s:16:16|t Anima Item"):format("3528288"), check = "showAnima" },
{ text = ("|T%1$s:16:16|t Conduits"):format("3586269"), check = "showConduits" },
{ text = ("|T%1$s:16:16|t Cyphers of the First Ones"):format("Interface\\Icons\\inv_trinket_progenitorraid_02_blue"), check = "showCyphersOfTheFirstOnes" },
{ text = ("|T%1$s:16:16|t Grateful Offerings"):format("Interface\\Icons\\inv_misc_ornatebox"), check = "showGratefulOffering" },
}
},
{ text = " Battle for Azeroth", submenu = {
{ text = ("|T%1$s:16:16|t Reputation Tokens"):format("Interface\\Icons\\inv_scroll_11"), check = "showBFAReputation" },
{ text = ("|T%1$s:16:16|t War Resources"):format("Interface\\Icons\\inv__faction_warresources"), check = "showWarResources" },
{ text = ("|T%1$s:16:16|t Azerite"):format("Interface\\Icons\\inv_smallazeriteshard"), check = "showArtifactPower" },
{ text = ("|T%1$s:16:16|t Service Medals"):format(BWQ.isHorde and "Interface\\Icons\\ui_horde_honorboundmedal" or "Interface\\Icons\\ui_alliance_7legionmedal"), check = "showBFAServiceMedals" },
{ text = ("|T%1$s:16:16|t Prismatic Manapearl"):format("Interface\\Icons\\Inv_misc_enchantedpearlf"), check = "showPrismaticManapearl" },
}
},
{ text = " Legion", submenu = {
{ text = ("|T%1$s:16:16|t Order Hall Resources"):format("Interface\\Icons\\inv_orderhall_orderresources"), check = "showResources" },
{ text = ("|T%1$s:16:16|t Legionfall War Supplies"):format("Interface\\Icons\\inv_misc_summonable_boss_token"), check = "showLegionfallSupplies" },
{ text = ("|T%1$s:16:16|t Nethershard"):format("Interface\\Icons\\inv_datacrystal01"), check = "showNethershards" },
{ text = ("|T%1$s:16:16|t Veiled Argunite"):format("Interface\\Icons\\oshugun_crystalfragments"), check = "showArgunite" },
{ text = ("|T%1$s:16:16|t Wakening Essences"):format("Interface\\Icons\\achievement_dungeon_ulduar80_25man"), check = "showWakeningEssences" },
}
},
{ text = "" },
{ text = "Filter by type...", isTitle = true },
{ text = "Profession Quests", check = "showProfession", submenu = {
{ text = "Alchemy", check="showProfessionAlchemy" },
{ text = "Blacksmithing", check="showProfessionBlacksmithing" },
{ text = "Inscription", check="showProfessionInscription" },
{ text = "Jewelcrafting", check="showProfessionJewelcrafting" },
{ text = "Leatherworking", check="showProfessionLeatherworking" },
{ text = "Tailoring", check="showProfessionTailoring" },
{ text = "Enchanting", check="showProfessionEnchanting" },
{ text = "Engineering", check="showProfessionEngineering" },
{ text = "" },
{ text = "Herbalism", check="showProfessionHerbalism" },
{ text = "Mining", check="showProfessionMining" },
{ text = "Skinning", check="showProfessionSkinning" },
{ text = "" },
{ text = "Cooking", check="showProfessionCooking" },
{ text = "Archaeology", check="showProfessionArchaeology" },
{ text = "Fishing", check="showProfessionFishing" },
}
},
{ text = "Dragon Rider Racing", check = "showDragonRiderRacing" },
{ text = "Dungeon Quests", check = "showDungeon" },
{ text = "PvP Quests", check = "showPvP" },
{ text = "Pet Battle Quests", check = "showPetBattle", submenu = {
{ text = "Hide Pet Battle Quests even when active bounty", check = "hidePetBattleBountyQuests" },
{ text = "Always show quests for \"Family Familiar\" achievement", check = "alwaysShowPetBattleFamilyFamiliar" },
}
},
{ text = "" },
{ text = "Hide faction column", check="hideFactionColumn" },
{ text = "Hide faction paragon bars", check="hideFactionParagonBars" },
{ text = "" },
{ text = "Always show quests for faction...", isTitle = true },
{ text = " Dragonflight", submenu = {
{ text = "Dragonscale Expedition", check="alwaysShowDragonscaleExpedition" },
{ text = "Iskaara Tuskarr", check="alwaysShowIskaaraTuskarr" },
{ text = "Maruuk Centaur", check="alwaysShowMaruukCentaur" },
{ text = "Valdrakken Accord", check="alwaysShowValdrakkenAccord" },
{ text = "Loamm Niffen", check="alwaysShowLoammNiffen" },
{ text = "Dream Wardens", check="alwaysShowDreamWardens" },
}
},
{ text = " Shadowlands", submenu = {
{ text = "The Avowed", check="alwaysShowAvowed" },
{ text = "The Wild Hunt", check="alwaysShowWildHunt" },
{ text = "Court of Harvesters", check="alwaysShowCourtofHarvesters" },
{ text = "The Undying Army", check="alwaysShowUndyingArmy" },
{ text = "The Ascended", check="alwaysShowAscended" },
{ text = "Death's Advance", check="alwaysShowDeathsAdvance" },
{ text = "The Enlightened", check="alwaysShowEnlightened" },
}
},
{ text = " Battle for Azeroth", submenu = {
{ text = "Rustbolt Resistance", check="alwaysShowRustboltResistance" },
{ text = "Tortollan Seekers", check="alwaysShowTortollanSeekers" },
{ text = "Champions of Azeroth", check="alwaysShowChampionsOfAzeroth" },
{ text = ("|T%1$s:16:16|t 7th Legion"):format("Interface\\Icons\\inv_misc_tournaments_banner_human"), check="alwaysShow7thLegion" },
{ text = ("|T%1$s:16:16|t Storm's Wake"):format("Interface\\Icons\\inv_misc_tournaments_banner_human"), check="alwaysShowStormsWake" },
{ text = ("|T%1$s:16:16|t Order of Embers"):format("Interface\\Icons\\inv_misc_tournaments_banner_human"), check="alwaysShowOrderOfEmbers" },
{ text = ("|T%1$s:16:16|t Proudmoore Admiralty"):format("Interface\\Icons\\inv_misc_tournaments_banner_human"), check="alwaysShowProudmooreAdmiralty" },
{ text = ("|T%1$s:16:16|t Waveblade Ankoan"):format("Interface\\Icons\\inv_misc_tournaments_banner_human"), check="alwaysShowWavebladeAnkoan" },
{ text = ("|T%1$s:16:16|t The Honorbound"):format("Interface\\Icons\\inv_misc_tournaments_banner_orc"), check="alwaysShowTheHonorbound" },
{ text = ("|T%1$s:16:16|t Zandalari Empire"):format("Interface\\Icons\\inv_misc_tournaments_banner_orc"), check="alwaysShowZandalariEmpire" },
{ text = ("|T%1$s:16:16|t Talanji's Expedition"):format("Interface\\Icons\\inv_misc_tournaments_banner_orc"), check="alwaysShowTalanjisExpedition" },
{ text = ("|T%1$s:16:16|t Voldunai"):format("Interface\\Icons\\inv_misc_tournaments_banner_orc"), check="alwaysShowVoldunai" },
{ text = ("|T%1$s:16:16|t The Unshackled"):format("Interface\\Icons\\inv_misc_tournaments_banner_orc"), check="alwaysShowTheUnshackled" },
}
},
{ text = " Legion", submenu = {
{ text = "Court of Farondis", check="alwaysShowCourtOfFarondis" },
{ text = "Dreamweavers", check="alwaysShowDreamweavers" },
{ text = "Highmountain Tribe", check="alwaysShowHighmountainTribe" },
{ text = "The Nightfallen", check="alwaysShowNightfallen" },
{ text = "The Wardens", check="alwaysShowWardens" },
{ text = "Valarjar", check="alwaysShowValarjar" },
{ text = "Armies of Legionfall", check="alwaysShowArmiesOfLegionfall" },
{ text = "Army of the Light", check="alwaysShowArmyOfTheLight" },
{ text = "Argussian Reach", check="alwaysShowArgussianReach" },
}
},
}
-- Conditionally add TomTom option
if TomTom then
table.insert(options, { text = "" })
table.insert(options, { text = "Add TomTom waypoint on row click", check = "enableTomTomWaypointsOnClick" })
end
-- Add debug option at the end
table.insert(options, { text = "" })
table.insert(options, { text = "Spew Debug Information", check = "spewDebugInfo" })
-- Build the menu from options table
AddMenuItems(rootDescription, options)
end)
end
--==========================================================
-- Default Configuration
--==========================================================
BWQ.defaultConfig = {
-- general
attachToWorldMap = false,
showOnClick = false,
autoChooseExpansionOnZone = true,
usePerCharacterSettings = false,
readOnlyMode = false,
enableClickToOpenMap = false,
enableTomTomWaypointsOnClick = true,
spewDebugInfo = false,
alwaysShowBountyQuests = true,
alwaysShowEpicQuests = true,
onlyShowRareOrAbove = false,
showTotalsInBrokerText = true,
brokerShowAP = true,
brokerShowServiceMedals = true,
brokerShowWakeningEssences = true,
brokerShowWarResources = true,
brokerShowPrismaticManapearl = true,
brokerShowCyphersOfTheFirstOnes = true,
brokerGratefulOffering = true,
brokerShowResources = true,
brokerShowLegionfallSupplies = true,
brokerShowXP = true,
brokerShowHonor = true,
brokerShowGold = false,
brokerShowGear = false,
brokerShowMarkOfHonor = false,
brokerShowHerbalism = false,
brokerShowMining = false,
brokerShowFishing = false,
brokerShowSkinning = false,
brokerShowBloodOfSargeras = false,
brokerShowDragonIslesSupplies = true,
brokerShowElementalOverflow = true,
brokerShowFlightstones = true,
brokerShowWhelplingsDreamingCrest = true,
brokerShowDrakesDreamingCrest = true,
brokerShowWyrmsDreamingCrest = true,
brokerShowAspectsDreamingCrest = true,
brokerShowWhelplingsAwakenedCrest = true,
brokerShowDrakesAwakenedCrest = true,
brokerShowWyrmsAwakenedCrest = true,
brokerShowAspectsAwakenedCrest = true,
brokerShowMysteriousFragment = true,
brokerShowResonanceCrystals = true,
brokerShowTheAssemblyoftheDeeps = true,
brokerShowValorstones = true,
brokerShowKej = true,
brokerShowCouncilofDornogal = true,
brokerShowHallowfallArathi = true,
brokerShowTheWeaver = true,
brokerShowTheGeneral = true,
brokerShowTheVizier = true,
brokerShowBloodyTokens = true,
brokerShowPolishedPetCharms = true,
brokerShowBronzeCelebrationToken = true,
brokerShowWeatheredUndermineCrest = true,
brokerShowTwilightsBladeInsignia = true,
brokerShowCarvedUndermineCrest = true,
brokerShowTheCartelsOfUndermine = true,
brokerShowTheBilgewaterCartel = true,
brokerShowTheBlackwaterCartel = true,
brokerShowTheSteamwheedleCartel = true,
brokerShowTheVentureCompany = true,
brokerShowWeatheredEtherealCrest = true,
brokerShowVoidlightMarl = true,
brokerShowTheAmaniTribe = true,
brokerShowTheSingularity = true,
brokerShowTheHarati = true,
brokerShowCofferKeyShards = true,
brokerShowSilvermoonCourt = true,
sortByTimeRemaining = false,
showNEWTextWhenAppropriate = true,
-- reward type
showDragonIslesSupplies = true,
showElementalOverflow = true,
showFlightstones = true,
showWhelplingsDreamingCrest = true,
showDrakesDreamingCrest = true,
showWyrmsDreamingCrest = true,
showAspectsDreamingCrest = true,
showWhelplingsAwakenedCrest = true,
showDrakesAwakenedCrest = true,
showWyrmsAwakenedCrest = true,
showAspectsAwakenedCrest = true,
showMysteriousFragment = true,
showResonanceCrystals = true,
showCouncilofDornogal = true,
showTheAssemblyoftheDeeps = true,
showHallowfallArathi = true,
showTheWeaver = true,
showTheGeneral = true,
showTheVizier = true,
showWeatheredUndermineCrest = true,
showTwilightsBladeInsignia = true,
showCarvedUndermineCrest = true,
showTheCartelsOfUndermine = true,
showTheBilgewaterCartel = true,
showTheBlackwaterCartel = true,
showTheSteamwheedleCartel = true,
showTheVentureCompany = true,
showWeatheredEtherealCrest = true,
showValorstones = true,
showBronzeCelebrationToken = true,
showKej = true,
showBloodyTokens = true,
showArtifactPower = true,
showPrismaticManapearl = true,
showCyphersOfTheFirstOnes = true,
showGratefulOffering = true,
showVoidlightMarl = true,
showTheAmaniTribe = true,
showTheSingularity = true,
showTheHarati = true,
showCofferKeyShards = true,
showSilvermoonCourt = true,
showItems = true,
showGear = true,
showRelics = true,
showCraftingMaterials = true,
showConduits = true,
showMarkOfHonor = true,
showOtherItems = true,
showTWWReputation = true,
showDFReputation = true,
showSLReputation = true,
showBFAReputation = true,
showBFAServiceMedals = true,
showXP = true,
showHonor = true,
showLowGold = true,
showHighGold = true,
showWarResources = true,
showAnima = true,
showResources = true,
showLegionfallSupplies = true,
showNethershards = true,
showArgunite = true,
showWakeningEssences = true,
-- quest type
showProfession = true,
showProfessionAlchemy = true,
showProfessionBlacksmithing = true,
showProfessionInscription = true,
showProfessionJewelcrafting = true,
showProfessionLeatherworking = true,
showProfessionTailoring = true,
showProfessionEnchanting = true,
showProfessionEngineering = true,
showProfessionHerbalism = true,
showProfessionMining = true,
showProfessionSkinning = true,
showProfessionCooking = true,
showProfessionArchaeology = true,
showProfessionFishing = true,
showDungeon = true,
showDragonRiderRacing = true,
showPvP = true,
hideFactionColumn = false,
hideFactionParagonBars = false,
-- Dragonflight
alwaysShowDragonscaleExpedition = false,
alwaysShowIskaaraTuskarr = false,
alwaysShowMaruukCentaur = false,
alwaysShowValdrakkenAccord = false,
alwaysShowLoammNiffen = false,
alwaysShowDreamWardens = false,
-- Shadowlands
alwaysShowAscended = false,
alwaysShowUndyingArmy = false,
alwaysShowCourtofHarvesters = false,
alwaysShowAvowed = false,
alwaysShowWildHunt = false,
alwaysShowDeathsAdvance = false,
alwaysShowEnlightened = false,
-- BFA
alwaysShow7thLegion = false,
alwaysShowStormsWake = false,
alwaysShowOrderOfEmbers = false,
alwaysShowProudmooreAdmiralty = false,
alwaysShowWavebladeAnkoan = false,
alwaysShowTheHonorbound = false,
alwaysShowZandalariEmpire = false,
alwaysShowTalanjisExpedition = false,
alwaysShowVoldunai = false,
alwaysShowTheUnshackled = false,
alwaysShowRustboltResistance = false,
alwaysShowTortollanSeekers = false,
alwaysShowChampionsOfAzeroth = false,
-- Legion
alwaysShowCourtOfFarondis = false,
alwaysShowDreamweavers = false,
alwaysShowHighmountainTribe = false,
alwaysShowNightfallen = false,
alwaysShowWardens = false,
alwaysShowValarjar = false,
alwaysShowArmiesOfLegionfall = false,
alwaysShowArmyOfTheLight = false,
alwaysShowArgussianReach = false,
showPetBattle = true,
hidePetBattleBountyQuests = false,
alwaysShowPetBattleFamilyFamiliar = true,
collapsedZones = {},
}