Mercurial > wow > kbf
changeset 23:b284fd451972
move an incorrectly located EnableMouse
author | Chris Mellon <arkanes@gmai.com> |
---|---|
date | Tue, 19 Oct 2010 14:08:10 -0500 |
parents | 940628cd5bfc |
children | 1954ee573a37 |
files | KBF.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/KBF.lua Tue Oct 19 14:05:46 2010 -0500 +++ b/KBF.lua Tue Oct 19 14:08:10 2010 -0500 @@ -142,6 +142,7 @@ frame.index = idx frame:SetScript("OnEnter", function() kbf:OnEnter(frame) end) frame:SetScript("OnLeave", function() GameTooltip:Hide() end) + frame:EnableMouse(true) buffCount = buffCount + 1 else -- not dirty, so no frame means we're done @@ -286,7 +287,7 @@ if not frame then frame = CreateFrame("Button", nil, UIParent) -- the "top level" frame that represents the bar as a whole frame:SetHeight(16) - frame:SetWidth(200 + 16) + frame:SetWidth(200 + 16) end local bar = frame bar.icon = CreateFrame("Button", nil, bar) -- the icon @@ -338,8 +339,6 @@ bar.text:SetJustifyH("LEFT") bar.text:SetText("text") bar.text:SetTextColor(textcolor[1], textcolor[2], textcolor[3], textcolor[4]) - - bar:EnableMouse(true) return bar end