Skip to content

Commit

Permalink
#47 Fixed ElvUI integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellorio committed Oct 4, 2020
1 parent 58195a8 commit 9c4523b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/mega-macro-action-bar-engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,15 @@ local function UpdateActionBar(button)
end
end

-- required overrides
-- IsEquippedAction
--

MegaMacroActionBarEngine = {}

function MegaMacroActionBarEngine.Initialize()
if _G["BT4Button1"] or _G["ElvUI_Bar1Button1"] then
if _G["BT4Button1"] then
LibActionButton = LibStub("LibActionButton-1.0")
elseif _G["ElvUI_Bar1Button1"] then
LibActionButton = LibStub("LibActionButton-1.0-ElvUI")
end

-- local Original_ActionButton_SetTooltip = ActionButton_SetTooltip
-- ActionButton_SetTooltip = function(self) ActionBarSetTooltipWrapper(Original_ActionButton_SetTooltip, self) end

MegaMacroIconEvaluator.OnIconUpdated(function()
TriggerUpdate = true
end)
Expand Down

0 comments on commit 9c4523b

Please sign in to comment.