WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   DK and warrior colours swapped (https://www.wowinterface.com/forums/showthread.php?t=41639)

Léthalvenom 10-20-11 07:43 PM

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

Seerah 10-20-11 08:22 PM

I don't know how your DK has the warrior color, but your warrior is almost full red.

http://wowprogramming.com/docs/widge...SetVertexColor

Léthalvenom 10-20-11 08:25 PM

warrior is brown lately and dk red :(

Nobgul 10-20-11 08:26 PM

try this for warlock
145 0 195

thats the rgb color, i can't for the life of me remember how to convert it.

Léthalvenom 10-20-11 08:39 PM

145 0 195

hmmm sweet pink :D 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)

Seerah 10-20-11 08:56 PM

divide your values by 255 to get the correct number in the 0-1 range.


All times are GMT -6. The time now is 11:35 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI