From 570aabdc55dd47e2c01ba1ebb68c212d277a234a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 30 Dec 2006 18:20:31 +0000 Subject: [PATCH] * Fix for custom macros, which wouldn't work after editing --- Clique.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Clique.lua b/Clique.lua index 0ba3af0..73846bf 100644 --- a/Clique.lua +++ b/Clique.lua @@ -200,7 +200,8 @@ end function Clique:CombatLockdown(frame) -- Remove all OOC clicks - self:RemoveClickSet(L.CLICKSET_OOC, frame) + self:RemoveClickSet(oocClicks, frame) + self:ApplyClickSet(L.CLICKSET_DEFAULT, frame) self:ApplyClickSet(L.CLICKSET_HARMFUL, frame) self:ApplyClickSet(L.CLICKSET_HELPFUL, frame) end @@ -236,6 +237,7 @@ function Clique:UpdateClicks() for modifier,entry in pairs(ooc) do table.insert(oocClicks, entry) end + self:CombatUnlock() end function Clique:RegisterFrame(frame) @@ -439,3 +441,15 @@ function Clique:DeleteAction(entry) end end + +--[[ +local n = string.char(10) + +local frame = CreateFrame("Button", "SuperMacro1", UIParent, "SecureActionButtonTemplate") +frame:SetAttribute("type1", "macro") +frame:SetAttribute("macrotext1", "/say Casting a spell"..n.."/cast Demon Skin"..n.."/click SuperMacro2") + +local frame = CreateFrame("Button", "SuperMacro2", UIParent, "SecureActionButtonTemplate") +frame:SetAttribute("type1", "macro") +frame:SetAttribute("macrotext1", "/say Something else!") +--]] \ No newline at end of file -- 1.7.9.5