Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-26-17, 05:02 AM   #1
RammounZ
A Defias Bandit
Join Date: Nov 2017
Posts: 3
PlayerHitIndicator and class color. Help

Hi!

It's possible to change the size of PlayerHitIndicator(incoming healing and damage on player frame) and a little move to the left?
Click image for larger version

Name:	WoWScrnShot_112617_131348.jpg
Views:	576
Size:	438.8 KB
ID:	9022

And second question, i have code that change color my nickname on my player frame(you can see that my nickname is blue, like color of the class)

Code:
local function getPlayerColors()
    local c = RAID_CLASS_COLORS[select(2,UnitClass("player"))]
    return c.r, c.g, c.b
end

PlayerName:SetTextColor(getPlayerColors())
so, i want change class color of the nickname on target and focus. Something like that
Code:
TargetFrameTextureFrameName:SetTextColor(getPlayerColors())
FocusFrameTextureFrameName:SetTextColor(getPlayerColors())
But, I dont know how to make the getPlayerColors() function return the color of the class, not just the color of the player. How to do it ?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » PlayerHitIndicator and class color. Help

Thread Tools
Display Modes

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