forked from raid/VenturePlan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoader.lua
39 lines (37 loc) · 1.01 KB
/
Loader.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
local _, T = ...
local EV = T.Evie
local mapOpened, addonLoaded
function EV:ADVENTURE_MAP_OPEN(followerID)
if mapOpened and addonLoaded then
return "remove"
end
mapOpened = followerID == 123
if mapOpened and IsAddOnLoaded("Blizzard_GarrisonUI") then
addonLoaded = true
EV("I_ADVENTURES_UI_LOADED")
end
end
function EV:ADDON_LOADED(aname)
if aname == "Blizzard_GarrisonUI" and not addonLoaded then
addonLoaded = true
if mapOpened then
EV("I_ADVENTURES_UI_LOADED")
end
return "remove"
end
end
function EV:ADDON_LOADED()
if CovenantSanctumFrame and CovenantSanctumFrame.UpgradesTab then
local d = CovenantSanctumFrame.UpgradesTab.DepositButton
if d and COVENANT_SANCTUM_TUTORIAL4 then
d:HookScript("PreClick", function(self)
local na = HelpTip and HelpTip.framePool and HelpTip.framePool.numActiveObjects
if type(na) == "number" and na > 0 then
HelpTip:Acknowledge(self:GetParent(), COVENANT_SANCTUM_TUTORIAL4)
HelpTip.framePool:ReleaseAll()
end
end)
end
return "remove"
end
end