WoWInterface SVN MultiScreenSupport

Compare Revisions

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

Rev 14 → Rev 13

trunk/MultiScreenSupport.lua
15,24 → 15,15
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
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
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)
end
end
 
trunk/MultiScreenSupport.toc
1,6 → 1,6
## Interface: 70200
## Interface: 70000
## Author: Tomate
## Version: 3.2
## Version: 3.1
## Title: MultiScreenSupport
## Notes: Eyefinity and Surround gaming assist to anchor default UI panels to the center monitor.
## X-Embeds: Ace3