Quantcast

Temporarily fix an issue with unit menus

James Whitehead II [03-19-13 - 06:37]
Temporarily fix an issue with unit menus

After 5.2 when Blizzard switched to 'togglemenu', there is a bug with
the dropdown code that requires raid frames to continue using 'menu'
instead in order to work properly. This change should properly use the
correct attribute until this bug has been fixed.
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 7bf7d63..bfbc7b4 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -501,7 +501,8 @@ function addon:GetClickAttributes(global)
                 bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, entry.type)
                 rembits[#rembits + 1] = REMATTR(prefix, "type", suffix)
             elseif entry.type == "menu" then
-                bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, "togglemenu")
+                set_text = ATTR(indent, prefix, "type", suffix, "togglemenu")
+                bits[#bits + 1] = string.gsub(set_text, '"togglemenu"', 'button:GetAttribute("*type2") == "menu" and "menu" or "togglemenu"')
                 rembits[#rembits + 1] = REMATTR(prefix, "type", suffix)
 			elseif entry.type == "spell" and self.settings.stopcastingfix then
 				-- Implement the 'stop casting'f ix