Quantcast WoWInterface - View Single Post - Nameplate creation with oUF
View Single Post
09-29-17, 09:12 PM   #4
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 328
Originally Posted by Kkthnx View Post
I have noticed this issue too, I fixed it by applying this in my CallbackUpdate

Lua Code:
  1. self:EnableMouse(false) -- For some off reason we need this so we can click our plates..??
  2. self.Health:EnableMouse(false) -- For some off reason we need this so we can click our plates..??
That's just how nameplates are, you have to click nameplate's base frame that's created and managed by Blizz to interact w/ the unit, otherwise, stuff gets really wonky.

But why do you explicitly disable mouse events? o_O They should be disabled by default, well, unless you do something that enables them.

Originally Posted by Kkthnx View Post
Be sure you are applying self.Health.frequentUpdates = true in your code
Yeah, you have to have nameplate health bars registered for "UNIT_HEALTH_FREQUENT" , even default ones use this event, and as you said it's done by setting `Health.frequentUpdates` to true.
__________________

Last edited by lightspark : 09-29-17 at 09:17 PM.
  Reply With Quote