WoWInterface SVN PhanxWatchFrame

Compare Revisions

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

Rev 10 → Rev 11

PhanxWatchFrame.lua
16,7 → 16,6
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()
31,6 → 30,14
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
133,9 → 140,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)