-
Notifications
You must be signed in to change notification settings - Fork 8
/
SettingsMenu.lua
1416 lines (1326 loc) · 57.6 KB
/
SettingsMenu.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
-----------------------------------------------------------------------------------
-- Addon Name: Dolgubon's Lazy Writ Crafter
-- Creator: Dolgubon (Joseph Heinzle)
-- Addon Ideal: Simplifies Crafting Writs as much as possible
-- Addon Creation Date: March 14, 2016
--
-- File Name: SettingsMenu.lua
-- File Description: Contains the information for the settings menu
-- Load Order Requirements: None (April, after language files)
--
-----------------------------------------------------------------------------------
local checks = {}
local validLanguages =
{
["en"]=true,["de"] = true,["fr"] = true,["jp"] = true, ["ru"] = false, ["zh"] = false, ["pl"] = false,["es"] = true
}
if true then
EVENT_MANAGER:RegisterForEvent("WritCrafterLocalizationError", EVENT_PLAYER_ACTIVATED, function()
if not WritCreater.languageInfo then
local language = GetCVar("language.2")
if validLanguages[language] == nil then
d("Dolgubon's Lazy Writ Crafter: Your language is not supported for this addon. If you are looking to translate the addon, check the lang/en.lua file for more instructions.")
elseif validLanguages[language] == false then
d("Dolgubon's Lazy Writ Crafter: The Localization file could not be loaded.")
d("Troubleshooting:")
d("1. Your language is supported by a patch for the Writ Crafter. Please make sure you have downloaded the appropriate patch")
d("2. Uninstall and then reinstall the Writ Crafter, and the patch")
d("3. If you still have issues, contact the author of the patch")
else
d("Dolgubon's Lazy Writ Crafter: The Localization file could not be loaded.")
d("Troubleshooting:")
d("1. Try to uninstall and then reinstall the addon")
d("2. If the error persists, contact @Dolgubon in-game or at tinyurl.com/WritCrafter")
end
end
EVENT_MANAGER:UnregisterForEvent("WritCrafterLocalizationError", EVENT_PLAYER_ACTIVATED)
end)
end
WritCreater.styleNames = {}
for i = 1, GetNumValidItemStyles() do
local styleItemIndex = GetValidItemStyleId(i)
local itemName = GetItemStyleName(styleItemIndex)
local styleItem = GetItemStyleMaterialLink(styleItemIndex, 0)
local amount = GetCurrentSmithingStyleItemCount(styleItemIndex)
if styleItemIndex ~=36 then
table.insert(WritCreater.styleNames,{styleItemIndex,itemName, styleItem, amount})
end
end
function WritCreater:GetSettings()
if not self or not self.savedVars or not self.savedVarsAccountWide then
return false
end
if self.savedVars.useCharacterSettings then
return self.savedVars
else
return self.savedVarsAccountWide.accountWideProfile
end
end
--[[{
type = "dropbox",
name = "Autoloot Behaviour",
tooltip = "Choose when the addon will autoloot writ reward containers",
choices = {"Copy the", "Autoloot", "Never Autoloot"},
choicesValues = {1,2,3},
getFunc = function() if WritCreater:GetSettings().ignoreAuto then return 1 elseif WritCreater:GetSettings().autoLoot then return 2 else return 3 end end,
setFunc = function(value)
if value == 1 then
WritCreater:GetSettings().ignoreAuto = false
elseif value == 2 then
WritCreater:GetSettings().autoLoot = true
WritCreater:GetSettings().ignoreAuto = true
elseif value == 3 then
WritCreater:GetSettings().ignoreAuto = true
WritCreater:GetSettings().autoLoot = false
end
end,
},]]
local function mypairs(tableIn)
local t = {}
for k,v in pairs(tableIn) do
t[#t + 1] = {k,v}
end
table.sort(t, function(a,b) return a[1]<b[1] end)
return t
end
local optionStrings = WritCreater.optionStrings
local function styleCompiler()
local submenuTable = {}
local styleNames = WritCreater.styleNames
submenuTable = {
{
type = "checkbox",
name = optionStrings["smart style slot save"],
tooltip = optionStrings["smart style slot save tooltip"],
getFunc = function() return WritCreater:GetSettings().styles.smartStyleSlotSave end,
setFunc = function(value)
WritCreater:GetSettings().styles.smartStyleSlotSave = value --- DO NOT CHANGE THIS! If you have 'or nil' then the ZO_SavedVars will set it to true.
end,
},
{
type = "divider",
height = 15,
alpha = 0.5,
width = "full",
},
}
for k,v in ipairs(styleNames) do
local option = {
type = "checkbox",
name = zo_strformat("<<1>> (<<2>> x<<3>>)", v[2], GetItemLinkName(v[3]), v[4]),
tooltip = optionStrings["style tooltip"](v[2], v[3]),
getFunc = function() return WritCreater:GetSettings().styles[v[1]] end,
setFunc = function(value)
WritCreater:GetSettings().styles[v[1]] = value --- DO NOT CHANGE THIS! If you have 'or nil' then the ZO_SavedVars will set it to true.
end,
}
submenuTable[#submenuTable + 1] = option
end
local imperial = table.remove(submenuTable, 34)
table.insert(submenuTable, 10, imperial)
return submenuTable
end
local function isCheeseOn()
local enableNames = {
["@Dolgubon"]=1,
["@mithra62"]=1,
["@Gitaelia"]=1,
["@PacoHasPants"]=1,
["@Architecture"]=1,
["@K3VLOL99"]=1,
}
local dateCheck = GetDate()%10000 == 401 or false
return dateCheck or enableNames[GetDisplayName()]
-- return WritCreater.shouldDivinityprotocolbeactivatednowornotitshouldbeallthetimebutwhateveritlljustbeforabit and WritCreater.shouldDivinityprotocolbeactivatednowornotitshouldbeallthetimebutwhateveritlljustbeforabit() == 2
end
-- ZO_TimedActivitiesKeyboardListActivityHeader
-- WritCreater.savedVarsAccountWide.unlockedCheese
-- WritCreater.savedVarsAccountWide.cheeseCompletedTwice
if isCheeseOn() then
local cheesyActivityTypeIndex = 2
while TIMED_ACTIVITIES_MANAGER.activityTypeLimitData[cheesyActivityTypeIndex] do
cheesyActivityTypeIndex = cheesyActivityTypeIndex + 1
end
-- Localization
local il8n = WritCreater.cheeseyLocalizations
local originalInitializeKeyboardFinderCategory = ZO_TimedActivities_Keyboard.InitializeActivityFinderCategory
function ZO_TimedActivities_Keyboard:InitializeActivityFinderCategory()
local returnValue = originalInitializeKeyboardFinderCategory(self)
GROUP_MENU_KEYBOARD.nodeList[2].children[cheesyActivityTypeIndex] =
{
priority = CATEGORY_PRIORITY + 20,
name = "Cheesy Endeavors",
categoryFragment = self.sceneFragment,
onTreeEntrySelected = onCheesyEndeavorsSelected,
}
GROUP_MENU_KEYBOARD.navigationTree:Reset()
GROUP_MENU_KEYBOARD:AddCategoryTreeNodes(GROUP_MENU_KEYBOARD.nodeList)
GROUP_MENU_KEYBOARD.navigationTree:Commit()
end
function ZO_TimedActivities_Gamepad:InitializeActivityFinderCategory()
TIMED_ACTIVITIES_GAMEPAD_FRAGMENT = self.sceneFragment
self.scene:AddFragment(self.sceneFragment)
local primaryCurrencyType = TIMED_ACTIVITIES_MANAGER.GetPrimaryTimedActivitiesCurrencyType()
self.categoryData =
{
gamepadData =
{
priority = ZO_ACTIVITY_FINDER_SORT_PRIORITY.TIMED_ACTIVITIES,
name = GetString(SI_ACTIVITY_FINDER_CATEGORY_TIMED_ACTIVITIES),
menuIcon = "EsoUI/Art/LFG/Gamepad/LFG_menuIcon_timedActivities.dds",
sceneName = "TimedActivitiesGamepad",
tooltipDescription = zo_strformat(SI_GAMEPAD_ACTIVITY_FINDER_TOOLTIP_TIMED_ACTIVITIES, GetCurrencyName(primaryCurrencyType), GetString(SI_GAMEPAD_MAIN_MENU_ENDEAVOR_SEAL_MARKET_ENTRY)),
},
}
local gamepadData = self.categoryData.gamepadData
ZO_ACTIVITY_FINDER_ROOT_GAMEPAD:AddCategory(gamepadData, gamepadData.priority)
end
local entryData = ZO_GamepadEntryData:New(il8n.menuName)
entryData:SetDataSource({activityType = cheesyActivityTypeIndex})
TIMED_ACTIVITIES_GAMEPAD.categoryList:AddEntry("ZO_GamepadItemEntryTemplate", entryData)
TIMED_ACTIVITIES_GAMEPAD.categoryList:Commit()
local function onCheesyEndeavorsSelected()
TIMED_ACTIVITIES_KEYBOARD:SetCurrentActivityType(cheesyActivityTypeIndex)
end
GROUP_MENU_KEYBOARD.navigationTree:Reset()
table.insert(GROUP_MENU_KEYBOARD.nodeList[3]["children"] , {
priority = ZO_ACTIVITY_FINDER_SORT_PRIORITY.TIMED_ACTIVITIES + cheesyActivityTypeIndex * 10 + 10,
name = il8n.menuName,
categoryFragment = TIMED_ACTIVITIES_KEYBOARD.sceneFragment,
onTreeEntrySelected = onCheesyEndeavorsSelected,
})
GROUP_MENU_KEYBOARD:AddCategoryTreeNodes(GROUP_MENU_KEYBOARD.nodeList)
GROUP_MENU_KEYBOARD.navigationTree:Commit()
TIMED_ACTIVITIES_MANAGER.activityTypeLimitData[cheesyActivityTypeIndex] = {completed = 0, limit = 6}
-- Group up and wipe 5 times
-- Say "I love cheese!" in zone chat
-- Pay a visit to Sheogorath
-- Make a new friend
-- 'Rewards': negative cheese wheels. Or sanity
local standardReward =
{
GetKeyboardIcon = function() return "/esoui/art/icons/heraldrycrests_misc_blank_01.dds" end,--return "/esoui/art/icons/quest_trollfat_001.dds" end,
GetGamepadIcon = function() return "/esoui/art/icons/heraldrycrests_misc_blank_01.dds" end,-- return "/esoui/art/icons/quest_trollfat_001.dds" end,
GetAbbreviatedQuantity = function() return il8n.reward end,
GetFormattedNameWithStack = function() return il8n.rewardStylized end,
}
local timedActivityData =
{
{timedActivityId = 1000, index = 9, maxProgress = 1, reward = {standardReward}, svkey="cheeseProfession"},
{timedActivityId = 1001, index = 9, maxProgress = 1, reward = {standardReward}, svkey="sheoVisit"},
{timedActivityId = 1003, index = 9, maxProgress = 1, reward = {standardReward}, svkey="music"}, -- aka Play a joke on some group members?
{timedActivityId = 1003, index = 9, maxProgress = 1, reward = {standardReward}, svkey="cheesyDestruction"},
{timedActivityId = 1003, index = 9, maxProgress = 1, reward = {standardReward}, svkey="cheeseNerd"}, -- AKA Cheeses of Tamriel
}
local finalReward = ZO_ShallowTableCopy(standardReward)
finalReward.GetAbbreviatedQuantity = function()
if WritCreater.savedVarsAccountWide.unlockedCheese and il8n.alreadyUnlocked then
return il8n.alreadyUnlocked
end
return "???"
end
finalReward.GetFormattedNameWithStack = function()
if not WritCreater.savedVarsAccountWide.cheeseCompleted2024 and WritCreater.savedVarsAccountWide.unlockedCheese and il8n.alreadyUnlockedTooltip then
return il8n.alreadyUnlockedTooltip
end
if WritCreater.savedVarsAccountWide.unlockedCheese and WritCreater.savedVarsAccountWide.unlockedCheese and il8n.settingsChooseSkin then
return il8n.settingsChooseSkin
end
return il8n.finalReward
end
timedActivityData[#timedActivityData + 1] = {timedActivityId = 1004, index = 9, maxProgress = #timedActivityData, reward = {finalReward}, svkey="cheeseCompletion"}
for i = 1, #timedActivityData do
timedActivityData[i].name = il8n.tasks[i].name
timedActivityData[i].completion = il8n.tasks[i].completion
timedActivityData[i].description = il8n.tasks[i].description
end
local activityDataObjects = {}
local function addNewTimedActivities()
for k, v in pairs(timedActivityData) do
local newData = ZO_TimedActivityData:New(2000 + k)
newData.GetType = function(...) return cheesyActivityTypeIndex end
newData.GetName = function(...) return v.name end
newData.GetDescription = function(...) return v.description end
newData.GetMaxProgress = function(...) return v.maxProgress end
newData.GetProgress = function (...) return WritCreater.savedVarsAccountWide.cheesyProgress[v.svkey] or 0 end
newData.GetRewardList = function(...) return v.reward end
newData.timedActivityId = 1000 + k
table.insert(TIMED_ACTIVITIES_MANAGER.activitiesData, newData)
activityDataObjects[1000 + k] = newData
end
end
local originalNewTimedActivityData = ZO_TimedActivityData.New
ZO_TimedActivityData.New = function(self, activityIndex, ...)
if activityIndex > 1000 then
return activityDataObjects[activityIndex] or originalNewTimedActivityData(self, activityIndex)
else
return originalNewTimedActivityData(self, activityIndex)
end
end
local function isCheeseActivity(item)
return item:GetType() == cheesyActivityTypeIndex
end
function TIMED_ACTIVITIES_GAMEPAD:Refresh()
TIMED_ACTIVITIES_GAMEPAD.headerData["data3HeaderText"] = il8n.endeavorName
TIMED_ACTIVITIES_GAMEPAD.headerData["data3Text"] = function() return WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"].."/6" end
local currentActivityType = self:GetCurrentActivityType()
local activityTypeFilters
if currentActivityType == TIMED_ACTIVITY_TYPE_DAILY then
activityTypeFilters = { ZO_TimedActivityData.IsDailyActivity }
elseif currentActivityType == TIMED_ACTIVITY_TYPE_WEEKLY then
activityTypeFilters = { ZO_TimedActivityData.IsWeeklyActivity }
elseif currentActivityType == cheesyActivityTypeIndex then
activityTypeFilters = { isCheeseActivity }
end
local activitiesList = {}
for index, activityData in TIMED_ACTIVITIES_MANAGER:ActivitiesIterator(activityTypeFilters) do
table.insert(activitiesList, activityData)
end
self.activitiesList:RefreshList(currentActivityType, activitiesList)
self:RefreshAvailability()
self:RefreshCurrentActivityInfo()
ZO_GamepadGenericHeader_RefreshData(self.header, self.headerData)
end
local gpadActivitiesList = TIMED_ACTIVITIES_GAMEPAD.activitiesList
function TIMED_ACTIVITIES_GAMEPAD.activitiesList:RefreshList(currentActivityType, activitiesList)
self.isAtActivityLimit = TIMED_ACTIVITIES_MANAGER:IsAtTimedActivityTypeLimit(currentActivityType)
local listControl = self.listControl
ZO_ScrollList_Clear(listControl)
local listData = ZO_ScrollList_GetDataList(listControl)
for index, activityData in ipairs(activitiesList) do
local entryData = ZO_EntryData:New(activityData)
local activityName = activityData:GetName()
local numActivityNameLines = ZO_LabelUtils_GetNumLines(activityName, "ZoFontGamepad45", ZO_TIMED_ACTIVITY_DATA_ROW_NAME_WIDTH_GAMEPAD)
local dataType = 1
if numActivityNameLines == 2 then
dataType = 2
elseif numActivityNameLines == 3 then
dataType = 3
elseif numActivityNameLines == 4 then
dataType = 4
elseif numActivityNameLines == 5 then
dataType = 5
end
table.insert(listData, ZO_ScrollList_CreateDataEntry(dataType, entryData))
end
self:CommitScrollList()
local isListEmpty = not ZO_ScrollList_HasVisibleData(listControl)
listControl:SetHidden(isListEmpty)
end
function gpadActivitiesList:OnSelectionChanged(oldData, newData)
ZO_SortFilterList.OnSelectionChanged(self, oldData, newData)
-- d(newData)
-- self.listControl.selectedDataIndex = self.listControl.selectedDataIndex + 1
if newData then
local activityIndex = newData:GetIndex()
self:ShowActivityTooltip(activityIndex)
else
self:ClearActivityTooltip()
end
end
local originalMasterList = TIMED_ACTIVITIES_MANAGER.RefreshMasterList
TIMED_ACTIVITIES_MANAGER.RefreshMasterList = function(...)
originalMasterList(...)
addNewTimedActivities()
end
TIMED_ACTIVITIES_MANAGER.availableActivityTypes[cheesyActivityTypeIndex] = true
local originalManagerTiming = TIMED_ACTIVITIES_MANAGER.GetTimedActivityTypeTimeRemainingSeconds
TIMED_ACTIVITIES_MANAGER.GetTimedActivityTypeTimeRemainingSeconds = function(self, activityType,...)
if activityType == cheesyActivityTypeIndex then
return (1648879200 - GetTimeStamp()) % 86400
else
return originalManagerTiming(self, activityType, ...)
end
end
local originalKeyboardRefresh = ZO_TimedActivities_Keyboard.Refresh
function ZO_TimedActivities_Keyboard:Refresh()
if self:GetCurrentActivityType() ~= cheesyActivityTypeIndex then
return originalKeyboardRefresh(self)
end
if self:GetCurrentActivityType() == nil then return end
ZO_ClearNumericallyIndexedTable(self.activitiesData)
TIMED_ACTIVITIES_MANAGER.activityTypeLimitData[cheesyActivityTypeIndex].completed = WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"]
local currentActivityType = self:GetCurrentActivityType()
local activityTypeFilters
if currentActivityType == TIMED_ACTIVITY_TYPE_DAILY then
activityTypeFilters = { ZO_TimedActivityData.IsDailyActivity }
elseif currentActivityType == TIMED_ACTIVITY_TYPE_WEEKLY then
activityTypeFilters = { ZO_TimedActivityData.IsWeeklyActivity }
elseif currentActivityType == cheesyActivityTypeIndex then
activityTypeFilters = { isCheeseActivity }
end
for index, activityData in TIMED_ACTIVITIES_MANAGER:ActivitiesIterator(activityTypeFilters) do
table.insert(self.activitiesData, activityData)
end
self.activityRewardPool:ReleaseAllObjects()
self.activityRowPool:ReleaseAllObjects()
self.nextActivityAnchorTo = nil
self.isAtActivityLimit = TIMED_ACTIVITIES_MANAGER:IsAtTimedActivityTypeLimit(currentActivityType)
for index, activityData in ipairs(self.activitiesData) do
self:AddActivityRow(activityData)
end
self:RefreshAvailability()
self:RefreshCurrentActivityInfo()
end
local function cheeseEndeavorCompleted(subHeading)
TIMED_ACTIVITIES_MANAGER.activityTypeLimitData[cheesyActivityTypeIndex].completed = TIMED_ACTIVITIES_MANAGER.activityTypeLimitData[cheesyActivityTypeIndex].completed + 1
WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] = WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] + 1
pcall(function()TIMED_ACTIVITIES_KEYBOARD:Refresh() end )
local activityTypeName = "CHEESY ENDEAVOR" --GetString("SI_TIMEDACTIVITYTYPE", 2)
-- local _, maxNumActivities = TIMED_ACTIVITIES_MANAGER:GetTimedActivityTypeLimitInfo(2)
local messageTitle = zo_strformat(SI_TIMED_ACTIVITY_TYPE_COMPLETED_CSA, WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"], #timedActivityData - 1, il8n.menuName)
-- local messageTitle = zo_strformat(SI_TIMED_ACTIVITY_TYPE_COMPLETED_CSA, 6, #timedActivityData, "Cheesy")
local messageSubheading = subHeading
if WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] < #timedActivityData - 1 then
messageSubheading = subHeading
end
local messageParams = CENTER_SCREEN_ANNOUNCE:CreateMessageParams(CSA_CATEGORY_LARGE_TEXT)
messageParams:SetText(messageTitle, messageSubheading)
CENTER_SCREEN_ANNOUNCE:AddMessageWithParams(messageParams)
if WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] == #timedActivityData - 1 then
WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] = 6
local finalMessageTitle = il8n.allComplete
local finalSubheading = timedActivityData[6].completion
local finalMessageParams = CENTER_SCREEN_ANNOUNCE:CreateMessageParams(CSA_CATEGORY_LARGE_TEXT)
finalMessageParams:SetText(finalMessageTitle, finalSubheading)
-- zo_callLater( function()
CENTER_SCREEN_ANNOUNCE:AddMessageWithParams(finalMessageParams)
-- end, 1500 )
WritCreater.savedVarsAccountWide.skin = "cheese"
WritCreater.savedVarsAccountWide.unlockedCheese = true
WritCreater.savedVarsAccountWide.cheeseCompleted2024 = true
end
PlaySound(SOUNDS.ENDEAVOR_COMPLETED)
end
-- listeners
-- Chese profession
local function alternateListener(eventCode, channelType, fromName, text, isCustomerService, fromDisplayName)
if isCheeseOn() and WritCreater and WritCreater.savedVarsAccountWide and WritCreater.savedVarsAccountWide.cheesyProgress
and WritCreater.savedVarsAccountWide.cheesyProgress["cheeseProfession"] == 0 and (fromDisplayName == GetDisplayName() or channelType == 4) then
text = text:lower()
text = text:gsub(" ", "")
text = text:gsub("!", "")
text = text:gsub("%.", "")
text = text:gsub("'", "")
text = text:gsub("ä", "a")
if WritCreater.cheeseBingos[text] then
WritCreater.savedVarsAccountWide.cheesyProgress["cheeseProfession"] = 1
cheeseEndeavorCompleted(timedActivityData[1].completion)
end
end
end
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."cheeeeese",EVENT_CHAT_MESSAGE_CHANNEL, alternateListener)
-- Music
--5, 6, 7
-- /script local a = PlayEmoteByIndex PlayEmoteByIndex = function(...) d(...) a(...) end
local terribleMusicEmotes =
{
[4] = '/horn',
[5] = '/lute',
[6] = '/drum',
[7] = '/flute',
[251] = '/festivebellring',
[271] = '/esraj',
[272] = '/qanun',
}
-- /playtinyviolin, /festivebellring
local originalEmoteFunction = PlayEmoteByIndex
PlayEmoteByIndex = function(index, ...)
originalEmoteFunction(index, ...)
if WritCreater.savedVarsAccountWide.cheesyProgress['music'] == 0 and terribleMusicEmotes[index] then
WritCreater.savedVarsAccountWide.cheesyProgress['music'] = 1
cheeseEndeavorCompleted(timedActivityData[3].completion)
end
end
local setup = false
-- local function setupCheesyMusic()
-- if setup then return end
-- setup = true
-- for k, v in pairs(terribleMusicEmotes) do
-- local originalMusic = SLASH_COMMANDS[v]
-- SLASH_COMMANDS[v] = function(...) originalMusic(...)
-- if WritCreater.savedVarsAccountWide.cheesyProgress['music'] == 0 then
-- WritCreater.savedVarsAccountWide.cheesyProgress['music'] = 1
-- cheeseEndeavorCompleted(timedActivityData[3].completion)
-- end
-- end
-- end
-- end
local sheoStrings =
{
en = "Sheogorath",
de = "Sheogorath",
fr = "Shéogorath",
}
-- EVENT_MANAGER:RegisterForEvent(WritCreater.name.."cheesyMusic", EVENT_PLAYER_ACTIVATED, setupCheesyMusic)
-- Handles the dialogue where we actually complete the quest
local function isItUncleSheo(eventCode, journalIndex)
if WritCreater.savedVarsAccountWide.cheesyProgress['sheoVisit'] == 0 and zo_plainstrfind( ZO_InteractWindowTargetAreaTitle:GetText() ,sheoStrings[GetCVar("language.2")]) then
--d("complete")
WritCreater.savedVarsAccountWide.cheesyProgress['sheoVisit'] = 1
cheeseEndeavorCompleted(timedActivityData[2].completion)
return
end
end
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."FunWithSheo", EVENT_CHATTER_BEGIN, isItUncleSheo)
local function cheesyScholar(_,_,_,_,_, bookId)
if bookId == 1145 then
if WritCreater.savedVarsAccountWide.cheesyProgress['cheeseNerd'] == 0 then
WritCreater.savedVarsAccountWide.cheesyProgress['cheeseNerd'] = 1
cheeseEndeavorCompleted(timedActivityData[5].completion)
end
end
end
local originalCheatyCheeseBook = ZO_LoreLibrary_ReadBook
ZO_LoreLibrary_ReadBook = function(categoryIndex, collectionIndex, bookIndex,...)
if WritCreater.savedVarsAccountWide.cheesyProgress['cheeseNerd'] == 0 and categoryIndex == 3 and collectionIndex == 9 and bookIndex == 46 then
ZO_Alert(ERROR, SOUNDS.GENERAL_ALERT_ERROR , il8n["cheatyCheeseBook"])
else
originalCheatyCheeseBook(categoryIndex, collectionIndex, bookIndex,...)
end
end
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."cheeseScholar", EVENT_SHOW_BOOK, cheesyScholar)
--ITEM_SOUND_CATEGORY_FOOD
local requestedCheeseMonster = false
local function cheeseMonsterConfirmed(eventCode, sound)
--- 38 is the sound cheese makes Must be squeaky right?
if sound == 38 and WritCreater.savedVarsAccountWide.cheesyProgress['cheesyDestruction'] == 0 then
WritCreater.savedVarsAccountWide.cheesyProgress['cheesyDestruction'] = 1
cheeseEndeavorCompleted(timedActivityData[4].completion)
end
requestedCheeseMonster = false
EVENT_MANAGER:UnregisterForEvent(WritCreater.name.."cheeseMonsterConfirmed", EVENT_INVENTORY_ITEM_DESTROYED)
EVENT_MANAGER:UnregisterForEvent(WritCreater.name.."notACheeseMonster", EVENT_INVENTORY_ITEM_DESTROYED)
end
local function notACheeseMonster(eventCode)
EVENT_MANAGER:UnregisterForEvent(WritCreater.name.."cheeseMonsterConfirmed", EVENT_INVENTORY_ITEM_DESTROYED)
EVENT_MANAGER:UnregisterForEvent(WritCreater.name.."notACheeseMonster", EVENT_INVENTORY_ITEM_DESTROYED)
requestedCheeseMonster = false
end
local function cheeseMonster( eventCode, bagId, slotIndex, itemCount, name, needsConfirm)
local itemId = GetItemId(bagId, slotIndex)
if WritCreater.savedVarsAccountWide.cheesyProgress['cheesyDestruction'] == 0 and itemId == 27057 then
requestedCheeseMonster = true
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."cheeseMonsterConfirmed", EVENT_INVENTORY_ITEM_DESTROYED, cheeseMonsterConfirmed)
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."notACheeseMonster", EVENT_INVENTORY_ITEM_DESTROYED, notACheeseMonster)
else
requestedCheeseMonster = false
end
end
local originalDestroyItem = DestroyItem
DestroyItem = function(bag,slot,...)
local itemId = GetItemId(bagId, slotIndex)
if WritCreater.savedVarsAccountWide.cheesyProgress['cheesyDestruction'] == 0 and itemId == 27057 then
WritCreater.savedVarsAccountWide.cheesyProgress['cheesyDestruction'] = 1
cheeseEndeavorCompleted(timedActivityData[4].completion)
end
originalDestroyItem(bag, slot, ...)
end
EVENT_MANAGER:RegisterForEvent(WritCreater.name.."CheeseMonster", EVENT_MOUSE_REQUEST_DESTROY_ITEM , cheeseMonster)
-- /esraj /lute /drum /flute
-- if GetDisplayName() == "@Dolgubon" then
-- enableAlternateUniverse(true)
-- WritCreater.WipeThatFrownOffYourFace(true)
-- end
SLASH_COMMANDS['/resetcheeseprogress'] = function()
for k, v in pairs (WritCreater.savedVarsAccountWide.cheesyProgress) do
WritCreater.savedVarsAccountWide.cheesyProgress[k] = 1
end
WritCreater.savedVarsAccountWide.cheesyProgress["cheeseProfession"] = 0
WritCreater.savedVarsAccountWide.cheesyProgress["cheeseCompletion"] = 4
pcall(function()TIMED_ACTIVITIES_KEYBOARD:Refresh() end )
end
SLASH_COMMANDS['/resetcheeseprogresscomplete'] = function()
for k, v in pairs (WritCreater.savedVarsAccountWide.cheesyProgress) do
WritCreater.savedVarsAccountWide.cheesyProgress[k] = 0
end
pcall(function()TIMED_ACTIVITIES_KEYBOARD:Refresh() end )
end
end
function WritCreater.Options() --Sentimental
local options = {
{
type = "header",
name = function()
local profile = WritCreater.optionStrings.accountWide
if WritCreater.savedVars.useCharacterSettings then
profile = WritCreater.optionStrings.characterSpecific
end
return string.format(WritCreater.optionStrings.nowEditing, profile)
end, -- or string id or function returning a string
},
{
type = "checkbox",
name = WritCreater.optionStrings.useCharacterSettings,
tooltip = WritCreater.optionStrings.useCharacterSettingsTooltip,
getFunc = function() return WritCreater.savedVars.useCharacterSettings end,
setFunc = function(value)
WritCreater.savedVars.useCharacterSettings = value
end,
},
{
type = "divider",
height = 15,
alpha = 0.5,
width = "full",
},
{
type = "checkbox",
name = WritCreater.optionStrings["autocraft"] ,
tooltip = WritCreater.optionStrings["autocraft tooltip"] ,
getFunc = function() return WritCreater:GetSettings().autoCraft end,
disabled = function() return not WritCreater:GetSettings().showWindow end,
setFunc = function(value)
WritCreater:GetSettings().autoCraft = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['stealingProtection'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().stealProtection end,
setFunc = function(value) WritCreater:GetSettings().stealProtection = value end,
tooltip = WritCreater.optionStrings['stealingProtectionTooltip'], -- or string id or function returning a string (optional)
} ,
{
type = "checkbox",
name = WritCreater.optionStrings['suppressQuestAnnouncements'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().suppressQuestAnnouncements end,
setFunc = function(value) WritCreater:GetSettings().suppressQuestAnnouncements = value end,
tooltip = WritCreater.optionStrings['suppressQuestAnnouncementsTooltip'], -- or string id or function returning a string (optional)
} ,
{
type = "dropdown",
name = WritCreater.optionStrings['dailyResetWarnType'],--"Master Writs",
tooltip = WritCreater.optionStrings['dailyResetWarnTypeTooltip'],--"Craft Master Writ Items",
choices = WritCreater.optionStrings["dailyResetWarnTypeChoices"],
choicesValues = {"none","announcement","alert","chat","window","all"},
getFunc = function() return WritCreater:GetSettings().dailyResetWarnType end,
setFunc = function(value)
WritCreater:GetSettings().dailyResetWarnType = value
WritCreater.showDailyResetWarnings("Example") -- Show the example warnings
end
},
{
type = "slider",
name = WritCreater.optionStrings['dailyResetWarnTime'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().dailyResetWarnTime end,
setFunc = function(value) WritCreater:GetSettings().dailyResetWarnTime = math.max(0,value) WritCreater.refreshWarning() end,
min = 0,
max = 300,
step = 1, --(optional)
clampInput = false, -- boolean, if set to false the input won't clamp to min and max and allow any number instead (optional)
tooltip = WritCreater.optionStrings['dailyResetWarnTimeTooltip'], -- or string id or function returning a string (optional)
requiresReload = false, -- boolean, if set to true, the warning text will contain a notice that changes are only applied after an UI reload and any change to the value will make the "Apply Settings" button appear on the panel which will reload the UI when pressed (optional)
} ,
{
type = "checkbox",
name = WritCreater.optionStrings["master"].." (Unsupported, use Writ Worthy)",--"Master Writs",
tooltip = WritCreater.optionStrings["master tooltip"],--"Craft Master Writ Items",
getFunc = function() return WritCreater.savedVarsAccountWide.masterWrits end,
setFunc = function(value)
WritCreater.savedVarsAccountWide.masterWrits = value
if LibCustomMenu or WritCreater.savedVarsAccountWide.rightClick then
WritCreater.savedVarsAccountWide.rightClick = not value
end
WritCreater.LLCInteraction:cancelItem()
if value then
for i = 1, 25 do WritCreater.MasterWritsQuestAdded(1, i,GetJournalQuestName(i)) end
end
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["right click to craft"],--"Master Writs",
tooltip = WritCreater.optionStrings["right click to craft tooltip"],--"Craft Master Writ Items",
getFunc = function() return WritCreater.savedVarsAccountWide.rightClick end,
disabled = not LibCustomMenu or WritCreater.savedVarsAccountWide.rightClick,
warning = "This option requires LibCustomMenu",
setFunc = function(value)
WritCreater.savedVarsAccountWide.masterWrits = not value
WritCreater.savedVarsAccountWide.rightClick = value
WritCreater.LLCInteraction:cancelItem()
if not value then
for i = 1, 25 do WritCreater.MasterWritsQuestAdded(1, i,GetJournalQuestName(i)) end
end
end,
},
}
if WritCreater.savedVarsAccountWide.unlockedCheese or WritCreater.savedVarsAccountWide.unlockedGoat then
local skinOptions = {"default"}
local skinChoices = {WritCreater.optionStrings["defaultSkin"]}
if WritCreater.savedVarsAccountWide.unlockedCheese then
table.insert(skinOptions, "cheese")
table.insert(skinChoices, WritCreater.optionStrings["cheeseSkin"])
end
if WritCreater.savedVarsAccountWide.unlockedGoat then
table.insert(skinOptions, "goat")
table.insert(skinChoices, WritCreater.optionStrings["goatSkin"])
end
table.insert(options, 4,
{
type = "divider",
height = 15,
alpha = 0.5,
width = "full",
})
table.insert(options, 4,
{
type = "dropdown",
name = WritCreater.optionStrings["skin"],--"Master Writs",
tooltip =WritCreater.optionStrings["skinTooltip"],--"Craft Master Writ Items",
choices = skinChoices,
choicesValues = skinOptions,
getFunc = function() return WritCreater.savedVarsAccountWide.skin end,
setFunc = function(value)
WritCreater.savedVarsAccountWide.skin = value
end
}
)
end
----------------------------------------------------
----- TIMESAVERS SUBMENU
local timesaverOptions =
{
{
type = "checkbox",
name = WritCreater.optionStrings["automatic complete"],
tooltip = WritCreater.optionStrings["automatic complete tooltip"],
getFunc = function() return WritCreater:GetSettings().autoAccept end,
setFunc = function(value) WritCreater:GetSettings().autoAccept = value end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['autoCloseBank'],
tooltip = WritCreater.optionStrings['autoCloseBankTooltip'],
getFunc = function() return WritCreater:GetSettings().autoCloseBank end,
setFunc = function(value)
WritCreater:GetSettings().autoCloseBank = value
if not value then
EVENT_MANAGER:RegisterForEvent(WritCreater.name, EVENT_OPEN_BANK, WritCreater.alchGrab)
else
EVENT_MANAGER:UnregisterForEvent(WritCreater.name)
end
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['despawnBanker'],
tooltip = WritCreater.optionStrings['despawnBankerTooltip'],
getFunc = function() return WritCreater:GetSettings().despawnBanker end,
setFunc = function(value)
WritCreater:GetSettings().despawnBanker = value
end,
disabled = function() return not WritCreater:GetSettings().autoCloseBank end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['despawnBankerDeposit'],
tooltip = WritCreater.optionStrings['despawnBankerDepositTooltip'],
getFunc = function() return WritCreater:GetSettings().despawnBankerDeposits end,
setFunc = function(value)
WritCreater:GetSettings().despawnBankerDeposits = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["exit when done"],
tooltip = WritCreater.optionStrings["exit when done tooltip"],
getFunc = function() return WritCreater:GetSettings().exitWhenDone end,
setFunc = function(value) WritCreater:GetSettings().exitWhenDone = value end,
},
{
type = "dropdown",
name = WritCreater.optionStrings["autoloot behaviour"] ,
tooltip = WritCreater.optionStrings["autoloot behaviour tooltip"],
choices = WritCreater.optionStrings["autoloot behaviour choices"],
choicesValues = {1,2,3},
getFunc = function() if not WritCreater:GetSettings().ignoreAuto then return 1 elseif WritCreater:GetSettings().autoLoot then return 2 else return 3 end end,
setFunc = function(value)
if value == 1 then
WritCreater:GetSettings().ignoreAuto = false
elseif value == 2 then
WritCreater:GetSettings().autoLoot = true
WritCreater:GetSettings().ignoreAuto = true
elseif value == 3 then
WritCreater:GetSettings().ignoreAuto = true
WritCreater:GetSettings().autoLoot = false
WritCreater:GetSettings().lootContainerOnReceipt = false
end
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["loot container"],
tooltip = WritCreater.optionStrings["loot container tooltip"],
disabled = function() return not WritCreater:GetSettings().autoLoot end,
getFunc = function()
if not WritCreater:GetSettings().autoLoot then
WritCreater:GetSettings().lootContainerOnReceipt = false
end
return WritCreater:GetSettings().lootContainerOnReceipt
end,
setFunc = function(value)
WritCreater:GetSettings().lootContainerOnReceipt = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["new container"],
tooltip = WritCreater.optionStrings["new container tooltip"],
getFunc = function() return WritCreater:GetSettings().keepNewContainer end,
setFunc = function(value)
WritCreater:GetSettings().keepNewContainer = value
end,
},
--[[{
type = "slider",
name = WritCreater.optionStrings["container delay"],
tooltip = WritCreater.optionStrings["container delay tooltip"] ,
min = 0,
max = 5,
getFunc = function() return WritCreater:GetSettings().containerDelay end,
setFunc = function(value)
WritCreater:GetSettings().containerDelay = value
end,
disabled = function() return not WritCreater:GetSettings().lootContainerOnReceipt end,
},--]]
{
type = "checkbox",
name = WritCreater.optionStrings["master writ saver"],
tooltip = WritCreater.optionStrings["master writ saver tooltip"],
getFunc = function() return WritCreater:GetSettings().preventMasterWritAccept end,
setFunc = function(value)
WritCreater:GetSettings().preventMasterWritAccept = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["loot output"],--"Master Writs",
tooltip = WritCreater.optionStrings["loot output tooltip"],--"Craft Master Writ Items",
getFunc = function() return WritCreater:GetSettings().lootOutput end,
setFunc = function(value)
WritCreater:GetSettings().lootOutput = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['reticleColour'],--"Master Writs",
tooltip = WritCreater.optionStrings['reticleColourTooltip'],--"Craft Master Writ Items",
getFunc = function() return WritCreater:GetSettings().changeReticle end,
setFunc = function(value)
WritCreater:GetSettings().changeReticle = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['noDELETEConfirmJewelry'],--"Master Writs",
tooltip = WritCreater.optionStrings['noDELETEConfirmJewelryTooltip'],--"Craft Master Writ Items",
getFunc = function() return WritCreater:GetSettings().EZJewelryDestroy end,
setFunc = function(value)
WritCreater:GetSettings().EZJewelryDestroy = value
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings['questBuffer'],--"Master Writs",
tooltip = WritCreater.optionStrings['questBufferTooltip'],--"Craft Master Writ Items",
getFunc = function() return WritCreater:GetSettings().keepQuestBuffer end,
setFunc = function(value)
WritCreater:GetSettings().keepQuestBuffer = value
end,
},
{
type = "slider",
name = WritCreater.optionStrings['craftMultiplier'],--"Master Writs",
tooltip = WritCreater.optionStrings['craftMultiplierTooltip'],--"Craft Master Writ Items",
min = 1,
max = 8,
step = 1,
getFunc = function() return WritCreater:GetSettings().craftMultiplier end,
setFunc = function(value)
WritCreater:GetSettings().craftMultiplier = value
end,
},
{
type = "dropdown",
name = WritCreater.optionStrings["hireling behaviour"] ,
tooltip = WritCreater.optionStrings["hireling behaviour tooltip"],
choices = WritCreater.optionStrings["hireling behaviour choices"],
choicesValues = {1,2,3},
getFunc = function() if WritCreater:GetSettings().mail.delete then return 2 elseif WritCreater:GetSettings().mail.loot then return 3 else return 1 end end,
setFunc = function(value)
if value == 1 then
WritCreater:GetSettings().mail.delete = false
WritCreater:GetSettings().mail.loot = false
elseif value == 2 then
WritCreater:GetSettings().mail.delete = true
WritCreater:GetSettings().mail.loot = true
elseif value == 3 then
WritCreater:GetSettings().mail.delete = false
WritCreater:GetSettings().mail.loot = true
end
end,
},
{
type = "checkbox",
name = WritCreater.optionStrings["scan for unopened"] ,
tooltip = WritCreater.optionStrings["scan for unopened tooltip"],
getFunc = function() return WritCreater:GetSettings().scanForUnopened end,
setFunc = function(value)
WritCreater:GetSettings().scanForUnopened = value
end,
},
}
local statusBarOptions = {
{
type = "checkbox",
name = WritCreater.optionStrings['showStatusBar'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().showStatusBar end,
setFunc = function(value)
WritCreater:GetSettings().showStatusBar = value
WritCreater.toggleQuestStatusWindow()
end,
tooltip = WritCreater.optionStrings['showStatusBarTooltip'], -- or string id or function returning a string (optional)
} ,
{
type = "checkbox",
name = WritCreater.optionStrings['statusBarInventory'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().statusBarInventory end,
disabled = function() return not WritCreater:GetSettings().showStatusBar end,
setFunc = function(value) WritCreater:GetSettings().statusBarInventory = value
WritCreater.updateQuestStatus()
end,
tooltip = WritCreater.optionStrings['statusBarInventoryTooltip'], -- or string id or function returning a string (optional)
default = WritCreater.default.statusBarIcons,
},
{
type = "checkbox",
name = WritCreater.optionStrings['statusBarIcons'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().statusBarIcons end,
disabled = function() return not WritCreater:GetSettings().showStatusBar end,
setFunc = function(value) WritCreater:GetSettings().statusBarIcons = value
WritCreater.updateQuestStatus()
end,
tooltip = WritCreater.optionStrings['statusBarIconsTooltip'], -- or string id or function returning a string (optional)
default = WritCreater.default.statusBarIcons,
},
{
type = "checkbox",
name = WritCreater.optionStrings['transparentStatusBar'], -- or string id or function returning a string
getFunc = function() return WritCreater:GetSettings().transparentStatusBar end,
disabled = function() return not WritCreater:GetSettings().showStatusBar end,
setFunc = function(value) WritCreater:GetSettings().transparentStatusBar = value
WritCreater.updateQuestStatus()
end,
tooltip = WritCreater.optionStrings['transparentStatusBarTooltip'], -- or string id or function returning a string (optional)
default = WritCreater.default.transparentStatusBar,
} ,
}
----------------------------------------------------
----- REWARDS SUBMENU
local rewardsSubmenu = {
-- Options: Nothing, destroy, deposit, junk (Vendor?)
-- Enchanting
-- Surveys
-- master writs
-- mats
-- glyphs
-- empty soul gems