Thread Tools Display Modes
10-20-11, 07:43 PM   #1
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
DK and warrior colours swapped

Hmm i m using this script now for the class colouring in kgpanels but i just noticed that the warrior colours and dk colours are swapped. So DK is brown and warrior red. Shouldn t be a prob normally but i can t find a line bout the dk in this script. And i would like the warlocks colour a bit more intens purple. Now its more leaning to blue.
Can any one help out pls?

OnLoad

local _, class = UnitClass("player");
if class == "WARRIOR" then
self.bg:SetVertexColor(0.95, 0.23, 0.23, self.bg:GetAlpha())
elseif class == "PRIEST" then
self.bg:SetVertexColor(1, 0.96, 0.98, self.bg:GetAlpha())
elseif class == "MAGE" then
self.bg:SetVertexColor(0.00, 1, 1, self.bg:GetAlpha())
elseif class == "DRUID" then
self.bg:SetVertexColor(1, 0.49, 0.04, self.bg:GetAlpha())
elseif class == "PALADIN" then
self.bg:SetVertexColor(0.92, 0.22, 0.46, self.bg:GetAlpha())
elseif class == "HUNTER" then
self.bg:SetVertexColor(0.33, 0.86, 0.00, self.bg:GetAlpha())
elseif class == "ROGUE" then
self.bg:SetVertexColor(1, 0.94, 0.16, self.bg:GetAlpha())
elseif class == "SHAMAN" then
self.bg:SetVertexColor(0.13, 0.42, 1, self.bg:GetAlpha())
elseif class == "WARLOCK" then
self.bg:SetVertexColor(0.36, 0.18, 1, self.bg:GetAlpha())
end

Last edited by Léthalvenom : 10-20-11 at 07:48 PM.
  Reply With Quote
10-20-11, 08:22 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I don't know how your DK has the warrior color, but your warrior is almost full red.

http://wowprogramming.com/docs/widge...SetVertexColor
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-20-11, 08:25 PM   #3
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
warrior is brown lately and dk red
  Reply With Quote
10-20-11, 08:26 PM   #4
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
try this for warlock
145 0 195

thats the rgb color, i can't for the life of me remember how to convert it.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-20-11, 08:39 PM   #5
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
145 0 195

hmmm sweet pink going to use that for my paladin ^^ This was actually the colour i was looking for my paladin ty soooo much. (and no paladins are not gay)

Last edited by Léthalvenom : 10-20-11 at 08:45 PM.
  Reply With Quote
10-20-11, 08:56 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
divide your values by 255 to get the correct number in the 0-1 range.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » DK and warrior colours swapped

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