KGpanels class colors.
Does anyone have the code for making the color the exact same as your class is? I'd love that.
|
normally this should do the job
OnLoad Code:
local _, class = UnitClass("player"); |
Thanks =))))
|
You can do the same thing in a lot less code by getting the value from the class colors table instead of hard-coding in a bunch of checks and values for every class:
Lua Code:
|
Thnx Phanx,didn t know that one. Just tested it,works like a charm. :)
|
RAID_CLASS_COLORS is the table defined and used in Blizzard's UI code. CUSTOM_CLASS_COLORS is the table defined by the "custom class colors" standard. Currently I think my addon is the only one that creates it and provides a UI for changing the colors (which makes sense, since it's my standard!) but many popular addons will look for it and use the colors in it instead of the Blizzard table if it exists.
|
Quote:
I dont get the code language lol. |
Phanx already gave you the exact code to use. She was just explaining to you what RAID_CLASS_COLORS and CUSTOM_CLASS_COLORS are.
|
All times are GMT -6. The time now is 06:27 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI