Download
(1Kb)
Download
Updated: 08-09-11 03:38 PM
Pictures
File Info
Updated:08-09-11 03:38 PM
Created:01-31-11 08:14 AM
Downloads:4,064
Favorites:5
MD5:

Focus Tracker

Version: 1.0.3
by: Soulofsin_007 [More]

Adds text to screen that tracks focus. All config is edited through lua on lines 3 and 4.

Optional Files (0)


Post A Reply Comment Options
Unread 02-01-11, 12:11 AM  
ddod
A Murloc Raider

Forum posts: 4
File comments: 3
Uploads: 0
So couple of bugs after some testing last night.

1. Textsize doesnt change the size of the text, tryed setting it to 36,42,72 etc. no change in the size whatsoever.
2. Changing moveable to false and then clicking on the frame generates lua error.
3. This as I understand it is still a percent value of my current focus, which is fine for MM and SV specs, but BM has 110 max focus and this kind of calculation will not give me the exact focus i have in the said moment. Listen for focus value change event and display the value imo.

Code:
local h,f = UnitPower("player"),UnitPowerMax("player")
    local mathed = (floor(h/f*1000/10))
4. Please make the frame click-through.
Last edited by ddod : 02-01-11 at 12:20 AM.
Report comment to moderator  
Reply With Quote
Unread 02-01-11, 06:50 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
1. Textsize doesnt change the size of the text, tryed setting it to 36,42,72 etc. no change in the size whatsoever.

I believe there is a maximum for text size. I'm unsure what the max is, but it is there. It does work, I changed it from the default 18, to 11, then to 22 and had a difference each time.

2. Changing moveable to false and then clicking on the frame generates lua error.

I dunno if I can fix this one, I have the same issue with my other addons, I'll give it a shot though.

3. This as I understand it is still a percent value of my current focus, which is fine for MM and SV specs, but BM has 110 max focus and this kind of calculation will not give me the exact focus i have in the said moment. Listen for focus value change event and display the value imo.

That percent line is just wasted space, it does not use it, I just have not removed it yet. This is listening for the UNIT_POWER event and is updating aslong as your focus changes. Its weird that it would not update to 110 or even set itself to 110. I can change it to use an on-update and it wont really matter.

4. Please make the frame click-through.

It should be when changing movable to false, I'll try to fix this too.
Report comment to moderator  
Reply With Quote
Unread 02-04-11, 12:46 AM  
ddod
A Murloc Raider

Forum posts: 4
File comments: 3
Uploads: 0
Ok tested the new version some more and:

1. Leaving combat when focus is <100 generates errors (comparing with nil) and focus stops updating until next time you get in combat.
2. Try to find a way to make the font bigger, current maximum size is kinda small.

Will post some screenshots tonight when I get back home.
Report comment to moderator  
Reply With Quote
Unread 02-04-11, 08:40 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Try changing the scale of the frame. It may work. I'll check into the focus issue, I know I'm not having any issues.
Report comment to moderator  
Reply With Quote
Unread 02-04-11, 09:35 AM  
ddod
A Murloc Raider

Forum posts: 4
File comments: 3
Uploads: 0
http://imgur.com/0rSYW
http://imgur.com/O52qC

The lua error i had and the issue with the focus non updating(see my unitframes)
Report comment to moderator  
Reply With Quote
Unread 02-05-11, 05:00 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Ok, been busy with other things, I'll try to bang it sometime tonight or tomorrow.
Report comment to moderator  
Reply With Quote
Unread 08-07-11, 12:03 PM  
Nullified
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Show with an enemy target or in combat only

is there something I can add to the lua to make it show only when I have an enemy target or only when I'm in combat. Thanks.
Report comment to moderator  
Reply With Quote
Unread 08-08-11, 04:12 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Sure, I can add it.
Report comment to moderator  
Reply With Quote
Unread 08-09-11, 05:22 PM  
Nullified
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Originally posted by Soulofsin_007
Sure, I can add it.
Thanks for the quick update! It wasn't working at first. It wasn't hidden in combat and if set to movable it would toss out an error
Code:
FocusTracker-1.0.0\core.lua:50: attempt to index global 'frame' (a nil value)
. so I looked at the old code and the new code and changed the new codes line that reads
Code:
frame = CreateFrame("Frame","Frame", WorldFrame)
back to

Code:
local frame = CreateFrame("Frame","Frame", WorldFrame)
and it works like a charm! Thanks again!!!
Last edited by Nullified : 08-09-11 at 05:23 PM.
Report comment to moderator  
Reply With Quote
Unread 08-09-11, 05:29 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Originally posted by Nullified
Thanks for the quick update! It wasn't working at first. It wasn't hidden in combat and if set to movable it would toss out an error
Code:
FocusTracker-1.0.0\core.lua:50: attempt to index global 'frame' (a nil value)
. so I looked at the old code and the new code and changed the new codes line that reads
Code:
frame = CreateFrame("Frame","Frame", WorldFrame)
back to

Code:
local frame = CreateFrame("Frame","Frame", WorldFrame)
and it works like a charm! Thanks again!!!
No problem, sorry about the error, I didn't even think about changing it back. I forgot I had taken out the local infront of frame. So now its hiding correctly?
Report comment to moderator  
Reply With Quote
Unread 08-09-11, 08:08 PM  
Nullified
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Originally posted by Soulofsin_007
No problem, sorry about the error, I didn't even think about changing it back. I forgot I had taken out the local infront of frame. So now its hiding correctly?
Once I added back the "Local", it is hiding correctly. Thanks again!
Report comment to moderator  
Reply With Quote
Unread 08-10-11, 03:41 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Originally posted by Nullified
Once I added back the "Local", it is hiding correctly. Thanks again!
No problem at all.

Soul
Report comment to moderator  
Reply With Quote
Unread 08-18-11, 11:58 AM  
eros4tw
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Is it difficult to add an anchor or the ability to move the addon in game by just clicking and dragging it around? I realize I can edit the location through the .lua, but...I just know so little about that stuff its very tedious.

Ive been looking for an addon that JUST shows focus, and this is the only one I have come across...would be nice if it was slightly more user friendly.
Report comment to moderator  
Reply With Quote
Unread 08-18-11, 03:29 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 11
Originally posted by eros4tw
Is it difficult to add an anchor or the ability to move the addon in game by just clicking and dragging it around? I realize I can edit the location through the .lua, but...I just know so little about that stuff its very tedious.

Ive been looking for an addon that JUST shows focus, and this is the only one I have come across...would be nice if it was slightly more user friendly.
Open up the lua file and where it says
lua Code:
  1. RunicPercent_options = {
  2.     textsize = 22; --change scale
  3.     moveable = false; -- set movable
  4. };

Change it to

lua Code:
  1. RunicPercent_options = {
  2.     textsize = 22; --change scale
  3.     moveable = true; -- set movable
  4. };

and you will be able to drag it around.
Report comment to moderator  
Reply With Quote
Unread 09-22-11, 11:22 AM  
Lunyra
A Deviate Faerie Dragon

Forum posts: 11
File comments: 51
Uploads: 0
Seems to be broken in 4.3.

Installed it and nothing shows when entering combat.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.