Thread Tools Display Modes
07-20-16, 04:08 PM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Nameplate & Player Resource Bar

I managed to skin the healthbar, but the power bar texture changes only the raid frames.

What i have so far..

Lua Code:
  1. hooksecurefunc("CompactUnitFrame_UpdateHealthColor", function(frame)
  2.     frame.healthBar:SetStatusBarTexture(AftermathhUI.media.texture)
  3.     frame.healthBar:SetStatusBarColor(unpack(AftermathhUI.ouf.healthbarcolor))
  4. end)
  5.  
  6. hooksecurefunc("CompactUnitFrame_UpdatePowerColor", function(frame)
  7.     if frame.powerBar then
  8.         frame.powerBar:SetStatusBarTexture(AftermathhUI.media.texture)
  9.         frame.powerBar:SetStatusBarColor(AftermathhUI.Classcolor.r, AftermathhUI.Classcolor.g, AftermathhUI.Classcolor.b)
  10.     end
  11. end)

http://imgur.com/a/zxCki

I want to color the power bar =)

Last edited by Aftermathhqt : 07-21-16 at 06:49 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Nameplate & Player Resource Bar


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