Thread Tools Display Modes
01-31-11, 02:40 AM   #1
ddod
A Murloc Raider
Join Date: Jan 2011
Posts: 4
[Hunter]LF Focus display addon

Hello there,

Im looking for a addon that displays my current focus in a number format like "100" or "43" or whatever.
which I want to position in the center of my screen.
So far Ive found couple of addons that provide a focus bar but none that can display a simple number.

Thx for your help.
  Reply With Quote
01-31-11, 04:09 AM   #2
Jigain
A Molten Giant
 
Jigain's Avatar
Join Date: Jul 2009
Posts: 732
Try Digits.
__________________


  Reply With Quote
01-31-11, 05:05 AM   #3
ddod
A Murloc Raider
Join Date: Jan 2011
Posts: 4
Thats very much what im looking for except it isnt updated to Cata Hunter which uses focus. Too bad my knowledge in lua isnt that good.


Code:
if (self.class ~= "WARRIOR") then
    self:RegisterEvent("UNIT_MANA")
  end
  if (self.class == "WARRIOR") or (self.class == "DRUID") then
    self:RegisterEvent("UNIT_RAGE")
  end
  if (self.class == "ROGUE") or (self.class == "DRUID") then
    self:RegisterEvent("UNIT_ENERGY")
  end
  if (self.class == "DRUID") then
    self:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
  end
  if (self.class == "DEATHKNIGHT") then
    self:RegisterEvent("UNIT_RUNIC_POWER")
  Reply With Quote
01-31-11, 05:42 AM   #4
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi ddod,

In Cataclysm, the UNIT_MANA, UNIT_RAGE, and UNIT_ENERGY events were removed. Now, all classes get the same event, UNIT_POWER. So, that whole piece of code you posted should just be changed to this:

Code:
  self:RegisterEvent("UNIT_POWER")
  if self.class == "DRUID" then
    self:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
  end
There might be other places in the code where it’s listening for the old evens, so you’ll have to change those too.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
01-31-11, 05:54 AM   #5
ddod
A Murloc Raider
Join Date: Jan 2011
Posts: 4
Thx Akkorian,

Still making this addon Cata ready is out of my reach as a programmer. Thing is Digits is just perfect for ppl like me who dont like clutter on their screen and its sad that Satrina isnt writing it anymore.
  Reply With Quote
01-31-11, 05:56 AM   #6
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 125
Try this and let me know how it works. I coded this for someone else on here and changed a few things so it would work for you.

/-- Post Edited --/

At Wowinterface we take our users safety and security very serious, although I am sure the file you attached has no issues we prefer that all files be checked manually by a admin or smod. Although attaching a zip and or rar file is allowed we would prefer that the file be submitted as a addon / plugin / patch, not only does this give us the chance to check the file, it also allows it to be indexed and stored so that users may find it later without having to dig through forum posts.

Thank You,
Nobgul

http://www.wowinterface.com/download...usTracker.html

Last edited by Soulofsin_007 : 01-31-11 at 08:15 AM.
  Reply With Quote
01-31-11, 06:06 AM   #7
ddod
A Murloc Raider
Join Date: Jan 2011
Posts: 4
Yay tyvm, will try it as soon as I get home.
  Reply With Quote
01-31-11, 08:37 AM   #8
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Just to bump the post up.

http://www.wowinterface.com/download...usTracker.html
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » [Hunter]LF Focus display addon


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