View Single Post
02-13-17, 10:36 AM   #5
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Related from this thread http://www.wowinterface.com/forums/s...ad.php?t=54635

I tested with KuiNameplates, TidyPlates and ElvUI and they don't have this problem
While Plater and NameplateColors do taint in combat



When setting the r, g, b fields on a healthbar it taints. Omitting it still works but .SetStatusBarColor will then be called everytime, fwiw
https://github.com/Gethe/wow-ui-sour....lua#L396-L406
Lua Code:
  1. hooksecurefunc("CompactUnitFrame_UpdateHealthColor", function(frame)
  2.     local r, g, b = 1, 0, 0
  3.     if r ~= frame.healthBar.r or g ~= frame.healthBar.g or b ~= frame.healthBar.b then
  4.         frame.healthBar:SetStatusBarColor(r, g, b) -- doesnt taint
  5.         frame.healthBar.r, frame.healthBar.g, frame.healthBar.b = r, g, b -- taints
  6.     end
  7. end)

Hopefully it's fixed now, but please give your feedback otherwise
https://github.com/Ketho/NameplateCo...0a3bcc65da029d

Last edited by Ketho : 02-14-17 at 12:24 PM.
  Reply With Quote