|
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) |