WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   blizzard unitframes classcolors (https://www.wowinterface.com/forums/showthread.php?t=45591)

Tolchock 01-07-13 02:52 PM

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!

10leej 01-07-13 03:51 PM

Semi Class Color Health Bar

Seerah 01-07-13 04:38 PM

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

Tolchock 01-07-13 05:47 PM

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 01-07-13 06:06 PM

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..

Phanx 01-07-13 11:29 PM

Quote:

Originally Posted by Tolchock (Post 271482)
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/

Tolchock 01-08-13 05:14 AM

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 ;)

allenmarton 02-05-13 05:44 AM

hi everyone,nice post,thanks for the info ...


All times are GMT -6. The time now is 02:09 AM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI