From 6d11be7d0ccf2508016df87793e30427e256b058 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 25 Sep 2007 22:32:06 +0000 Subject: [PATCH] * Update to fix issues with TargetUnit and other attributes --- Clique.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Clique.lua b/Clique.lua index 064b58a..7b54731 100644 --- a/Clique.lua +++ b/Clique.lua @@ -401,11 +401,11 @@ function Clique:SetAttribute(entry, frame) elseif entry.type == "action" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) frame:SetAttribute(entry.modifier.."action"..button, entry.arg1) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2 or "mouseover") elseif entry.type == "pet" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) frame:SetAttribute(entry.modifier.."action"..button, entry.arg1) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2 or "mouseover") elseif entry.type == "spell" then local rank = tonumber(entry.arg2) local cast = string.format(rank and L.CAST_FORMAT or "%s", entry.arg1, rank) @@ -421,7 +421,7 @@ function Clique:SetAttribute(entry, frame) frame:SetAttribute(entry.modifier.."bag"..button, entry.arg1) frame:SetAttribute(entry.modifier.."slot"..button, entry.arg2) frame:SetAttribute(entry.modifier.."item"..button, entry.arg3) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg4) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg4 or "mouseover") elseif entry.type == "macro" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) if entry.arg1 then @@ -440,13 +440,13 @@ function Clique:SetAttribute(entry, frame) frame:SetAttribute(entry.modifier.."type"..button, entry.type) elseif entry.type == "target" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover") elseif entry.type == "focus" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover") elseif entry.type == "assist" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) - frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1) + frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover") elseif entry.type == "click" then frame:SetAttribute(entry.modifier.."type"..button, entry.type) frame:SetAttribute(entry.modifier.."clickbutton"..button, getglobal(entry.arg1)) -- 1.7.9.5