diff classes/GridProxy.lua @ 128:729232aeeb5e

Action Button rewrite. (note: pet actions are probably slightly broken right now, they haven't been updated yet)
author Flick <flickerstreak@gmail.com>
date Thu, 05 Mar 2009 01:28:48 +0000
parents a2d2f23137c8
children
line wrap: on
line diff
--- a/classes/GridProxy.lua	Wed Mar 04 21:19:32 2009 +0000
+++ b/classes/GridProxy.lua	Thu Mar 05 01:28:48 2009 +0000
@@ -4,7 +4,7 @@
 local gridProxy = { }
 ReAction.gridProxy = gridProxy
 
-local f = CreateFrame("CheckButton",nil,UIParent,"ActionBarButtonTemplate, SecureHandlerAttributeTemplate")
+local f = CreateFrame("CheckButton","ReActionShowGridProxy",UIParent,"ActionBarButtonTemplate, SecureHandlerAttributeTemplate")
   -- SecureHandlerAttributeTemplate overwrites the onAttributeChanged handler, as it's last in the list
 f:UnregisterAllEvents()
 f:SetScript("OnEnter",nil)
@@ -13,6 +13,9 @@
 f:SetScript("OnDragStart",nil)
 f:SetScript("OnReceiveDrag",nil)
 f:SetScript("OnUpdate",nil)
+f:SetAttribute("showgrid",0)
+f:SetAttribute("action",0)
+f.action = 0
 f:EnableMouse(false)
 for _, child in ipairs({f:GetChildren()}) do
   child:Hide()