View Single Post
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:	580
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