Jump to content

Photo

Class Color Behind Player Frame

Class Color Player Name Frame Script Addon

  • Please log in to reply
2 replies to this topic

#1 Phanact

Phanact
  • Junkies
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 4
  • Talents: Retribution 1/0/0/2/0/2/.
  • 2v2: 2414
  • 3v3: 2874
  • 5v5: 2234
  • RBG: 192

Posted 30 June 2016 - 05:10 PM

Hello guys! I've tried fixing this on my own but I'm complete shit as far as scripting or anything with code really.

I'm currently running these 3 macros below ingame for class color behind the name in the default unit frames.
I would very much like to also have the class color appear behind my Player Frame Name Plate as it does to my target/focus etc. This is clearly missing from the code below and I'm really too ignorant to add it myself, (tried for 2 hours straight). Anyone out there that can lend a hand?

#1 "/run UIP=UnitIsPlayer RCC=RAID_CLASS_COLORS UC=UnitClass TFNB=TargetFrameNameBackground FFNB=FocusFrameNameBackground"

#2 "/run f=CreateFrame("FRAME") f:RegisterEvent("PARTY_MEMBERS_CHANGED") f:RegisterEvent("PLAYER_TARGET_CHANGED") f:RegisterEvent("PLAYER_FOCUS_CHANGED") f:RegisterEvent("UNIT_FACTION")"

#3 "/run function e(self,event,...) if UIP("target") then c=RCC[select(2,UC("target"))] TFNB:SetVertexColor(c.r,c.g,c.b ) end if UIP("focus") then c=RCC[select(2,UC("focus"))] FFNB:SetVertexColor(c.r,c.g,c.b ) end end f:SetScript("OnEvent",e)


"



Thanks and im out

Edited by Phanact, 30 June 2016 - 05:12 PM.

  • 0

#2 Fugg

Fugg
  • Members
  • Humanclass_name
  • EU-Aegwynn
  • Blutdurst
  • Posts: 79
  • Talents: Shadow 1/1/0/1/0/0/0
  • 2v2: 1012
  • 3v3: 288
  • RBG: 1680
  • LocationEarth

Posted 28 July 2016 - 08:05 PM

hmmm

TFNB=TargetFrameNameBackground FFNB=FocusFrameNameBackground


guess what the Namebackground of the Playerframe is called?

If this is too hard you can always use "/framestack" ingame to find out
  • 0
Posted Image
Touch of Death

#3 zyther

zyther
  • Junkies
  • Humanclass_name
  • US-Barthilas
  • Bloodlust
  • Posts: 89
  • Talents: Blood 1/0/2/2/1/1/0
  • 2v2: 2427
  • 3v3: 2403
  • 5v5: 2000
  • RBG: 1844

Posted 05 August 2016 - 12:35 PM

Try this

#1 "/run UIP=UnitIsPlayer RCC=RAID_CLASS_COLORS UC=UnitClass TFNB=TargetFrameNameBackground FFNB=FocusFrameNameBackground PFB=PlayerFrameBackground"

#2 "/run f=CreateFrame("FRAME") f:RegisterEvent("PARTY_MEMBERS_CHANGED") f:RegisterEvent("PLAYER_TARGET_CHANGED") f:RegisterEvent("PLAYER_FOCUS_CHANGED") f:RegisterEvent("UNIT_FACTION")"

#3 "/run function e(self,event,...) if UIP("target") then c=RCC[select(2,UC("target"))] TFNB:SetVertexColor(c.r,c.g,c.b ) end if UIP("focus") then c=RCC[select(2,UC("focus"))] FFNB:SetVertexColor(c.r,c.g,c.b ) end if UIP("player") then c=RCC[select(2,UC("player"))] PFB:SetVertexColor(c.r,c.g,c.b ) end end f:SetScript("OnEvent",e)
  • 0





Also tagged with one or more of these keywords: Class Color, Player Name Frame, Script, Addon

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<