View Single Post
04-13-18, 03:44 PM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
UnitReaction color

Hello guys,

im trying to edit a name tag to work with color reaction, but no success. Can you help me to edit the code please?

self.Name:SetTextColor(unpack(cfg.colors.health))
instead of cfg.colors.health it should be the reactiontable (i have it already). Im just don't know how to setup correctly the table.



Table:

oUF.colors.reaction = {
[1] = {182/255, 34/255, 32/255},
[2] = {182/255, 34/255, 32/255},
[3] = {182/255, 92/255, 32/255},
[4] = {220/225, 180/255, 52/255},
[5] = {132/255, 181/255, 26/255},
[6] = {132/255, 181/255, 26/255},
[7] = {132/255, 181/255, 26/255},
[8] = {132/255, 181/255, 26/255},
}

Last edited by GreyFox777 : 04-13-18 at 03:49 PM.
  Reply With Quote