-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMisc.lua
More file actions
30 lines (26 loc) · 831 Bytes
/
Misc.lua
File metadata and controls
30 lines (26 loc) · 831 Bytes
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
local _, ns = ...
-- zhCN localization error
do
if not InspectTalentFrameSpentPoints then
InspectTalentFrameSpentPoints = {SetPoint = nop}
end
end
-- SoD rune frame
do
local function ReanchorInspect()
local frame = PaperDollFrame.inspectFrame
if not frame then return end
local x = EngravingFrame and EngravingFrame:IsVisible() and -178 or 33
local offset = MerInspectDB and MerInspectDB.ShowInspectAngularBorder and 2 or 0
frame:SetPoint("TOPLEFT", PaperDollFrame, "TOPRIGHT", offset - x, -14)
end
if ns.IsClassicSoD then
hooksecurefunc("ToggleEngravingFrame", ReanchorInspect)
end
end
-- Raise the layering strata of WotLK gear manager dialog
do
if ns.IsWrath and GearManagerDialog then
GearManagerDialog:SetFrameLevel(6)
end
end