forked from secretrob/BanditsUserInterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUI_Settings.lua
2812 lines (2770 loc) · 114 KB
/
BUI_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
-- MENU OPTIONS COMPONENT
local MenuOptions,MenuPanel,MenuHandlers={},{},{}
local TexturesList={} for t in pairs(BUI.Textures) do table.insert(TexturesList,t) end
local MoveMode_1,MoveMode_2=true,true
local move_init,move_anchor
local MenuIcon={
MenuMisc="/esoui/art/login/authentication_trusted_up.dds",
MenuReticle="/esoui/art/icons/guildranks/guild_indexicon_misc03_up.dds",
MenuPlayerFrames="/esoui/art/mainmenu/menubar_character_up.dds",
--MenuCurvedFrames="/esoui/art/mainmenu/menubar_character_up.dds",
MenuAttackersFrames="/esoui/art/treeicons/collection_indexicon_weapons+armor_up.dds",
MenuTargetFrames="/esoui/art/treeicons/tutorial_idexicon_death_up.dds",
MenuGroupFrames="/esoui/art/lfg/lfg_indexicon_group_up.dds",
MenuStatShare="/esoui/art/mainmenu/menubar_collections_up.dds",
MenuDamageStatistics="/esoui/art/mainmenu/menubar_skills_up.dds",
MenuBuffs="/esoui/art/progression/morph_up.dds",
MenuActions="/esoui/art/treeicons/tutorial_idexicon_timedactivities_up.dds",
MenuNotifications="/esoui/art/help/help_tabicon_tutorial_up.dds",
MenuMinimap="/esoui/art/icons/achievements_indexicon_exploration_up.dds",
MenuFrameColors="/esoui/art/tutorial/dyes_tabicon_dye_up.dds",
MenuMeters="esoui/art/treeicons/housing_indexicon_structures_up.dds",
MenuMarkers="/esoui/art/guild/guild_indexicon_leader_up.dds",
}
local MenuNumber={
MenuMisc ="1. ",
MenuPlayerFrames ="3. ",
MenuAttackersFrames="4. ",
--MenuCurvedFrames ="4. ",
MenuGroupFrames ="5. ",
--MenuStatShare ="5. ",
MenuTargetFrames ="6. ",
MenuActions ="7. ",
MenuBuffs ="8. ",
MenuMinimap ="9. ",
MenuReticle ="10. ",
MenuDamageStatistics="11. ",
MenuNotifications ="12. ",
MenuFrameColors ="13. ",
MenuMeters ="21. ",
MenuMarkers ="22. ",
}
local GroupDeathSounds={
"No_Sound",
"Outfitting_WeaponAdd_Mace",
"Outfitting_ArmorAdd_Light",
"Telvar_Gained",
"Undaunted_Transact",
"Lockpicking_unlocked",
}
local NotificationSounds={
"No_Sound",
"Justice_StateChanged",
"GiftInventoryView_FanfareSparks",
"New_Notification",
"BG_CTF_FlagReturned",
"LevelUpReward_Claim",
"InventoryItem_ApplyEnchant",
"Console_Game_Enter",
"Raid_Trial_Failed",
"Champion_PointsCommitted",
"BG_CTF_FlagCaptured",
"Quest_Complete",
}
local ProcSounds={
"No_Sound",
"Collectible_On_Cooldown",
"Telvar_MultiplierMax",
"Justice_PickpocketBonus",
"BG_MB_BallTaken_OtherTeam",
"Telvar_MultiplierUp",
"Ability_MorphPurchased",
"Objective_Complete",
"Telvar_Gained",
"CrownCrates_Card_Flipping",
"GiftInventoryView_FanfareSparks",
"CrownCrates_Manifest_Selected",
"CrownCrates_Manifest_Chosen",
"Ability_UpgradePurchased",
"Ability_Ultimate_Ready_Sound",
}
local function MenuMiscAdditional()
--Add additional elements
local mode1 =BUI.UI.Button( "BUI_Menu_Move1_Sw", BUI_MenuMisc, {26,26}, {BOTTOM,TOP,-10,0,BUI_MenuButton_Move}, BSTATE_NORMAL, nil, nil, nil, nil, nil, false)
mode1:SetNormalTexture(MoveMode_1 and "/esoui/art/cadwell/checkboxicon_checked.dds" or "esoui/art/cadwell/checkboxicon_unchecked.dds")
mode1:SetHandler("OnClicked", function(self) MoveMode_1=not MoveMode_1 self:SetNormalTexture(MoveMode_1 and "/esoui/art/cadwell/checkboxicon_checked.dds" or "esoui/art/cadwell/checkboxicon_unchecked.dds") end)
BUI.UI.Label( "BUI_Menu_Move1_Label", mode1, {60,26}, {RIGHT,LEFT,-4,0}, BUI.UI.Font("standard",18,true), {.8,.8,.6,1}, {2,1}, "Bandits", false)
local mode2 =BUI.UI.Button( "BUI_Menu_Move2_Sw", BUI_MenuMisc, {26,26}, {BOTTOM,TOP,90,0,BUI_MenuButton_Move}, BSTATE_NORMAL, nil, nil, nil, nil, nil, false)
mode2:SetNormalTexture(MoveMode_2 and "/esoui/art/cadwell/checkboxicon_checked.dds" or "esoui/art/cadwell/checkboxicon_unchecked.dds")
mode2:SetHandler("OnClicked", function(self) MoveMode_2=not MoveMode_2 self:SetNormalTexture(MoveMode_2 and "/esoui/art/cadwell/checkboxicon_checked.dds" or "esoui/art/cadwell/checkboxicon_unchecked.dds") end)
BUI.UI.Label( "BUI_Menu_Move2_Label", mode2, {60,26}, {RIGHT,LEFT,-4,0}, BUI.UI.Font("standard",18,true), {.8,.8,.6,1}, {2,1}, "Default", false)
end
ZO_Dialogs_RegisterCustomDialog("BUI_RESET_CONFIRMATION", {
gamepadInfo={dialogType=GAMEPAD_DIALOGS.BASIC, allowShowOnNextScene=true},
title={text=SI_CUSTOMER_SERVICE_SUBMIT_CONFIRMATION},
mainText=function(dialog) return {text=dialog.data.text} end,
buttons=
{
{text=SI_OK,callback=function(dialog)dialog.data.func()end,keybind="DIALOG_PRIMARY",clickSound=SOUNDS.DIALOG_ACCEPT},
{text=SI_DIALOG_CANCEL,keybind="DIALOG_NEGATIVE",clickSound=SOUNDS.DIALOG_ACCEPT}
}
}
)
local function MenuOptions_Init() --Menu options
BUI.Menu.Black_List,BUI.Menu.Black_List_Values=BUI.Menu.MakeList(BUI.Vars.BuffsBlackList)
BUI.Menu.Custom_List,BUI.Menu.Custom_List_Values=BUI.Menu.MakeList(BUI.Vars.CustomBuffs)
-- local Widgets_List,Widgets_List_Values=BUI.Menu.MakeList(BUI.Vars.Widgets)
MenuOptions["MenuMisc"]={
--Reposition Elements
{ type ="button",
name ="Move",
func =function() BUI.Menu.MoveFrames(true) end,
reference ="BUI_MenuButton_Move",
},
--Reset Default Frames
{ type ="button",
name ="ResetPositions",
func =function()ZO_Dialogs_ShowDialog ("BUI_RESET_CONFIRMATION", {text=BUI.Loc("ResetPositionsDesc"),func=function()BUI.Menu.Reset("Positions")end})end,
reference ="BUI_MenuButton_Reset",
},
--Theme
{ type ="header", name="Theme"},
{ type ="dropdown",
name ="Theme",
choices ={"Standard","Standard smooth","Standard flat","Custom gloss","Custom flat","Pink pony","Advanced"},
-- choicesValues={1,2,3,4,5,6,7},
getFunc =function() return BUI.Vars.Theme end,
setFunc =function(i,value)
if i==BUI.Vars.Theme then
--Do nothing
else
BUI.Vars.Theme=i BUI.Themes_Setup(true) SCENE_MANAGER:SetInUIMode(false) a("Changing theme: Done")
end
end,
},
--Frames Texture
{ type ="dropdown",
name ="FramesTexture",
choices =TexturesList,
getFunc =function() return BUI.Vars.FramesTexture end,
setFunc =function(i,value) BUI.Menu.UpdateFrames("FramesTexture", value) end,
},
--Custom theme Color
{ type ="colorpicker",
name ="CustomEdgeColor",
getFunc =function() return BUI.Vars.CustomEdgeColor[1],BUI.Vars.CustomEdgeColor[2],BUI.Vars.CustomEdgeColor[3] end,
setFunc =function(r,g,b,a) BUI.Vars.CustomEdgeColor={math.floor(r*100)/100, math.floor(g*100)/100, math.floor(b*100)/100,1} BUI.Themes_Setup(true) end,
},
--Advanced theme Color
{ type ="colorpicker",
name ="AdvancedThemeColor",
getFunc =function() return BUI.Vars.AdvancedThemeColor[1],BUI.Vars.AdvancedThemeColor[2],BUI.Vars.AdvancedThemeColor[3],BUI.Vars.AdvancedThemeColor[4] end,
setFunc =function(r,g,b,a) BUI.Vars.AdvancedThemeColor={math.floor(r*100)/100, math.floor(g*100)/100, math.floor(b*100)/100, math.floor(a*100)/100} if BUI.Vars.Theme==7 then BUI.Themes_Setup(true) end end,
},
--QuickSlots
{ type ="header",
name ="QuickSlotsHeader",
},
{ type ="checkbox",
name ="QuickSlots",
getFunc =function() return BUI.Vars.QuickSlots end,
setFunc =function(value) BUI.Vars.QuickSlots=value BUI.QuickSlots:Initialize() end,
},
{ type ="checkbox",
name ="QuickSlotsInventory",
getFunc =function() return BUI.Vars.QuickSlotsInventory end,
setFunc =function(value) BUI.Vars.QuickSlotsInventory=value BUI.QuickSlots:Initialize() end,
},
--QuickSlots number
{ type ="slider",
name ="QuickSlotsShow",
min =3,
max =8,
step =1,
getFunc =function() return BUI.Vars.QuickSlotsShow end,
setFunc =function(value) BUI.Vars.QuickSlotsShow=value BUI.QuickSlots.Update() end,
},
--Misc
{ type ="header",
name ="MiscHeader1",
},
--Change language
{ type ="dropdown",
name ="ChangeLanguage",
choices ={"en", "ru", "de", "fr", "jp","it","br","pl"},
getFunc =function() return BUI.language end,
setFunc =function(i,value) SCENE_MANAGER:SetInUIMode(false) BUI.OnScreen.Notification(8,"Reloading UI") BUI.CallLater("Language",1000,SetCVar,"Language.2",value) end,
warning ="ChangeLanguageWarn",
},
--[[ --Player attributes section
{ type ="checkbox",
name ="PlayerStatSection",
getFunc =function() return BUI.Vars.PlayerStatSection end,
setFunc =function(value) BUI.Vars.PlayerStatSection=value end,
warning =true,
disabled =function() return BUI.API>100033 end,
},
--]]
--PvPmode
{ type ="checkbox",
name ="PvPmode",
getFunc =function() return BUI.Vars.PvPmode end,
setFunc =function(value) BUI.Vars.PvPmode=value end,
},
--[[ --Champion system helper
{ type ="checkbox",
name ="ChampionHelper",
getFunc =function() return BUI.Vars.ChampionHelper end,
setFunc =function(value) BUI.Vars.ChampionHelper=value BUI.Champion_Init() end,
disabled =function() return BUI.API>100033 end,
},
--]]
--Reset Addon
{ type ="button",
name ="Reset",
func =function()ZO_Dialogs_ShowDialog ("BUI_RESET_CONFIRMATION", {text=BUI.Loc("ResetDesc"),func=BUI.Menu.Reset})end,
}}
MenuPanel["MenuMisc"]={name="MiscHeader"}
MenuHandlers["MenuMisc"]={
OnEffectivelyShown=function()BUI.CallLater("MenuMisc",100,MenuMiscAdditional)end,
OnEffectivelyHidden=function() BUI.inMenu=false end,
}
MenuOptions["MenuReticle"]={
{ type ="checkbox",
name ="LeaderArrow",
getFunc =function() return BUI.Vars.LeaderArrow end,
setFunc =function(value) BUI.Vars.LeaderArrow=value BUI.Reticle.LeaderArrow() end,
},
{ type ="checkbox",
name ="InCombatReticle",
getFunc =function() return BUI.Vars.InCombatReticle end,
setFunc =function(value) BUI.Vars.InCombatReticle=value end,
},
{ type ="checkbox",
name ="PreferredTarget",
getFunc =function() return BUI.Vars.PreferredTarget end,
setFunc =function(value) BUI.Vars.PreferredTarget=value end,
},
{ type ="checkbox",
name ="ReticleDpS",
getFunc =function() return BUI.Vars.ReticleDpS end,
setFunc =function(value) BUI.Vars.ReticleDpS=value end,
disabled =function() return not BUI.Vars.StatsMiniMeter end,
},
{ type ="checkbox",
name ="ReticleInvul",
getFunc =function() return BUI.Vars.ReticleInvul end,
setFunc =function(value) BUI.Vars.ReticleInvul=value if value then BUI.Target:Initialize() end end,
},
--Crusher timer
{ type ="checkbox",
name ="CrusherTimer",
getFunc =function() return BUI.Vars.CrusherTimer end,
setFunc =function(value) BUI.Vars.CrusherTimer=value end,
},
--Taunt timer
{ type ="dropdown",
name ="TauntTimer",
choices ={"Progress bar","Bar and number","Number only","Disabled"},
getFunc =function() return BUI.Vars.TauntTimer end,
setFunc =function(i,value) BUI.Vars.TauntTimer=i end,
},
{ type ="checkbox",
name ="TauntTimerSource",
getFunc =function() return BUI.Vars.TauntTimerSource end,
setFunc =function(value) BUI.Vars.TauntTimerSource=value end,
disabled =function() return BUI.Vars.TauntTimer==4 end,
},
--Reticle resist
{ type ="dropdown",
name ="ReticleResist",
choices ={"Current value","Detailed info","Disabled"},
-- choicesValues={1,2,3},
getFunc =function() return BUI.Vars.ReticleResist end,
setFunc =function(i,value) BUI.Vars.ReticleResist=i end,
-- disabled =function() return BUI.API>100033 end,
},
--Cast bar
{ type ="dropdown",
name ="CastBar",
choices ={"Any ability","Cast time ability","Disabled"},
getFunc =function() return BUI.Vars.CastBar end,
setFunc =function(i,value) BUI.Vars.CastBar=i end,
disabled =function() return not BUI.Vars.Actions end,
},
--Swap indicator
{ type ="checkbox",
name ="SwapIndicator",
getFunc =function() return BUI.Vars.SwapIndicator end,
setFunc =function(value) BUI.Vars.SwapIndicator=value end,
disabled =function() return not BUI.Vars.Actions end,
},
--Impactful hit animation
{ type ="checkbox",
name ="ImpactAnimation",
getFunc =function() return BUI.Vars.ImpactAnimation end,
setFunc =function(value) BUI.Vars.ImpactAnimation=value BUI.Reticle.Initialize() end,
},
--Reticle mode
{ type ="dropdown",
name ="ReticleMode",
choices ={"Default","Crosshair","Rhomboid","Circular","Triangle 1","Triangle 2","Dotty","Brackets","Dots"},
getFunc =function() return BUI.Vars.ReticleMode end,
setFunc =function(i,value) BUI.Vars.ReticleMode=i BUI.Reticle.Mode(i) end,
},
--Speed boost
{ type ="checkbox",
name ="ReticleBoost",
getFunc =function() return BUI.Vars.ReticleBoost end,
setFunc =function(value) BUI.Vars.ReticleBoost=value end,
disabled =function() return not BUI.Vars.PlayerBuffs end
},
--Block indicator
{ type ="checkbox",
name ="BlockIndicator",
getFunc =function() return BUI.Vars.BlockIndicator end,
setFunc =function(value) BUI.Vars.BlockIndicator=value BUI.Reticle.Blocking() end
},
{ type="texture",
texture="/BanditsUserInterface/textures/reticle/menu_reticle.dds",
dimensions={128,128}
}}
MenuPanel["MenuReticle"]={name="ReticleHeader"}
MenuHandlers["MenuReticle"]={
["OnEffectivelyHidden"]=function() BUI.inMenu=false end,
}
MenuOptions["MenuPlayerFrames"]={
-- type="submenu", name="PlayerHeader", controls={
--Player Frames
{ type ="dropdown",
name ="PlayerHeader",
choices ={"Default frames","Default: pyramid","Bandits: default","Bandits: pyramid","Bandits: vertical","Disabled"},
getFunc =function()
if BUI.Vars.DefaultPlayerFrames then
if BUI.Vars.RepositionFrames then return "Default: pyramid" else return "Default frames" end
elseif BUI.Vars.PlayerFrame then
if BUI.Vars.FrameHorisontal then
return BUI.Vars.RepositionFrames and "Bandits: pyramid" or "Bandits: default"
else return "Bandits: vertical" end
else
return "Disabled"
end
end,
setFunc =function(i,value)
if value=="Default frames" then
local old1=BUI.Vars.DefaultPlayerFrames BUI.Vars.DefaultPlayerFrames=true
local old2=BUI.Vars.RepositionFrames BUI.Vars.RepositionFrames=false
BUI.Vars.PlayerFrame=false
BUI.Menu.Reset("DefaultFrames")
if not old1 then BUI.Frames:ZO_PlayerAttribute_toggle(true) end
if old2 then BUI.Frames.ZO_PlayerAttribute_reposition() end
if BUI_PlayerFrame then BUI_PlayerFrame:SetHidden(true) end
-- if not old1 or old2 then SCENE_MANAGER:SetInUIMode(false) BUI.OnScreen.Notification(8,"Reloading UI") BUI.CallLater("ReloadUI",1000,ReloadUI) end
elseif value=="Default: pyramid" then
local old1=BUI.Vars.DefaultPlayerFrames BUI.Vars.DefaultPlayerFrames=true
BUI.Vars.RepositionFrames=true
BUI.Vars.PlayerFrame=false
BUI.Frames:ZO_PlayerAttribute_reposition()
if not old1 then BUI.Frames:ZO_PlayerAttribute_toggle(true) end
if BUI_PlayerFrame then BUI_PlayerFrame:SetHidden(true) end
-- if not old1 then SCENE_MANAGER:SetInUIMode(false) BUI.OnScreen.Notification(8,"Reloading UI") BUI.CallLater("ReloadUI",1000,ReloadUI) end
elseif value=="Bandits: default" then
BUI.Vars.DefaultPlayerFrames=false
BUI.Frames:ZO_PlayerAttribute_toggle()
BUI.Vars.PlayerFrame=true
BUI.Vars.FrameHorisontal=true
BUI.Vars.RepositionFrames=false
BUI.Frames:Controls()
BUI.Frames:SetupPlayer()
BUI.Menu:FramesReposition()
elseif value=="Bandits: pyramid" then
BUI.Vars.DefaultPlayerFrames=false
BUI.Frames:ZO_PlayerAttribute_toggle()
BUI.Vars.PlayerFrame=true
BUI.Vars.FrameHorisontal=true
BUI.Vars.RepositionFrames=true
BUI.Vars.TargetHeight=BUI.Vars.FrameHeight
BUI.Frames:Controls()
BUI.Frames:SetupPlayer()
BUI.Menu:FramesReposition()
elseif value=="Bandits: vertical" then
BUI.Vars.DefaultPlayerFrames=false
BUI.Frames:ZO_PlayerAttribute_toggle()
BUI.Vars.PlayerFrame=true
BUI.Vars.FrameHorisontal=false
BUI.Vars.RepositionFrames=false
BUI.Vars.TargetHeight=BUI.Vars.FrameHeight*1.5
BUI.Vars.TargetWidth=BUI.Vars.FrameWidth
BUI.Frames:Controls()
BUI.Frames:SetupPlayer()
BUI.Menu:FramesReposition()
elseif value=="Disabled" then
BUI.Vars.DefaultPlayerFrames=false
BUI.Vars.PlayerFrame=false
BUI.Vars.FrameHorisontal=true
BUI.Vars.TargetHeight=BUI.Vars.FrameHeight
BUI.Frames:ZO_PlayerAttribute_toggle()
BUI.Frames:Controls()
end
end,
default ="Bandits Player frame",
-- warning =true,
},
--Frames Border
{ type ="dropdown",
name ="FramesBorder",
choices ={"Plain","Thin","Thin (the same)","Clockwork","Blade","Round","Dragon"},
getFunc =function() return BUI.Vars.FramesBorder end,
setFunc =function(i,value) BUI.Vars.FramesBorder=i BUI.Frames:Controls() end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Show Maximum Health
{ type ="checkbox",
name ="FrameShowMax",
getFunc =function() return BUI.Vars.FrameShowMax end,
setFunc =function(value) BUI.Menu.UpdateFrames('FrameShowMax', value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Show Percents
{ type ="checkbox",
name ="FramePercents",
getFunc =function() return BUI.Vars.FramePercents end,
setFunc =function(value) BUI.Menu.UpdateFrames('FramePercents', value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Unit Frame Width
{ type ="slider",
name ="FrameWidth",
min =200,
max =500,
step =10,
getFunc =function() return BUI.Vars.FrameWidth end,
setFunc =function(value) BUI.Menu.UpdateFrames("FrameWidth", value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Unit Frame Height
{ type ="slider",
name ="FrameHeight",
min =16,
max =40,
step =4,
getFunc =function() return BUI.Vars.FrameHeight end,
setFunc =function(value) BUI.Menu.UpdateFrames("FrameHeight", value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Frame Font Size
{ type ="slider",
name ="FrameFontSize",
min =12,
max =24,
step =1,
getFunc =function() return BUI.Vars.FrameFontSize end,
setFunc =function(value) BUI.Menu.UpdateFrames("FrameFontSize", value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Display Nameplate
{ type ="checkbox",
name ="EnableNameplate",
getFunc =function() return BUI.Vars.EnableNameplate end,
setFunc =function(value) BUI.Menu.UpdateFrames('EnableNameplate', value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Food buff
{ type ="checkbox",
name ="FoodBuff",
getFunc =function() return BUI.Vars.FoodBuff end,
setFunc =function(value) BUI.Menu.UpdateFrames('FoodBuff', value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Reset Unit Frames
{ type ="button",
name ="FramesReset",
func =function()ZO_Dialogs_ShowDialog("BUI_RESET_CONFIRMATION", {text=BUI.Loc("FramesResetDesc"),func=function()BUI.Menu.Reset("Frames")end})end,
},
-- ==Curved Frames==
{type="submenu",name="CurvedHeader",controls={
--Curved Frames Style
{ type ="dropdown",
name ="CurvedFrame",
choices ={"Disabled","Simple","Cone","Blades"},
getFunc =function() return BUI.Vars.CurvedFrame+1 end,
setFunc =function(i,value) BUI.Vars.CurvedFrame=i-1 BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
},
--Curved Frames Distance
{ type ="slider",
name ="CurvedDistance",
min =80,
max =800,
step =20,
getFunc =function() return BUI.Vars.CurvedDistance end,
setFunc =function(value) BUI.Vars.CurvedDistance=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
warning ="CurvedDistanceWarn",
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames offset
{ type ="slider",
name ="CurvedOffset",
min =-300,
max =300,
step =50,
getFunc =function() return BUI.Vars.CurvedOffset end,
setFunc =function(value) BUI.Vars.CurvedOffset=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames height
{ type ="slider",
name ="CurvedHeight",
min =80,
max =640,
step =20,
getFunc =function() return BUI.Vars.CurvedHeight end,
setFunc =function(value) BUI.Vars.CurvedHeight=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames Depth
{ type ="slider",
name ="CurvedDepth",
min =50,
max =100,
step =10,
getFunc =function() return BUI.Vars.CurvedDepth*100 end,
setFunc =function(value) BUI.Vars.CurvedDepth=value/100 BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Stat Values
{ type ="checkbox",
name ="CurvedStatValues",
getFunc =function() return BUI.Vars.CurvedStatValues end,
setFunc =function(value) BUI.Vars.CurvedStatValues=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Deadly hit animation
{ type ="checkbox",
name ="CurvedHitAnimation",
getFunc =function() return BUI.Vars.CurvedHitAnimation end,
setFunc =function(value) BUI.Vars.CurvedHitAnimation=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Attributes shift
{ type ="checkbox",
name ="CurvedShift",
getFunc =function() return BUI.Vars.CurvedShift end,
setFunc =function(value) BUI.Vars.CurvedShift=value BUI.Curved.OnCombatState(false) BUI_CurvedTarget:SetAlpha(BUI.Vars.FrameOpacityIn/100) BUI_CurvedTarget:SetHidden(value) end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Shift animation
{ type ="checkbox",
name ="CurvedShiftAnimation",
getFunc =function() return BUI.Vars.CurvedShiftAnimation end,
setFunc =function(value) BUI.Vars.CurvedShiftAnimation=value if value then BUI.Curved.OnCombatState(false) end end,
disabled =function() return BUI.Vars.CurvedFrame==0 or not BUI.Vars.CurvedShift end,
},
--Reset Curved Frames
{
type ="button",
name ="CurvedReset",
func =function()ZO_Dialogs_ShowDialog("BUI_RESET_CONFIRMATION", {text=BUI.Loc("CurvedResetDesc"),func=function()BUI.Menu.Reset("Curved")end})end,
}}},
-- =="Advanced settings==
{type="submenu",name="AdvancedHeader",controls={
--Experience Bar
{ type ="checkbox",
name ="EnableXPBar",
getFunc =function() return BUI.Vars.EnableXPBar end,
setFunc =function(value) BUI.Menu.UpdateFrames('EnableXPBar', value) end,
disabled =function() return not BUI.Vars.PlayerFrame and BUI.Vars.CurvedFrame==0 end,
},
--Bound Armaments/Grim Focus
{ type ="checkbox",
name ="ShowDots",
getFunc =function() return BUI.Vars.ShowDots end,
setFunc =function(value) BUI.Menu.UpdateFrames('ShowDots', value) end,
disabled =function() return not BUI.Vars.PlayerFrame and BUI.Vars.CurvedFrame==0 end,
},
--Dodge fatigue
{ type ="checkbox",
name ="DodgeFatigue",
getFunc =function() return BUI.Vars.DodgeFatigue end,
setFunc =function(value) BUI.Menu.UpdateFrames('DodgeFatigue', value) end,
disabled =function() return not BUI.Vars.PlayerFrame and BUI.Vars.CurvedFrame==0 end,
},
--Auto hide
{ type ="checkbox",
name ="FramesFade",
getFunc =function() return BUI.Vars.FramesFade end,
setFunc =function(value) BUI.Vars.FramesFade=value end,
disabled =function() return not BUI.Vars.PlayerFrame and BUI.Vars.CurvedFrame==0 end,
}}}
}
MenuPanel["MenuPlayerFrames"]={name="PlayerHeader"}
MenuHandlers["MenuPlayerFrames"]={
["OnEffectivelyShown"]=BUI.Menu.FramesReposition,
["OnEffectivelyHidden"]=function() BUI.Menu.FramesRestore() BUI.inMenu=false end,
}
--[[
MenuOptions["MenuCurvedFrames"]={
-- type="header", name="CurvedHeader", curved=true
--Curved Frames Style
{ type ="dropdown",
name ="CurvedFrame",
choices ={"Disabled","Simple","Cone","Blades"},
getFunc =function() return BUI.Vars.CurvedFrame+1 end,
setFunc =function(i,value) BUI.Vars.CurvedFrame=i-1 BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
},
--Curved Frames Distance
{ type ="slider",
name ="CurvedDistance",
min =80,
max =800,
step =20,
getFunc =function() return BUI.Vars.CurvedDistance end,
setFunc =function(value) BUI.Vars.CurvedDistance=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
warning ="CurvedDistanceWarn",
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames offset
{ type ="slider",
name ="CurvedOffset",
min =-300,
max =300,
step =50,
getFunc =function() return BUI.Vars.CurvedOffset end,
setFunc =function(value) BUI.Vars.CurvedOffset=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames height
{ type ="slider",
name ="CurvedHeight",
min =80,
max =640,
step =20,
getFunc =function() return BUI.Vars.CurvedHeight end,
setFunc =function(value) BUI.Vars.CurvedHeight=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Frames Depth
{ type ="slider",
name ="CurvedDepth",
min =10,
max =100,
step =10,
getFunc =function() return BUI.Vars.CurvedDepth*100 end,
setFunc =function(value) BUI.Vars.CurvedDepth=value/100 BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Curved Stat Values
{ type ="checkbox",
name ="CurvedStatValues",
getFunc =function() return BUI.Vars.CurvedStatValues end,
setFunc =function(value) BUI.Vars.CurvedStatValues=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Deadly hit animation
{ type ="checkbox",
name ="CurvedHitAnimation",
getFunc =function() return BUI.Vars.CurvedHitAnimation end,
setFunc =function(value) BUI.Vars.CurvedHitAnimation=value BUI.Curved.Initialize() BUI.Menu.FramesReposition() end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Attributes shift
{ type ="checkbox",
name ="CurvedShift",
getFunc =function() return BUI.Vars.CurvedShift end,
setFunc =function(value) BUI.Vars.CurvedShift=value BUI.Curved.OnCombatState(false) BUI_CurvedTarget:SetAlpha(BUI.Vars.FrameOpacityIn/100) BUI_CurvedTarget:SetHidden(value) end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Shift animation
{ type ="checkbox",
name ="CurvedShiftAnimation",
getFunc =function() return BUI.Vars.CurvedShiftAnimation end,
setFunc =function(value) BUI.Vars.CurvedShiftAnimation=value if value then BUI.Curved.OnCombatState(false) end end,
disabled =function() return BUI.Vars.CurvedFrame==0 or not BUI.Vars.CurvedShift end,
},
--Auto hide
{ type ="checkbox",
name ="FramesFade",
getFunc =function() return BUI.Vars.FramesFade end,
setFunc =function(value) BUI.Vars.FramesFade=value end,
disabled =function() return BUI.Vars.CurvedFrame==0 end,
},
--Reset Curved Frames
{
type ="button",
name ="CurvedReset",
func =function()ZO_Dialogs_ShowDialog("BUI_RESET_CONFIRMATION", {text=BUI.Loc("CurvedResetDesc"),func=function()BUI.Menu.Reset("Curved")end})end,
}}
MenuPanel["MenuCurvedFrames"]={name="CurvedHeader"}
MenuHandlers["MenuCurvedFrames"]={
["OnEffectivelyShown"]=BUI.Menu.FramesReposition,
["OnEffectivelyHidden"]=function() BUI.Menu.FramesRestore() BUI.inMenu=false end,
}
--]]
MenuOptions["MenuTargetFrames"]={
-- type="submenu", name="TargetHeader", controls={
--Execute Threshold
{ type ="slider",
name ="ExecuteThreshold",
min =0,
max =50,
step =5,
getFunc =function() return BUI.Vars.ExecuteThreshold end,
setFunc =function(value) BUI.Vars.ExecuteThreshold=value end,
},
--Execute Sound
{ type ="checkbox",
name ="ExecuteSound",
getFunc =function() return BUI.Vars.ExecuteSound end,
setFunc =function(value) BUI.Vars.ExecuteSound=value end,
},
--Default Target Frame
{ type ="header", name="DefaultTargetFrame"},
{ type ="checkbox",
name ="DefaultTargetFrame",
getFunc =function() return BUI.Vars.DefaultTargetFrame end,
setFunc =function(value)
BUI.Vars.DefaultTargetFrame=value
if value then SCENE_MANAGER:SetInUIMode(false) BUI.OnScreen.Notification(8,"Reloading UI") BUI.CallLater("ReloadUI",1000,ReloadUI) return end
BUI.SwitchUnitFramesEvents()
end,
warning ="ReloadUiWarn4",
},
{ type ="checkbox",
name ="DefaultTargetFrameText",
getFunc =function() return BUI.Vars.DefaultTargetFrameText end,
setFunc =function(value) BUI.Vars.DefaultTargetFrameText=value end,
disabled =function() return not BUI.Vars.DefaultTargetFrame end
},
--Additional Target Frame
{ type ="header", name="TargetFrame"},
{ type ="checkbox",
name ="TargetFrame",
getFunc =function() return BUI.Vars.TargetFrame end,
setFunc =function(value) BUI.Menu.UpdateFrames('TargetFrame', value) end,
},
--Target Frame Width
{ type ="slider",
name ="TargetWidth",
min =200,
max =500,
step =20,
getFunc =function() return BUI.Vars.TargetWidth end,
setFunc =function(value) BUI.Menu.UpdateFrames("TargetWidth", value) end,
disabled =function() return not BUI.Vars.TargetFrame end,
},
--Target Frame Height
{ type ="slider",
name ="TargetHeight",
min =16,
max =40,
step =10,
getFunc =function() return BUI.Vars.TargetHeight end,
setFunc =function(value) BUI.Menu.UpdateFrames("TargetHeight", value) end,
disabled =function() return not BUI.Vars.TargetFrame end,
},
--Center Frame Text
{ type ="checkbox",
name ="TargetFrameCenter",
getFunc =function() return BUI.Vars.TargetFrameCenter end,
setFunc =function(value) BUI.Menu.UpdateFrames('TargetFrameCenter', value) end,
disabled =function() return not BUI.Vars.PlayerFrame end,
},
--Show Percents
{ type ="checkbox",
name ="TargetFramePercents",
getFunc =function() return BUI.Vars.TargetFramePercents end,
setFunc =function(value) BUI.Menu.UpdateFrames('TargetFramePercents', value) end,
disabled =function() return not BUI.Vars.TargetFrame end,
},
--Boss Frame
{ type ="header", name="BossFrame"},
{ type ="checkbox",
name ="BossFrame",
getFunc =function() return BUI.Vars.BossFrame end,
setFunc =function(value) BUI.Vars.BossFrame=value if BUI_BossFrame==nil then BUI.Frames.Bosses_UI() end BUI_BossFrame:SetHidden(not BUI.Vars.BossFrame) end,
},
--Boss Frame Width
{ type ="slider",
name ="BossWidth",
min =180,
max =360,
step =20,
getFunc =function() return BUI.Vars.BossWidth end,
setFunc =function(value) BUI.Menu.UpdateFrames("BossWidth", value) end,
disabled =function() return not BUI.Vars.BossFrame end,
},
--Boss Frame Height
{ type ="slider",
name ="BossHeight",
min =20,
max =80,
step =2,
getFunc =function() return BUI.Vars.BossHeight end,
setFunc =function(value) BUI.Menu.UpdateFrames("BossHeight", value) end,
disabled =function() return not BUI.Vars.BossFrame end,
},
--Reset Unit Frames
{ type ="button",
name ="FramesReset",
func =function()ZO_Dialogs_ShowDialog("BUI_RESET_CONFIRMATION", {text=BUI.Loc("FramesResetDesc"),func=function()BUI.Menu.Reset("Frames")end})end,
}}
MenuPanel["MenuTargetFrames"]={name="TargetHeader"}
MenuHandlers["MenuTargetFrames"]={
["OnEffectivelyShown"]=BUI.Menu.FramesReposition,
["OnEffectivelyHidden"]=function() BUI.Menu.FramesRestore() BUI.inMenu=false end,
}
MenuOptions["MenuAttackersFrames"]={
{ type ="checkbox",
name ="Attackers",
getFunc =function() return BUI.Vars.Attackers end,
setFunc =function(value) BUI.Vars.Attackers=value BUI_Attackers:SetHidden(not BUI.Vars.Attackers) end,
},
--Attackers Frame Width
{ type ="slider",
name ="AttackersWidth",
min =180,
max =360,
step =20,
getFunc =function() return BUI.Vars.AttackersWidth end,
setFunc =function(value) BUI.Vars.AttackersWidth=value BUI.Damage.Attackers_UI() end,
disabled =function() return not BUI.Vars.Attackers end,
},
--Attackers Frame Height
{ type ="slider",
name ="AttackersHeight",
min =20,
max =80,
step =2,
getFunc =function() return BUI.Vars.AttackersHeight end,
setFunc =function(value) BUI.Vars.AttackersHeight=value BUI.Damage.Attackers_UI() end,
disabled =function() return not BUI.Vars.Attackers end,
}}
MenuPanel["MenuAttackersFrames"]={name="Attackers"}
MenuHandlers["MenuAttackersFrames"]={
["OnEffectivelyShown"]=function()
BUI.inMenu=true
if BUI.Vars.Attackers then
BUI_Attackers:SetHidden(false)
BUI_Attackers[1]:SetHidden(false)
end
BanditsUI:SetHidden(false)
end,
["OnEffectivelyHidden"]=function()
if BUI.Vars.Attackers then
BUI_Attackers:SetHidden(true)
end
BUI.inMenu=false
end,
}
local function PreviewGroupFrames()
-- BUI.Frames.Raid_UI(BUI.Vars.SmallGroupScale/100)
if BUI.Vars.RaidFrames then
for i=1,4 do
local frame=BUI_RaidFrame["group"..i]
frame:SetHidden(false)
end
BUI_RaidFrame:SetHidden(false)
end
BanditsUI:SetHidden(false)
end
MenuOptions["MenuGroupFrames"]={
-- type="submenu",name="GroupHeader",controls={
--Use Group Frame
{ type ="checkbox",
name ="RaidFrames",
getFunc =function() return BUI.Vars.RaidFrames end,
setFunc =function(value)
BUI.Vars.RaidFrames=value
if value then
ZO_UnitFramesGroups:SetHidden(true)
BUI.Frames.Raid_UI()
BUI.Frames:SetupGroup()
PreviewGroupFrames()
else
BUI.Vars.GroupSynergy=3
SCENE_MANAGER:SetInUIMode(false)
BUI.OnScreen.Notification(8,"Reloading UI")
BUI.CallLater("ReloadUI",1000,ReloadUI)
return
end
BUI.SwitchUnitFramesEvents()
end,
warning ="ReloadUiWarn5",
},
--Compact mode
{ type ="checkbox",
name ="RaidCompact",
getFunc =function() return BUI.Vars.RaidCompact end,
setFunc =function(value) BUI.Vars.RaidCompact=value if value then BUI.Vars.GroupBuffs=false BUI.Vars.StatsGroupDPS=false end BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Group Animation
{ type ="checkbox",
name ="GroupAnimation",
getFunc =function() return BUI.Vars.GroupAnimation end,
setFunc =function(value) BUI.Vars.GroupAnimation=value end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--GroupDeathSound
{ type ="dropdown",
name ="GroupDeathSound",
choices =GroupDeathSounds,
getFunc =function() return BUI.Vars.GroupDeathSound end,
setFunc =function(i,value) BUI.Vars.GroupDeathSound=value PlaySound(value) end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Show levels
{ type ="checkbox",
name ="RaidLevels",
getFunc =function() return BUI.Vars.RaidLevels end,
setFunc =function(value) BUI.Vars.RaidLevels=value BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Raid Column Size
{ type ="slider",
name ="RaidColumnSize",
min =1,
max =12,
step =1,
getFunc =function() return BUI.Vars.RaidColumnSize end,
setFunc =function(value) BUI.Vars.RaidColumnSize=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Raid Frame Width
{ type ="slider",
name ="RaidWidth",
min =120,
max =300,
step =10,
getFunc =function() return BUI.Vars.RaidWidth end,
setFunc =function(value) BUI.Vars.RaidWidth=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Raid Frame Height
{ type ="slider",
name ="RaidHeight",
min =18,
max =70,
step =2,
getFunc =function() return BUI.Vars.RaidHeight end,
setFunc =function(value) BUI.Vars.RaidHeight=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Raid Frame Font Size
{ type ="slider",
name ="RaidFontSize",
min =10,
max =20,
step =1,
getFunc =function() return BUI.Vars.RaidFontSize end,
setFunc =function(value) BUI.Vars.RaidFontSize=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Stat value
{ type ="dropdown",
name ="RaidStatValue",
choices ={"Number","Percent","Disabled"},
getFunc =function() return BUI.Vars.RaidStatValue or 1 end,
setFunc =function(i,value) BUI.Vars.RaidStatValue=i BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
-- ==Advanced settings==
{type="submenu",name="AdvancedHeader",controls={
--Group election
{ type ="checkbox",
name ="GroupElection",
getFunc =function() return BUI.Vars.GroupElection end,
setFunc =function(value) BUI.Vars.GroupElection=value BUI.StatShare.GroupElection() BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Group Buffs
{ type ="checkbox",
name ="GroupBuffs",
getFunc =function() return BUI.Vars.GroupBuffs end,
setFunc =function(value) BUI.Vars.GroupBuffs=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Group members status
{ type ="checkbox",
name ="StatusIcons",
getFunc =function() return BUI.Vars.StatusIcons end,
setFunc =function(value) BUI.Vars.StatusIcons=value end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Small group scale
{ type ="slider",
name ="SmallGroupScale",
min =100,
max =200,
step =10,
getFunc =function() return BUI.Vars.SmallGroupScale end,
setFunc =function(value) BUI.Vars.SmallGroupScale=value BUI.Frames.Raid_UI() BUI.Frames:SetupGroup() PreviewGroupFrames() end,
disabled =function() return not BUI.Vars.RaidFrames end,
},
--Large raid scale