Skip to content

Commit b4d7012

Browse files
committed
smooth bar toggle for castbar, classbar, health, power, aurabars, and auras
1 parent 545d6f4 commit b4d7012

File tree

14 files changed

+38
-18
lines changed

14 files changed

+38
-18
lines changed

ElvUI/Core/Defaults/Profile.lua

+11-4
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,10 @@ local NP_Auras = {
555555

556556
local NP_Health = {
557557
enable = true,
558-
healPrediction = true,
559558
height = 10,
559+
healPrediction = true,
560560
useClassColor = true,
561+
smoothbars = false,
561562
text = {
562563
enable = true,
563564
format = '[health:percent]',
@@ -573,6 +574,7 @@ local NP_Health = {
573574

574575
local NP_Power = {
575576
enable = false,
577+
smoothbars = false,
576578
useClassColor = false,
577579
hideWhenEmpty = false,
578580
costPrediction = true,
@@ -662,6 +664,7 @@ local NP_Castbar = {
662664
displayTarget = false,
663665
hideSpellName = false,
664666
hideTime = false,
667+
smoothbars = false,
665668
spellRename = true,
666669
sourceInterrupt = true,
667670
sourceInterruptClassColor = true,
@@ -744,7 +747,6 @@ P.nameplates = {
744747
overlapV = 1.1,
745748
showEnemyCombat = 'DISABLED',
746749
showFriendlyCombat = 'DISABLED',
747-
smoothbars = false,
748750
statusbar = 'ElvUI Norm',
749751
thinBorders = true,
750752
clickThrough = {
@@ -1097,6 +1099,7 @@ local TopAuras = {
10971099
sortMethod = 'TIME',
10981100
verticalSpacing = 16,
10991101
wrapAfter = 12,
1102+
smoothbars = false,
11001103
}
11011104

11021105
--Auras
@@ -1367,10 +1370,10 @@ local UF_DebuffHighlight = {
13671370
}
13681371

13691372
local UF_AuraBars = {
1373+
enable = true,
13701374
anchorPoint = 'ABOVE',
13711375
attachTo = 'DEBUFFS',
13721376
detachedWidth = 270,
1373-
enable = true,
13741377
enemyAuraType = 'HARMFUL',
13751378
friendlyAuraType = 'HELPFUL',
13761379
height = 20,
@@ -1385,6 +1388,7 @@ local UF_AuraBars = {
13851388
clickThrough = false,
13861389
reverseFill = false,
13871390
abbrevName = false,
1391+
smoothbars = false,
13881392
}
13891393

13901394
local UF_AuraWatch = {
@@ -1437,6 +1441,7 @@ local UF_Castbar = {
14371441
insideInfoPanel = true,
14381442
overlayOnFrame = 'None',
14391443
displayTarget = false,
1444+
smoothbars = false,
14401445
reverse = false,
14411446
spark = true,
14421447
textColor = {r = 0.84, g = 0.75, b = 0.65, a = 1},
@@ -1483,6 +1488,7 @@ local UF_Health = {
14831488
orientation = 'HORIZONTAL',
14841489
position = 'RIGHT',
14851490
reverseFill = false,
1491+
smoothbars = false,
14861492
text_format = '',
14871493
xOffset = -2,
14881494
yOffset = 0,
@@ -1589,6 +1595,7 @@ local UF_Power = {
15891595
width = 'fill',
15901596
xOffset = 2,
15911597
yOffset = 0,
1598+
smoothbars = false,
15921599
displayAltPower = false,
15931600
strataAndLevel = CopyTable(UF_StrataAndLevel),
15941601
useAtlas = false,
@@ -1716,6 +1723,7 @@ local UF_ClassBar = {
17161723
fill = 'fill',
17171724
height = 10,
17181725
autoHide = false,
1726+
smoothbars = false,
17191727
sortDirection = 'asc',
17201728
altPowerColor = { r = 0.2, g = 0.4, b = 0.8 },
17211729
altPowerTextFormat = E.Retail and '[altpower:current]' or '',
@@ -1736,7 +1744,6 @@ UF_PrivateAuras.duration.enable = false
17361744

17371745
--UnitFrame
17381746
P.unitframe = {
1739-
smoothbars = false,
17401747
statusbar = 'ElvUI Norm',
17411748
font = 'Homespun',
17421749
fontSize = 10,

ElvUI/Core/Modules/Auras/Auras.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ function A:CreateIcon(button)
182182
A:Update_CooldownOptions(button)
183183
A:UpdateIcon(button)
184184

185-
E:SetSmoothing(button.statusBar)
186-
187185
if button.filter == 'HELPFUL' and MasqueGroupBuffs and E.private.auras.masque.buffs then
188186
MasqueGroupBuffs:AddButton(button, A:MasqueData(button.texture, button.highlight))
189187
if button.__MSQ_BaseFrame then button.__MSQ_BaseFrame:SetFrameLevel(2) end --Lower the framelevel to fix issue with buttons created during combat
@@ -202,6 +200,8 @@ function A:UpdateIcon(button, update)
202200

203201
if update then
204202
button:Size(db.size)
203+
204+
E:SetSmoothing(button.statusBar, db.smoothbars)
205205
end
206206

207207
button.count:ClearAllPoints()

ElvUI/Core/Modules/Nameplates/Elements/CastBar.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ function NP:Update_Castbar(nameplate)
220220
castbar.timeToHold = db.timeToHold
221221
castbar.castTimeFormat = db.castTimeFormat
222222
castbar.channelTimeFormat = db.channelTimeFormat
223+
castbar.pipColor = NP.db.colors.empoweredCast
223224

224225
castbar:Size(db.width, db.height)
225226
castbar:Point('CENTER', nameplate, 'CENTER', db.xOffset, db.yOffset)
226227

227-
castbar.pipColor = NP.db.colors.empoweredCast
228+
E:SetSmoothing(castbar, db.smoothbars)
229+
228230
for stage, pip in next, castbar.Pips do
229231
UF:CastBar_UpdatePip(castbar, pip, stage)
230232
end

ElvUI/Core/Modules/Nameplates/Elements/Health.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function NP:Update_Health(nameplate, skipUpdate)
117117
nameplate.Health:Point('LEFT')
118118
nameplate.Health:Point('RIGHT')
119119

120-
E:SetSmoothing(nameplate.Health, NP.db.smoothbars)
120+
E:SetSmoothing(nameplate.Health, db.health.smoothbars)
121121
elseif nameplate:IsElementEnabled('Health') then
122122
nameplate:DisableElement('Health')
123123
end

ElvUI/Core/Modules/Nameplates/Elements/Power.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function NP:Update_Power(nameplate)
128128
nameplate.Power:SetStatusBarTexture(LSM:Fetch('statusbar', NP.db.statusbar))
129129
nameplate.Power:Point('CENTER', nameplate, 'CENTER', db.power.xOffset, db.power.yOffset)
130130

131-
E:SetSmoothing(nameplate.Power, NP.db.smoothbars)
131+
E:SetSmoothing(nameplate.Power, db.power.smoothbars)
132132
elseif nameplate:IsElementEnabled('Power') then
133133
nameplate:DisableElement('Power')
134134
end

ElvUI/Core/Modules/UnitFrames/Elements/AltPower.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function UF:Configure_AltPowerBar(frame)
4343
local color = db.altPowerColor
4444
frame.AlternativePower:SetStatusBarColor(color.r, color.g, color.b)
4545

46-
E:SetSmoothing(frame.AlternativePower, UF.db.smoothbars)
46+
E:SetSmoothing(frame.AlternativePower, db.smoothbars)
4747
elseif frame:IsElementEnabled('AlternativePower') then
4848
frame:DisableElement('AlternativePower')
4949
frame.AlternativePower:Hide()

ElvUI/Core/Modules/UnitFrames/Elements/AuraBars.lua

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ function UF:AuraBars_UpdateBar(bar)
5353
bar.auraInfo = {}
5454
end
5555

56+
E:SetSmoothing(bar, bars.db.smoothbars)
57+
5658
bar:SetReverseFill(not not bars.reverseFill)
5759
bar.spark:ClearAllPoints()
5860
bar.spark:Point(bars.reverseFill and 'LEFT' or 'RIGHT', bar:GetStatusBarTexture())

ElvUI/Core/Modules/UnitFrames/Elements/CastBar.lua

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ function UF:Configure_Castbar(frame)
185185
local SPACING1 = UF.BORDER + UF.SPACING
186186
local SPACING2 = SPACING1 * 2
187187

188+
E:SetSmoothing(castbar, db.smoothbars)
189+
188190
castbar.timeToHold = db.timeToHold
189191
castbar:SetReverseFill(db.reverse)
190192
castbar:ClearAllPoints()

ElvUI/Core/Modules/UnitFrames/Elements/ClassBars.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function UF:Configure_ClassBar(frame)
197197
bars.LunarBar:SetStatusBarColor(lr, lg, lb)
198198
bars.LunarBar:Size(CLASSBAR_WIDTH - SPACING, frame.CLASSBAR_HEIGHT - SPACING)
199199
bars.LunarBar:SetOrientation(isVertical and 'VERTICAL' or 'HORIZONTAL')
200-
E:SetSmoothing(bars.LunarBar, UF.db.smoothbars)
200+
E:SetSmoothing(bars.LunarBar, db.classbar and db.classbar.smoothbars)
201201

202202
local sr, sg, sb = unpack(ElvUF.colors.ClassBars.DRUID[2])
203203
bars.SolarBar:SetMinMaxValues(-1, 1)
@@ -206,7 +206,7 @@ function UF:Configure_ClassBar(frame)
206206
bars.SolarBar:SetOrientation(isVertical and 'VERTICAL' or 'HORIZONTAL')
207207
bars.SolarBar:ClearAllPoints()
208208
bars.SolarBar:Point(isVertical and 'BOTTOM' or 'LEFT', lunarTex, isVertical and 'TOP' or 'RIGHT')
209-
E:SetSmoothing(bars.SolarBar, UF.db.smoothbars)
209+
E:SetSmoothing(bars.SolarBar, db.classbar and db.classbar.smoothbars)
210210

211211
bars.Arrow:ClearAllPoints()
212212
bars.Arrow:Point('CENTER', lunarTex, isVertical and 'TOP' or 'RIGHT', 0, isVertical and -4 or 0)

ElvUI/Core/Modules/UnitFrames/Elements/Health.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function UF:Configure_HealthBar(frame, powerUpdate)
5858

5959
health:SetColorTapping(true)
6060
health:SetColorDisconnected(true)
61-
E:SetSmoothing(health, UF.db.smoothbars)
61+
E:SetSmoothing(health, db.health and db.health.smoothbars)
6262

6363
-- Text
6464
if db.health and health.value then

ElvUI/Core/Modules/UnitFrames/Elements/Power.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function UF:Configure_Power(frame, healthUpdate)
9090
frame:EnableElement('Power')
9191
end
9292

93-
E:SetSmoothing(power, UF.db.smoothbars)
93+
E:SetSmoothing(power, db.power.smoothbars)
9494

9595
--Text
9696
local attachPoint = UF:GetObjectAnchorPoint(frame, db.power.attachTextTo or 'Health', true)

ElvUI_Options/Core/Auras.lua

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local SharedOptions = {
2121
verticalSpacing = ACH:Range(L["Vertical Spacing"], nil, 9, { min = -5, max = 50, step = 1 }),
2222
fadeThreshold = ACH:Range(L["Fade Threshold"], L["Threshold before the icon will fade out and back in. Set to -1 to disable."], 10, { min = -1, max = 30, step = 1 }),
2323
showDuration = ACH:Toggle(L["Duration Enable"], nil, 11),
24+
smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 12),
2425

2526
statusBar = ACH:Group(L["Statusbar"], nil, -3),
2627
timeGroup = ACH:Group(L["Time Text"], nil, -2),

ElvUI_Options/Core/Nameplates.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ local function GetUnitSettings(unit, name)
5151
group.args.healthGroup.args.height = ACH:Range(L["Height"], nil, 3, { min = minHeight, max = MaxHeight(unit), step = 1 })
5252
group.args.healthGroup.args.width = ACH:Execute(L["Width"], nil, 4, function() ACD:SelectGroup('ElvUI', 'nameplates', 'generalGroup', 'clickableRange') end)
5353
group.args.healthGroup.args.healPrediction = ACH:Toggle(L["Heal Prediction"], nil, 5)
54+
group.args.healthGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 6)
5455

5556
group.args.healthGroup.args.textGroup = ACH:Group(L["Text"], nil, 200, nil, function(info) return E.db.nameplates.units[unit].health.text[info[#info]] end, function(info, value) E.db.nameplates.units[unit].health.text[info[#info]] = value NP:ConfigureAll() end)
5657
group.args.healthGroup.args.textGroup.inline = true
@@ -77,6 +78,7 @@ local function GetUnitSettings(unit, name)
7778
group.args.powerGroup.args.displayAltPower = ACH:Toggle(L["Swap to Alt Power"], nil, 7)
7879
group.args.powerGroup.args.useAtlas = ACH:Toggle(L["Use Atlas Textures"], nil, 8)
7980
group.args.powerGroup.args.useClassColor = ACH:Toggle(L["Use Class Color"], nil, 9)
81+
group.args.powerGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 10)
8082

8183
group.args.powerGroup.args.textGroup = ACH:Group(L["Text"], nil, 200, nil, function(info) return E.db.nameplates.units[unit].power.text[info[#info]] end, function(info, value) E.db.nameplates.units[unit].power.text[info[#info]] = value NP:ConfigureAll() end)
8284
group.args.powerGroup.args.textGroup.inline = true
@@ -97,6 +99,7 @@ local function GetUnitSettings(unit, name)
9799
group.args.castGroup.args.enable = ACH:Toggle(L["Enable"], nil, 1)
98100
group.args.castGroup.args.sourceInterrupt = ACH:Toggle(L["Display Interrupt Source"], L["Display the unit name who interrupted a spell on the castbar. You should increase the Time to Hold to show properly."], 2)
99101
group.args.castGroup.args.sourceInterruptClassColor = ACH:Toggle(L["Class Color Source"], nil, 3, nil, nil, nil, nil, nil, function() return not E.db.nameplates.units[unit].castbar.sourceInterrupt end)
102+
group.args.castGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 5)
100103

101104
-- order 4 is player Display Target
102105
group.args.castGroup.args.generalGroup = ACH:Group(L["General"], nil, 10)
@@ -416,7 +419,6 @@ NamePlates.generalGroup = ACH:Group(L["General"], nil, 5, nil, nil, function(inf
416419
NamePlates.generalGroup.args.motionType = ACH:Select(L["UNIT_NAMEPLATES_TYPES"], L["Set to either stack nameplates vertically or allow them to overlap."], 1, { STACKED = L["UNIT_NAMEPLATES_TYPE_2"], OVERLAP = L["UNIT_NAMEPLATES_TYPE_1"] })
417420
NamePlates.generalGroup.args.showEnemyCombat = ACH:Select(L["Enemy Combat Toggle"], L["Control enemy nameplates toggling on or off when in combat."], 2, { DISABLED = L["Disable"], TOGGLE_ON = L["Toggle On While In Combat"], TOGGLE_OFF = L["Toggle Off While In Combat"] }, nil, nil, nil, function(info, value) E.db.nameplates[info[#info]] = value NP:PLAYER_REGEN_ENABLED() end)
418421
NamePlates.generalGroup.args.showFriendlyCombat = ACH:Select(L["Friendly Combat Toggle"], L["Control friendly nameplates toggling on or off when in combat."], 3, { DISABLED = L["Disable"], TOGGLE_ON = L["Toggle On While In Combat"], TOGGLE_OFF = L["Toggle Off While In Combat"] }, nil, nil, nil, function(info, value) E.db.nameplates[info[#info]] = value NP:PLAYER_REGEN_ENABLED() end)
419-
NamePlates.generalGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 4, nil, nil, 110)
420422
NamePlates.generalGroup.args.clampToScreen = ACH:Toggle(L["Clamp Nameplates"], L["Clamp nameplates to the top of the screen when outside of view."], 5, nil, nil, 140)
421423
NamePlates.generalGroup.args.spacer1 = ACH:Spacer(6, 'full')
422424
NamePlates.generalGroup.args.overlapV = ACH:Range(L["Overlap Vertical"], L["Percentage amount for vertical overlap of Nameplates."], 10, { min = 0, max = 3, step = .1 })

ElvUI_Options/Core/UnitFrames.lua

+7-3
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ local function GetOptionsTable_AuraBars(updateFunc, groupName)
151151
config.args.generalGroup.args.enemyAuraType = ACH:Select(L["Enemy Aura Type"], L["Set the type of auras to show when a unit is a foe."], 14, { HARMFUL = L["Debuffs"], HELPFUL = L["Buffs"] }, nil, nil, nil, nil, nil, groupName == 'player')
152152
config.args.generalGroup.args.yOffset = ACH:Range(L["Y-Offset"], nil, 15, { min = 0, max = 100, step = 1 }, nil, nil, nil, nil, function() return E.db.unitframe.units[groupName].aurabar.attachTo == 'DETACHED' end)
153153
config.args.generalGroup.args.spacing = ACH:Range(L["Spacing"], nil, 16, spacingNormal)
154+
config.args.generalGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 17)
154155

155156
config.args.filtersGroup = ACH:Group(L["Filters"], nil, 30)
156157
config.args.filtersGroup.args.minDuration = ACH:Range(L["Minimum Duration"], L["Don't display auras that are shorter than this duration (in seconds). Set to zero to disable."], 1, { min = 0, max = 10800, step = 1 })
@@ -375,6 +376,7 @@ local function GetOptionsTable_Castbar(updateFunc, groupName, numUnits)
375376
config.args.reverse = ACH:Toggle(L["Reverse"], nil, 14)
376377
config.args.spark = ACH:Toggle(L["Spark"], L["Display a spark texture at the end of the castbar statusbar to help show the differance between castbar and backdrop."], 15)
377378
config.args.spellRename = ACH:Toggle(E.NewSign..L["BigWigs Spell Rename"], L["Allows BigWigs to rename specific encounter spells on your castbar to something better to understand.\nExample: 'Impaling Eruption' becomes 'Frontal' and 'Twilight Massacre' becomes 'Dash'."], 16)
379+
config.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 17)
378380

379381
config.args.generalGroup = ACH:Group(L["General"], nil, 10)
380382
config.args.generalGroup.args.width = ACH:Range(L["Width"], nil, 8, { min = 50, max = ceil(E.screenWidth), step = 1 })
@@ -667,6 +669,7 @@ end
667669
local function GetOptionsTable_Health(isGroupFrame, updateFunc, groupName, numUnits)
668670
local config = ACH:Group(L["Health"], nil, nil, nil, function(info) return E.db.unitframe.units[groupName].health[info[#info]] end, function(info, value) E.db.unitframe.units[groupName].health[info[#info]] = value updateFunc(UF, groupName, numUnits) end)
669671
config.args.reverseFill = ACH:Toggle(L["Reverse Fill"], nil, 1)
672+
config.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 2)
670673
config.args.attachTextTo = ACH:Select(L["Attach Text To"], L["The object you want to attach to."], 4, attachToValues)
671674
config.args.colorOverride = ACH:Select(L["Class Color Override"], L["Override the default class color setting."], 5, colorOverrideValues, nil, nil, function(info) return E.db.unitframe.units[groupName][info[#info]] end, function(info, value) E.db.unitframe.units[groupName][info[#info]] = value updateFunc(UF, groupName, numUnits) end)
672675
config.args.configureButton = ACH:Execute(L["Coloring"], L["This opens the UnitFrames Color settings. These settings affect all unitframes."], 6, function() ACD:SelectGroup('ElvUI', 'unitframe', 'allColorsGroup') end)
@@ -759,6 +762,7 @@ local function GetOptionsTable_Power(hasDetatchOption, updateFunc, groupName, nu
759762
config.args.generalGroup.args.offset = ACH:Range(L["Offset"], L["Offset of the powerbar to the healthbar, set to 0 to disable."], 8, { min = 0, max = 20, step = 1 }, nil, nil, nil, nil, function() return E.db.unitframe.units[groupName].power.width ~= 'offset' end)
760763
config.args.generalGroup.args.powerPrediction = ACH:Toggle(L["Power Prediction"], nil, 9)
761764
config.args.generalGroup.args.reverseFill = ACH:Toggle(L["Reverse Fill"], nil, 10)
765+
config.args.generalGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 11)
762766

763767
config.args.configureButton = ACH:Execute(L["Coloring"], L["This opens the UnitFrames Color settings. These settings affect all unitframes."], 20, function() ACD:SelectGroup('ElvUI', 'unitframe', 'allColorsGroup') end)
764768

@@ -933,14 +937,15 @@ local function GetOptionsTable_ClassBar(updateFunc, groupName, numUnits)
933937

934938
config.args.generalGroup = ACH:Group(L["General"], nil, 10)
935939
config.args.generalGroup.args.height = ACH:Range(L["Height"], nil, 1, { min = 2, max = 30, step = 1 })
936-
config.args.generalGroup.args.fill = ACH:Select(L["Style"], nil, 3, { fill = L["Filled"], spaced = L["Spaced"] })
940+
config.args.generalGroup.args.fill = ACH:Select(L["Style"], nil, 2, { fill = L["Filled"], spaced = L["Spaced"] })
937941

938942
if groupName == 'party' or strmatch(groupName, '^raid(%d)') then
939943
config.args.generalGroup.args.altPowerColor = ACH:Color(L["COLOR"], nil, 3, nil, nil, function(info) local t, d = E.db.unitframe.units[groupName].classbar[info[#info]], P.unitframe.units[groupName].classbar[info[#info]] return t.r, t.g, t.b, t.a, d.r, d.g, d.b end, function(info, r, g, b) local t = E.db.unitframe.units[groupName].classbar[info[#info]] t.r, t.g, t.b = r, g, b UF:Update_AllFrames() end)
940944
config.args.generalGroup.args.altPowerTextFormat = ACH:Input(L["Text Format"], L["Controls the text displayed. Tags are available in the Available Tags section of the config."], 6, nil, 'full')
941945
elseif groupName == 'player' then
942946
config.args.generalGroup.args.height.max = function() return E.db.unitframe.units.player.classbar.detachFromFrame and 300 or 30 end
943947
config.args.generalGroup.args.autoHide = ACH:Toggle(L["Auto-Hide"], nil, 5)
948+
config.args.generalGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 6)
944949
config.args.generalGroup.args.sortDirection = ACH:Select(L["Sort Direction"], L["Defines the sort order of the selected sort method."], 7, { asc = L["Ascending"], desc = L["Descending"], NONE = L["None"] }, nil, nil, nil, nil, nil, function() return (E.myclass ~= 'DEATHKNIGHT') end)
945950

946951
config.args.generalGroup.args.altManaGroup = ACH:Group(L["Display Mana"], nil, 20, nil, function(info) return E.db.unitframe.altManaPowers[E.myclass][info[#info]] end, function(info, value) E.db.unitframe.altManaPowers[E.myclass][info[#info]] = value updateFunc(UF, groupName, numUnits) end, nil, function() if E.Retail then return not E.db.unitframe.altManaPowers[E.myclass] else return E.myclass ~= 'DRUID' end end)
@@ -1110,8 +1115,7 @@ UnitFrame.borderOptions = ACH:Execute(L["Border Options"], nil, 4, function() AC
11101115
UnitFrame.generalOptionsGroup = ACH:Group(L["General"], nil, 5, 'tree')
11111116
UnitFrame.generalOptionsGroup.args.targetOnMouseDown = ACH:Toggle(L["Target On Mouse-Down"], L["Target units on mouse down rather than mouse up.\n|cffff3333Note:|r If Clique is enabled, this option only effects ElvUI frames if they are not blacklisted in Clique."], 2)
11121117
UnitFrame.generalOptionsGroup.args.targetSound = ACH:Toggle(L["Targeting Sound"], L["Enable a sound if you select a unit."], 3)
1113-
UnitFrame.generalOptionsGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 4, nil, nil, nil, nil, function(info, value) E.db.unitframe[info[#info]] = value UF:Update_AllFrames() end)
1114-
UnitFrame.generalOptionsGroup.args.maxAllowedGroups = ACH:Toggle(L["Max Allowed Groups"], L["Groups will be maxed as Mythic to 4, Other Raids to 6, and PVP / World to 8."], 5, nil, nil, nil, nil, function(info, value) E.db.unitframe[info[#info]] = value UF:ZONE_CHANGED_NEW_AREA() end)
1118+
UnitFrame.generalOptionsGroup.args.maxAllowedGroups = ACH:Toggle(L["Max Allowed Groups"], L["Groups will be maxed as Mythic to 4, Other Raids to 6, and PVP / World to 8."], 4, nil, nil, nil, nil, function(info, value) E.db.unitframe[info[#info]] = value UF:ZONE_CHANGED_NEW_AREA() end)
11151119

11161120
UnitFrame.generalOptionsGroup.args.fontGroup = ACH:Group(L["Fonts"], nil, 10, nil, nil, function(info, value) E.db.unitframe[info[#info]] = value UF:Update_FontStrings() end)
11171121
UnitFrame.generalOptionsGroup.args.fontGroup.inline = true

0 commit comments

Comments
 (0)