View Single Post
12-05-18, 12:37 AM   #1
Nightness
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Feb 2009
Posts: 32
Help please, UIParent and OnReceiveDrag

I'm writing a button addon called MagnetButtons... I've recently run in to a weird snag...

Code:
-- This doesn't receive events, unless I also specify the OnMouseUp script...
-- But setting the OnMouseUp script breaks the ability to move by pressing
-- both mouse buttons down.
UIParent:SetScript("OnReceiveDrag", function (self)

end);

-- Can't use HookScript since UIParent:GetScript("OnMouseUp") == nil
UIParent:SetScript("OnMouseUp", function (self, button)

end);
Any suggestions?
  Reply With Quote