Making Blizzard UI frame "transparent" to the mouse?
how would one go about hijacking an existing Blizzard UI frame (or any other frame, really) and rendering it completely transparent to the mouse?
the old Eclipse library (mentioned here) apparently did this (and i am happy to reverse-engineer stuff), but i cannot find any record of this library on Google or any of the main addon sites. looking at other addons, it appears Frame:EnableMouse() and various "OnClick"/etc hooks might be relevant (and Button:RegisterForClicks() maybe not so relevant, not generally for frames), but i was hoping someone could point me directly to some documentation and/or an example (so i don't have to do a ton of trial/error). thanks. |
Drop this in a .LUA to have a frame in the center of the screen that you can click through. The final two functions called are what makes it work, theoretically they should work on any frame Blizzard or not.
Code:
local exampleFrame = CreateFrame("FRAME", nil, UIParent) |
Those two lines do not set whether a frame is click through or not, they merely set the frames draw level. (Think z-axis for your UI.) frame:EnableMouse(true or false) is what makes a frame click-through or not. (Your frame above is click-through by default)
|
Quote:
|
That's because the MinimapCluster frame *behind* the minimap still has mouse enabled. ;)
|
in my case, i am calling EnableMouse() on the ultimate "parent" frame of a group of frames, to disable the mouse, and never calling it in any form on any of the dependent/children frames.
the result of this is that the frame hierarchy rooted at the "parent" frame is not responsive to the mouse, but neither is anything else that happens to be underneath the "parent" frame. so, i am guessing there is something else required. i have not been able to figure out what it is. Seerah's post implies that these child frames are not defaulting to something i don't want (and therefore should not be "blocking" the mouse even though the parent frame is disabled). |
I'm not sure if a frame's being mouse enabled is inheritable...
|
Quote:
|
Quote:
Imho you'll have to iterate over all the child frames. |
All times are GMT -6. The time now is 08:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI