WoWInterface SVN MultiScreenSupport

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

trunk/MultiScreenSupport.toc
1,6 → 1,6
## Interface: 70000
## Interface: 70200
## Author: Tomate
## Version: 3.1
## Version: 3.2
## Title: MultiScreenSupport
## Notes: Eyefinity and Surround gaming assist to anchor default UI panels to the center monitor.
## X-Embeds: Ace3
trunk/MultiScreenSupport.lua
15,15 → 15,24
end
 
function MultiScreenSupport:setParentAnchor(frame)
local hookFunction = function(frame)
local point, relativeTo, relativePoint, xOfs, yOfs = frame:GetPoint()
if relativeTo == nil or relativeTo:GetName() == UIParent:GetName() then
if not InCombatLockdown() then
frame:ClearAllPoints()
frame:SetPoint(point, MultiScreenSupportParent, relativePoint, xOfs, yOfs)
end
end
end
local point, relativeTo, relativePoint, xOfs, yOfs = frame:GetPoint()
if relativeTo == nil or relativeTo:GetName() == UIParent:GetName() then
frame:HookScript("OnUpdate", function(self)
local point, relativeTo, relativePoint, xOfs, yOfs = self:GetPoint()
if relativeTo == nil or relativeTo:GetName() == UIParent:GetName() then
self:ClearAllPoints()
self:SetPoint(point, MultiScreenSupportParent, relativePoint, xOfs, yOfs)
end
end)
if frame:GetName() == "OrderHallTalentFrame" then--NEEDED since 7.2.5 probably because of chromie
frame:HookScript("OnShow", function(self)
frame:HookScript("OnUpdate", hookFunction)
end)
else
frame:HookScript("OnUpdate", hookFunction)
end
end
end