Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-08-16, 04:41 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Power Bar Color not working

Hey, i have a issue where i can't color the power bar for some reason

Lua Code:
  1. local APower = CreateFrame("StatusBar", nil, self)
  2.     APower:SetHeight(22)
  3.     if unit == "targettarget"then
  4.         APower:SetHeight(13)
  5.     end
  6.     APower:SetStatusBarTexture(AftermathhUI.media.texture)
  7.     APower:SetPoint("TOP", AHealth, "BOTTOM", 0, 0)
  8.     APower:SetPoint("LEFT")
  9.     APower:SetPoint("RIGHT")
  10.    
  11.     if AftermathhUI.ouf.custompowercolor == true then
  12.         APower:SetStatusBarColor(0.81, 0.75, 1.00)
  13.         APower.colorClass = false
  14.         APower.colorReaction = false
  15.     else
  16.         APower.colorClass = true
  17.         APower.colorReaction = true
  18.     end
  19.    
  20.     APower.Smooth = true
  21.     APower.frequentUpdates = true
  22.  
  23.     self.Power = APower

Last edited by Aftermathhqt : 08-08-16 at 05:53 AM.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » StatusBarColor not working


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