View Single Post
03-03-13, 11:03 PM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Fixed the missing "not" in my original post.

Originally Posted by p3lim View Post
It's possible to change the attributes on the frames, so you could for example only click the frame if you're holding down shift.

Lua Code:
  1. PlayerFrame:SetAttribute('*type1', nil)
  2. PlayerFrame:SetAttribute('shift-type1', 'target')
That doesn't affect the frame's mouse-interactability, though. You still can't click through the frame. All the click attributes do is change what happens when you click on the frame. Using the above code, clicking on the frame without holding Shift would simply create a "dead zone" where clicks did nothing at all.

A better overall solution might be to simply move the frames to some part of the screen you aren't accidentally clicking all the time.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote