From 8bf1ef8ea7916f2c940db213b023d301b2b6a0a4 Mon Sep 17 00:00:00 2001 From: torhal Date: Mon, 18 May 2009 06:51:28 +0000 Subject: [PATCH] Changed ARL_MiscAltBtn to set clicktip's parent to itself, and wipe click_info and regenerate the menu if clicked while the menu is shown. --- ARLFrame.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index e5916ef..0a638b1 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -4509,11 +4509,15 @@ function addon:CreateFrame( ARL_MiscAltBtn:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down") ARL_MiscAltBtn:SetDisabledTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Disabled") ARL_MiscAltBtn:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight") --- ARL_MiscAltBtn:Disable() -- disabled for now ARL_MiscAltBtn:RegisterForClicks("LeftButtonUp") ARL_MiscAltBtn:SetScript("OnClick", function(this, button) - if clicktip:IsShown() then clicktip:Hide() else GenerateClickableTT(this) end + clicktip:SetParent(this) + if clicktip:IsShown() then + clicktip:Hide() + wipe(click_info) + end + GenerateClickableTT(this) end) -- Now that everything exists, populate the global filter table -- 1.7.9.5