Reply
Thread Tools Display Modes
Unread 01-07-13, 02:52 PM   #1
Tolchock
A Murloc Raider
Join Date: Jan 2013
Posts: 4
blizzard unitframes classcolors

hey there,

I'm looking for an lightweight addon, which changes just the green health bar of the standard blizzard frames, in the color of the targeted class.

Is there such an addon?

Thanks in advance!
Tolchock is offline   Reply With Quote
Unread 01-07-13, 03:51 PM   #2
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 440
Semi Class Color Health Bar

Last edited by 10leej : 01-07-13 at 03:54 PM.
10leej is offline   Reply With Quote
Unread 01-07-13, 04:38 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,617
You could also see if this still works: http://www.wowinterface.com/download...ColorBars.html (be sure to check "Load Out of Date AddOns")

Or there are these options with more features included:
http://www.wowinterface.com/download...1-UFstuff.html
http://www.wowinterface.com/download...ramesPlus.html
__________________
"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

Seerah is offline   Reply With Quote
Unread 01-07-13, 05:47 PM   #4
Tolchock
A Murloc Raider
Join Date: Jan 2013
Posts: 4
Thank's for your answers, but I changed my mind and now use a script, which changes the player portrait to the class icon.

UFP = "UnitFramePortrait_Update"
UICC = "Interface\\TargetingFrame\\UI-Classes-Circles"
CIT = CLASS_ICON_TCOORDS
hooksecurefunc(UFP,function(self) if self.portrait then local t = CIT[select(2,UnitClass(self.unit))] if t then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) end end end)
Tolchock is offline   Reply With Quote
Unread 01-07-13, 06:06 PM   #5
Tolchock
A Murloc Raider
Join Date: Jan 2013
Posts: 4
does anyone know how to just hide the totem bar?


tried this:
/script local f = TotemFrame; if f:IsShown() then f:Hide() else f:Show() end


but its not working permanently..

Last edited by Tolchock : 01-07-13 at 10:27 PM.
Tolchock is offline   Reply With Quote
Unread 01-07-13, 11:29 PM   #6
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,391
Originally Posted by Tolchock View Post
Thank's for your answers, but I changed my mind and now use a script, which changes the player portrait to the class icon.
Ugh. I'm guessing you got that on ArenaJunkies or a similar site; the people who write those macros are basically the worst coders of all time. Here is what you posted, but re-written to avoid making horribly named and totally unnecessary global variables and generally making programmers want to puke.

Code:
hooksecurefunc("UnitFramePortrait_Update", function(self)
	local unit = self.portrait and self.unit
	if unit then
		local _, class = UnitClass(self.unit)
		local coords = CLASS_ICON_TCOORDS[class]
		if coords then
			self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
			self.portrait:SetTexCoord(coords[1], coords[2], coords[3])
		end
	end
end)
For hiding the totem bar:

Code:
TotemFrame.Show = TotemFrame.Hide
TotemFrame:Hide()
If you're stuffing these in macros that you have to activate every time you login, I'd suggest using this page to turn them into a custom mini-addon instead:

http://addon.ziuo.net/
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 01-08-13, 05:14 AM   #7
Tolchock
A Murloc Raider
Join Date: Jan 2013
Posts: 4
Thank's alot for your effort! I really wish I had the knowledge of that. You are right, got that on arenajunkies, gonna avoid this site at least for addons in future
Tolchock is offline   Reply With Quote
Unread 02-05-13, 05:44 AM   #8
allenmarton
A Kobold Labourer
Join Date: Feb 2013
Posts: 1
hi everyone,nice post,thanks for the info ...
allenmarton is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » blizzard unitframes classcolors

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