Skip to content

Commit

Permalink
Updates to LAB, AB are still R.I.P
Browse files Browse the repository at this point in the history
  • Loading branch information
Merathilis committed Jan 9, 2025
1 parent cf9972a commit 4ace4a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ElvUI_Libraries/Core/LibActionButton-1.0/LibActionButton-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function lib:CreateButton(id, name, header, config)
KeyBound = LibStub("LibKeyBound-1.0", true)
end

local button = setmetatable(CreateFrame("CheckButton", name, header, "SecureActionButtonTemplate, ActionButtonTemplate"), Generic_MT)
local button = setmetatable(CreateFrame("CheckButton", name, header, "SecureActionButtonTemplate, ActionButtonTemplate, FlyoutPopupButtonTemplate"), Generic_MT)
button:RegisterForDrag("LeftButton", "RightButton")
if WoWRetail then
button:RegisterForClicks("AnyDown", "AnyUp")
Expand Down Expand Up @@ -2524,7 +2524,9 @@ if ActionButton_UpdateFlyout then
if self.FlyoutBorder then
self.FlyoutBorder:Hide()
end
self.FlyoutBorderShadow:Hide()
if self.FlyoutBorderShadow then
self.FlyoutBorderShadow:Hide()
end
if self._state_type == "action" then
-- based on ActionButton_UpdateFlyout in ActionButton.lua
local actionType = GetActionInfo(self._state_action)
Expand Down Expand Up @@ -2558,6 +2560,10 @@ if ActionButton_UpdateFlyout then
end
else
function UpdateFlyout(self, isButtonDownOverride)
if not self.FlyoutArrowContainer then return end
if self.FlyoutBorderShadow then
self.FlyoutBorderShadow:Hide()
end
if self._state_type == "action" then
-- based on ActionButton_UpdateFlyout in ActionButton.lua
local actionType = GetActionInfo(self._state_action)
Expand Down

0 comments on commit 4ace4a6

Please sign in to comment.