Quantcast
Clickthrough - WoWInterface
Thread Tools Display Modes
03-21-08, 03:28 PM   #1
Scale
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 28
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?
  Reply With Quote
03-21-08, 06:25 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,745
You want enableMouse="false"
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-22-08, 08:58 AM   #3
Scale
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 28
I added this to every frame i could find but it doesnt work,
Could there be another variable that disables it?
  Reply With Quote
04-01-08, 10:02 AM   #4
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,257
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"?

Last edited by Dridzt : 04-01-08 at 10:12 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Clickthrough

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off