Looking for a script to make my player portrait and bars non interactive
tired of dying cause i fail to notice my life is running low, i moved my unit frame (think that is the proper term) near the middle of the screen, and it works great for what i want... except that when i happen to click that spot to move my camera, my camera doesnt move. so i am hoping i can make it completely non interactive so i can click there and still move my camera. but i havent been able to find anything searching fairly extensively. any wisdom would be greatly appreciated.
There are cFrames like the hp/mana bars which will still be active/enabled for mouse events. you should disable on/for all, not only PlayerFrame and it's best to be done only for in-combat situation, then restore when player_regen_enabled is hit back (out of combat)
Interesting, I thought that EnableMouse would cascade down to all children frames.
great, thank you a ton for the script, it does exactly what i wanted. however, after i made this post i got an addon that gave me secondary life/mana bars that are smaller and better for what i want. however these new bars have the same problem i was having before, when i click on em by accident i cant move my camera.
using framestack i get (https://i.imgur.com/EcTIpxw.png) when i cursor over the new bars, but i couldnt figure out how to apply the script to these bars.
i dont suppose one you could tell me what i am missing?
edit - nvm, i did get it to work. not rightly sure why it didnt the first time i tried /script SUFUnitplayer:EnableMouse(false) , but it works now. musta had a typo. thanks a ton gents, you really helped me out today