Thread Tools Display Modes
11-26-17, 08:53 AM   #1
RammounZ
A Defias Bandit
Join Date: Nov 2017
Posts: 3
Thanks for reply. Yes, one dude suggest me this code, but he doesnt work

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

PlayerName:SetTextColor(getPlayerColors("player"))
TargetFrameTextureFrameName:SetTextColor(getPlayerColors("target"))
FocusFrameTextureFrameName:SetTextColor(getPlayerColors("focus"))
  Reply With Quote
11-26-17, 10:40 AM   #2
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
Originally Posted by RammounZ View Post
he doesnt work
Was it meant as "it doesn't work"?
I believe you might want to call
Code:
TargetFrameTextureFrameName:SetTextColor(getPlayerColors("target"))
FocusFrameTextureFrameName:SetTextColor(getPlayerColors("focus"))
accordingly when target or focus changed instead of during login.

Last edited by Kakjens : 11-26-17 at 10:42 AM.
  Reply With Quote

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


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