Reply
Thread Tools Display Modes
Unread 12-05-12, 04:59 AM   #1
devilArt
A Fallenroot Satyr
 
devilArt's Avatar
Join Date: Aug 2009
Posts: 26
about tapped color, want it back to grey

hi guys
since 5.1, tapped color changed to purple, that's a really bad idea
is there a way to changed it back to grey?
devilArt is offline   Reply With Quote
Unread 12-05-12, 10:24 AM   #2
SDPhantom
A Molten Giant
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 998
FrameXML/TargetFrame.lua:285
Code:
function TargetFrame_CheckFaction (self)
	if ( not UnitPlayerControlled(self.unit) and UnitIsTapped(self.unit) and not UnitIsTappedByPlayer(self.unit) and not UnitIsTappedByAllThreatList(self.unit) ) then
		self.nameBackground:SetVertexColor(0.5, 0.5, 0.5);
		if ( self.portrait ) then
			self.portrait:SetVertexColor(0.5, 0.5, 0.5);
		end
	else
		self.nameBackground:SetVertexColor(UnitSelectionColor(self.unit));
		if ( self.portrait ) then
			self.portrait:SetVertexColor(1.0, 1.0, 1.0);
		end
	end

	if ( self.showPVP ) then
		local factionGroup = UnitFactionGroup(self.unit);
		if ( UnitIsPVPFreeForAll(self.unit) ) then
			self.pvpIcon:SetTexture("Interface\\TargetingFrame\\UI-PVP-FFA");
			self.pvpIcon:Show();
		elseif ( factionGroup and factionGroup ~= "Neutral" and UnitIsPVP(self.unit) ) then
			self.pvpIcon:SetTexture("Interface\\TargetingFrame\\UI-PVP-"..factionGroup);
			self.pvpIcon:Show();
		else
			self.pvpIcon:Hide();
		end
	end
end
Still looks grey to me. This is from the 5.1 source files for the default UI.
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline   Reply With Quote
Unread 12-05-12, 10:41 AM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,190
He was probably talking about the nameplates stuff.
Dridzt is offline   Reply With Quote
Unread 12-05-12, 01:21 PM   #4
devilArt
A Fallenroot Satyr
 
devilArt's Avatar
Join Date: Aug 2009
Posts: 26
sorry for misunderstanding
i mean tapped color of nameplate, it's purple now
need a simple code to change it back to grey again, like that code define class color
devilArt is offline   Reply With Quote
Unread 12-05-12, 03:21 PM   #5
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 759
Welcome to the club.
__________________
Profile: Curse | Wowhead
Vlad is offline   Reply With Quote
Unread 12-05-12, 04:56 PM   #6
SDPhantom
A Molten Giant
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 998
Ah, I don't even play with nameplates on, lol.
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » about tapped color, want it back to grey

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