Skip to content

Commit 924a3f4

Browse files
committed
Merge branch 'main' into ptr
2 parents 8f2936d + 49a7075 commit 924a3f4

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

ElvUI/Core/Modules/Blizzard/WidgetsUI.lua

+11-7
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ function BL:BelowMinimap_UpdateBar(_, container)
9595
end
9696

9797
function BL:UIWidgetTemplateCaptureBar(widgetInfo, container)
98-
if container == _G.UIWidgetBelowMinimapContainerFrame then return end -- handled by ProcessWidget
98+
if container == _G.UIWidgetBelowMinimapContainerFrame and container.ProcessWidget then
99+
return -- handled by ProcessWidget hook instead
100+
end
99101

100102
BL.BelowMinimap_UpdateBar(self, widgetInfo, container)
101103
end
@@ -142,8 +144,9 @@ function BL:UpdateDurabilityScale()
142144
end
143145

144146
function BL:HandleWidgets()
147+
local BelowMinimapContainer = _G.UIWidgetBelowMinimapContainerFrame
145148
BL:BuildWidgetHolder('TopCenterContainerHolder', 'TopCenterContainerMover', 'CENTER', L["TopCenterWidget"], _G.UIWidgetTopCenterContainerFrame, 'TOP', E.UIParent, 'TOP', 0, -30, 125, 20, 'ALL,WIDGETS')
146-
BL:BuildWidgetHolder('BelowMinimapContainerHolder', 'BelowMinimapContainerMover', 'CENTER', L["BelowMinimapWidget"], _G.UIWidgetBelowMinimapContainerFrame, 'TOPRIGHT', _G.Minimap, 'BOTTOMRIGHT', 0, -16, 150, 30, 'ALL,WIDGETS')
149+
BL:BuildWidgetHolder('BelowMinimapContainerHolder', 'BelowMinimapContainerMover', 'CENTER', L["BelowMinimapWidget"], BelowMinimapContainer, 'TOPRIGHT', _G.Minimap, 'BOTTOMRIGHT', 0, -16, 150, 30, 'ALL,WIDGETS')
147150
BL:BuildWidgetHolder(nil, 'GMMover', 'TOP', L["GM Ticket Frame"], _G.TicketStatusFrame, 'TOPLEFT', E.UIParent, 'TOPLEFT', 250, -5, nil, nil, 'ALL,GENERAL')
148151

149152
if E.Retail then
@@ -155,9 +158,7 @@ function BL:HandleWidgets()
155158
for _, widget in pairs(_G.UIWidgetPowerBarContainerFrame.widgetFrames) do
156159
BL.UIWidgetTemplateStatusBar(widget)
157160
end
158-
end
159-
160-
if not E.Retail then
161+
else
161162
local duraWidth, duraHeight = _G.DurabilityFrame:GetSize()
162163
_G.DurabilityFrame:SetFrameStrata('HIGH')
163164

@@ -170,6 +171,9 @@ function BL:HandleWidgets()
170171
hooksecurefunc(_G.UIWidgetTemplateCaptureBarMixin, 'Setup', BL.UIWidgetTemplateCaptureBar)
171172

172173
-- Below Minimap Widgets
173-
hooksecurefunc(_G.UIWidgetBelowMinimapContainerFrame, 'ProcessWidget', BL.BelowMinimap_ProcessWidget)
174-
BL.BelowMinimap_ProcessWidget(_G.UIWidgetBelowMinimapContainerFrame) -- finds any pre-existing capture bars
174+
if BelowMinimapContainer.ProcessWidget then
175+
hooksecurefunc(BelowMinimapContainer, 'ProcessWidget', BL.BelowMinimap_ProcessWidget)
176+
end
177+
178+
BL.BelowMinimap_ProcessWidget(BelowMinimapContainer) -- finds any pre-existing capture bars
175179
end

ElvUI_Options/Core/ActionBars.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ ActionBar.args.masqueGroup = ACH:Group(L["Masque"], nil, -1, nil, nil, nil, func
305305
ActionBar.args.masqueGroup.args.masque = ACH:MultiSelect(L["Masque Support"], L["Allow Masque to handle the skinning of this element."], 10, { actionbars = L["ActionBars"], petBar = L["Pet Bar"], stanceBar = L["Stance Bar"] }, nil, nil, function(_, key) return E.private.actionbar.masque[key] end, function(_, key, value) E.private.actionbar.masque[key] = value E.ShowPopup = true end)
306306

307307
ActionBar.args.extraButtons = ACH:Group(L["Extra Buttons"], nil, 18, nil, nil, nil, function() return not E.ActionBars.Initialized end)
308-
ActionBar.args.extraButtons.args.extraActionButton = ACH:Group(L["Boss Button"], nil, 1, nil, function(info) return E.db.actionbar.extraActionButton[info[#info]] end, function(info, value) local key = info[#info] E.db.actionbar.extraActionButton[key] = value if key == 'inheritGlobalFade' then AB:ExtraButtons_GlobalFade() elseif key == 'scale' then AB:ExtraButtons_UpdateScale() else AB:ExtraButtons_UpdateAlpha() end end, nil, not E.Retail)
308+
ActionBar.args.extraButtons.args.extraActionButton = ACH:Group(L["Boss Button"], nil, 1, nil, function(info) return E.db.actionbar.extraActionButton[info[#info]] end, function(info, value) local key = info[#info] E.db.actionbar.extraActionButton[key] = value if key == 'inheritGlobalFade' then AB:ExtraButtons_GlobalFade() elseif key == 'scale' then AB:ExtraButtons_UpdateScale() else AB:ExtraButtons_UpdateAlpha() end end, nil, E.Classic)
309309
ActionBar.args.extraButtons.args.extraActionButton.inline = true
310310
ActionBar.args.extraButtons.args.extraActionButton.args = CopyTable(SharedButtonOptions)
311311

0 commit comments

Comments
 (0)