1. 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.

  2. A quick google search shows that EnableMouse should do the trick so...

    /script PlayerFrame:EnableMouse(false)

  3. . .
    Edited: January 1, 2024

  4. 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.

    /script PlayerFrameHealthBar:EnableMouse(false)
    /script PlayerFrameManaBar:EnableMouse(false)

    etc etc. You can figure out the names of the frames with /framestack

    There was a website that would generate an addon if you gave it lines like those, but I don't remember what it was.

  5. . .
    Edited: January 1, 2024

  6. . .
    Edited: January 1, 2024

  7. 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
    Edited: October 27, 2022

  8. . .
    Edited: January 1, 2024

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •