Go Back   WowAce Forums > Official Addon Threads > General AddOns
General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it.

Reply
 
Thread Tools
Old 5 Days Ago   #1101
ImpalerCore
Member
 
Join Date: Sep 2009
Posts: 21
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by Legionlars View Post
Hey guys , im kinda new to this and i've got a question.

My ui looks like this:



My question is about profile switching, what didn't seem to work.
When i log my alt character and change the color of the red Layouts to Green of the Alt his profile . it automaticly ALSO changes the profile of my Main and made the red images to green.

Ive tried some things already.
1. Made layouts like Actionbarhunter , Actionbardruid (those look the same), and change the color of Actionbardruid to green. but the Hunter also went green.

2. i thought , maybe the problem is because its the same File/Image . so ive made 2 of each layout so i could make 1 red and the other 1 green . but after putting them into WoW . it gave the same problem

Sorry if my spelling is bad, and because of that it isn't understandable . ask me !
There is a couple of ways to handle it. The first is to set the vertex color of the texture you are rendering.

---kgClassColorPanel---
<OnLoad>
local _, class = UnitClass("player");
if class == "DRUID" then
self.bg:SetVertexColor(1, 0.49, 0.04, self.bg:GetAlpha())
elseif class == "HUNTER" then
self.bg:SetVertexColor(0.33, 0.86, 0.00, self.bg:GetAlpha())
end

If the texture is grayscale, this should blend your color into the texture, which may work to colorize those images in your background.

If you have textures in different files, you can use SetTexture to have class-specific backgrounds.

---kgClassArtPanel---
<OnLoad>
local _, class = UnitClass("player");
if class == "DRUID" then
self.bg:SetTexture("Interface\\Art\\DruidArt.tga")
elseif class == "HUNTER" then
self.bg:SetTexture("Interface\\Art\\HunterArt.tga" )
end

This is the basic idea. You can add classes or even use character names if you have two characters with the same class but want different art.
ImpalerCore is offline   Reply With Quote
Old 5 Days Ago   #1102
Seerah
Legendary Member
 
Seerah's Avatar
 
Join Date: May 2006
Posts: 6,102
Default Re: kgPanels Offical Thread

well, your screenshot is super tiny, so it's hard to see what you're referring to. But... If the color is changing on both characters, that means that you have both characters using either a) the same layout or b) the same profile.
__________________
"ACE = Accidental Caps-Lock Error" -Dameek


Seerah is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 3 (0 members and 3 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:44 AM.