WoWInterface SVN PhanxWatchFrame

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 11 to Rev 10
    Reverse comparison

Rev 11 → Rev 10

PhanxWatchFrame.lua
16,6 → 16,7
hooksecurefunc("WatchFrame_SetWidth", function(width)
WATCHFRAME_EXPANDEDWIDTH = 406
WATCHFRAME_MAXLINEWIDTH = 394
 
if WatchFrame:IsShown() and not WatchFrame.collapsed then
WatchFrame:SetWidth(WATCHFRAME_EXPANDEDWIDTH)
WatchFrame_Update()
30,14 → 31,6
end
end)
 
local wasMouseOver
WatchFrame:HookScript("OnUpdate", function(self)
local isMouseOver = self:IsMouseOver()
if isMouseOver == wasMouseOver then return end
self:SetAlpha(isMouseOver and 1 or 0.3)
wasMouseOver = isMouseOver
end)
 
hooksecurefunc("WatchFrameLinkButtonTemplate_Highlight", function(self, onEnter)
if onEnter then
for i = self.startLine, self.lastLine do
140,9 → 133,9
b:RegisterForClicks("LeftButtonUp", "RightButtonUp")
b:SetScript("OnClick", function(b,btn)
if btn == "LeftButton" then
return WatchFrame_CollapseExpandButton_OnClick(b, btn)
return WatchFrame_CollapseExpandButton_OnClick(b,btn)
else
return WatchFrameHeader_OnClick(WatchFrameHeader, btn)
return WatchFrameHeader_OnClick(WatchFrameHeader,btn)
end
end)