WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Clickthrough (https://www.wowinterface.com/forums/showthread.php?t=15386)

Scale 03-21-08 03:28 PM

Clickthrough
 
Im trying to make the xperl raid assist frame click through.

I have tryed changing and adding enableMouse="true" to all frames,
Since i think thats whats needed to be done cant really fine how to make them clickthrough.

Everthing in the frame now is not clickable but i cant move the camera etc.

Any pointers on what im doing wrong?

Seerah 03-21-08 06:25 PM

You want enableMouse="false"

Scale 03-22-08 08:58 AM

I added this to every frame i could find but it doesnt work,
Could there be another variable that disables it?

Dridzt 04-01-08 10:02 AM

You have to walk the frame hierarchy and set it for children (including un-named) of the frame that interests you.

I coded that part to help another author in locking/unlocking his frame and making it click-through.
This is the relevant part of the code:
Code:

local FrameCollection = {};
function GetChildrenTree(Frame) --- Walk the frame hierarchy recursively adding children.
                if Frame:GetChildren() then
                        for _,child in pairs({Frame:GetChildren()}) do
                                if child:IsMouseEnabled() then
                                        tinsert(FrameCollection,child);
                                end
                                GetChildrenTree(child);
                        end
                end
        end
        GetChildrenTree(ParentFrame);

This is to get all children of the frame I want to make click-through and put them in a table.
Then later when actually toggling clickthrough on / off this code runs
Code:

-- check lock status and enable/disable mouse.
        if ParentFrame:IsVisible() then
                if Config.Locked then
                        ParentFrame:EnableMouse(false);
                        for _,childframe in pairs (FrameCollection) do
                                childframe:EnableMouse(false);
                        end
                else
                        ParentFrame:EnableMouse(true);
                        for _,childframe in pairs (FrameCollection) do
                                childframe:EnableMouse(true);
                        end               
                end
        end

Hope it helps.

Erm wait! (I just read the initial question)
You want to make the assist frame clickthrough??
Why on earth would you want to do that?
You might as well hide it / disable it completely then.. what good is an assist frame you can't use for "assisting"?


All times are GMT -6. The time now is 09:55 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI