WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Help please, UIParent and OnReceiveDrag (https://www.wowinterface.com/forums/showthread.php?t=56873)

Nightness 12-05-18 12:37 AM

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?

Fizzlemizz 12-05-18 03:14 AM

Discussed here

Nightness 12-08-18 09:12 PM

Quote:

Originally Posted by Fizzlemizz (Post 330951)
Discussed here

No kidding, that was my post.

jlam 12-09-18 08:34 AM

Quote:

Originally Posted by Nightness (Post 330970)
No kidding, that was my post.

I believe he was just directing interested forum users to where the thread was hashed out since the discussion didn't take place here.


All times are GMT -6. The time now is 05:39 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI