Thread Tools Display Modes
09-04-14, 09:36 AM   #1
Xxplosiv3xX
A Murloc Raider
Join Date: Aug 2014
Posts: 8
Class colored player frames (pics included)

Hey guys,

I was curious to know if anyone knows the addon to change player target/focus frames to be class colored.

Thanks.



  Reply With Quote
09-04-14, 03:28 PM   #2
Nynaeve
A Cobalt Mageweaver
 
Nynaeve's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 245
For clarification's sake, you only want the background of the name frame colored, you don't want anything else present in the screenshots? (For example the class icon instead of character portrait on that target frame in the second SS?)
There are plenty of addons that include the name background coloring, but also have a ton of other tweaks and features (though IDK if they're still working, I don't care for the default UF's myself and use SUF on live).

If all you want is the name background colored for certain units, I can upload that right now, as I had done that for beta.

If you wanted a ton of other options, you could try something like UnitFramesImproved or Sennetta's Custom Script UI or one of the other addons that include that.

As for the particular addon that the screenshot is likely of, I think it's a modified version of Santa UI(specifically Santa UI Textures ), that's why the outlines of the unit frames are darker, in case you were wondering.

Edit:

File uploaded and likely approved at any moment. Fabulous mods are fabulous.

Here it is if you want it.
__________________
"For in the plot we find more than just a man, we find the idea of that man, the spirit of that man, and that is what we must never forget." Evey (V)

Last edited by Nynaeve : 09-04-14 at 09:18 PM. Reason: Don't like to double post, wanted to add the new addon link.
  Reply With Quote
09-04-14, 09:04 PM   #3
Xxplosiv3xX
A Murloc Raider
Join Date: Aug 2014
Posts: 8
awesome! just what I was looking for!

Thanks!
  Reply With Quote
09-05-14, 03:09 PM   #4
Xxplosiv3xX
A Murloc Raider
Join Date: Aug 2014
Posts: 8
Hey, so I pretty much have my frames the way I wanted with your awesome addon script and santaUI textures, but there seems to be an issue with my health/mana/energy bar. I dont know what is causing this but the class color appears to also be the backdrop of my resource/health bars. I'll link a pic to show you what I mean.

  Reply With Quote
09-05-14, 03:46 PM   #5
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 210
Smile

I did this the other day too, you actually have to create a new texture correctly sized and parented to PlayerFrameBackground rather than modifying the frame itself - else, as you've noticed, the entire unit background is recoloured.



Lua Code:
  1. --
  2.     if PlayerFrame:IsShown() and not bg then
  3.         local _, class = UnitClass("player")
  4.         local colour = RAID_CLASS_COLORS[class]
  5.         local bg = PlayerFrame:CreateTexture(nil, "ARTWORK")
  6.            
  7.         bg:SetPoint("TOPLEFT", PlayerFrameBackground)
  8.         bg:SetPoint("BOTTOMRIGHT", PlayerFrameBackground, 0, 22)
  9.         bg:SetVertexColor(colour.r, colour.g, colour.b, .95)
  10.         bg:SetTexture("texturepath")
  11.     end

Last edited by ObbleYeah : 09-05-14 at 03:49 PM.
  Reply With Quote
09-05-14, 04:52 PM   #6
Xxplosiv3xX
A Murloc Raider
Join Date: Aug 2014
Posts: 8
Sorry im pretty new to coding with .lua. How would I go about turning this into an addon?
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Class colored player frames (pics included)


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