Quantcast
WoWInterface - View Single Post - oUF 10.0 Upgrade Guide for Shadowlands
View Single Post
10-16-20, 09:50 AM   #3
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 118
Always the same, after I asked I find the answer myself:

Lua Code:
  1. function UNITS:AdditionalPower_UpdateColor(_, unit)
  2.     if (unit) then
  3.         local self = self.AdditionalPower;
  4.         local _, powerToken = UNITS:UnitPowerType(unit);
  5.  
  6.         if (powerToken == ADDITIONAL_POWER_BAR_NAME) then
  7.             self:Hide();
  8.         else
  9.             local color = Colors:GetColorForPower(ADDITIONAL_POWER_BAR_NAME);
  10.  
  11.             self:SetStatusBarColor(color.r, color.g, color.b, color.a);
  12.         end
  13.     end
  14. end

Once again thank you for the update guide
  Reply With Quote