Thread Tools Display Modes
04-19-14, 02:43 PM   #1
philipe24
A Deviate Faerie Dragon
Join Date: Jan 2014
Posts: 10
PlayerFrame IconName?

Hey guys,
just wanted to ask if someone knows how this Icon is called because I really want to hide it. /FrameStack and google are not giving me any answer.
http://i.imgur.com/MJ3RqRq.png

greetings
  Reply With Quote
04-19-14, 11:09 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you mean the "5 m" text circled in red, that's the PvP timer text, and has nothing to do with the icon. A quick search in PlayerFrame.xml reveals that the name of that font string is "PlayerPVPTimerText", and I'd suggest hiding it like this:

Code:
hooksecurefunc(PlayerPVPTimerText, "SetFormattedText", function(self)
     self.timeLeft = nil
     self:Hide()
end)
This will not only keep it from showing up, but also stop other functions from wasting resources calculating the remaining time and formatting the text you won't see anyway.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 04-19-14 at 11:12 PM.
  Reply With Quote
04-21-14, 01:50 PM   #3
philipe24
A Deviate Faerie Dragon
Join Date: Jan 2014
Posts: 10
perfect! thanks alot!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » PlayerFrame IconName?


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