WoWInterface SVN PhanxWatchFrame

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 7 to Rev 8
    Reverse comparison

Rev 7 → Rev 8

PhanxWatchFrame.lua
65,7 → 65,7
-- ExpandQuestHeader(GetQuestSortIndex(questIndex))
-- QuestLog_OpenToQuest(questIndex)
 
local selectedIndex = GetQuestLogSelection();
local selectedIndex = GetQuestLogSelection()
if selectedIndex ~= 0 and questIndex == selectedIndex and QuestLogFrame:IsShown() then
return HideUIPanel(QuestLogFrame)
end
119,13 → 119,25
 
local h = WatchFrameHeader
h:SetHeight(1)
h.SetHeight = noop
h:Hide()
h.SetHeight = noop
h.Show = noop
 
local b = WatchFrameCollapseExpandButton
b:Hide()
b.Show = noop
b:ClearAllPoints()
b:SetPoint("TOPLEFT", UIParent)
b:SetSize(24, 24)
b:SetAlpha(0)
b:SetScript("OnEnter", function(b) b:SetAlpha(1) end)
b:SetScript("OnLeave", function(b) b:SetAlpha(0) end)
b:RegisterForClicks("LeftButtonUp", "RightButtonUp")
b:SetScript("OnClick", function(b,btn)
if btn == "LeftButton" then
return WatchFrame_CollapseExpandButton_OnClick(b,btn)
else
return WatchFrameHeader_OnClick(WatchFrameHeader,btn)
end
end)
 
WatchFrame_SetWidth(1)
WatchFrame_Update(WatchFrame)
PhanxWatchFrame.toc
1,6 → 1,8
## Interface: 50100
## Version: 5.1.0.wowi:revision
 
## Notes: Moves the watch frame, makes it wider, and hides the header.
 
## Author: Phanx
## X-Email: addons@phanx.net
## X-Copyright: Copyright (c) 2009-2012 Phanx. All rights reserved.