-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThirdPartySupport.lua
More file actions
42 lines (39 loc) · 1.75 KB
/
ThirdPartySupport.lua
File metadata and controls
42 lines (39 loc) · 1.75 KB
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
40
41
42
local ADDON_NAME, ADDON = ...
local function SupportBulkMailInbox()
if BulkMailInbox then
hooksecurefunc(BulkMailInbox, "AdjustSizeAndPosition", function(sender, tooltip)
if not tooltip.moved and MailFrame and MailFrame:GetTop() then
local extraWidth = MailFrame:GetAttribute("UIPanelLayout-extraWidth")
local point, relativeTo, relativePoint, xOfs, yOfs = tooltip:GetPoint(1)
tooltip:ClearAllPoints()
tooltip:SetPoint(point, relativeTo, relativePoint, xOfs + extraWidth + ADDON.CONTACT_BUTTON_MARGIN, yOfs)
end
end)
end
end
ADDON.Events:RegisterCallback('Login', SupportBulkMailInbox, 'bulkmail-inbox')
local function SupportBulkMail()
if BulkMail then
hooksecurefunc(BulkMail, "ShowSendQueueGUI", function()
local tooltip = BulkMail.sendQueueTooltip
if not tooltip.moved then
local extraWidth = MailFrame:GetAttribute("UIPanelLayout-extraWidth")
local point, relativeTo, relativePoint, xOfs, yOfs = tooltip:GetPoint(1)
tooltip:ClearAllPoints()
tooltip:SetPoint(point, relativeTo, relativePoint, extraWidth + ADDON.CONTACT_BUTTON_MARGIN, yOfs)
end
end)
end
end
ADDON.Events:RegisterCallback('Login', SupportBulkMail, 'bulkmail')
local function SupportMasque()
local Masque = LibStub("Masque", true)
if Masque then
Masque:Group(ADDON_NAME, "Edit Window")
Masque:Group(ADDON_NAME, "Mail", "mail")
if LE_EXPANSION_LEVEL_CURRENT >= LE_EXPANSION_DRAGONFLIGHT then
Masque:Group(ADDON_NAME, "Crafting Order", "craftOrder")
end
end
end
ADDON.Events:RegisterCallback('Login', SupportMasque, 'masque')