Thread Tools Display Modes
10-16-20, 09:50 AM   #1
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
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

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF 10.0 Upgrade Guide for Shadowlands


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off