Download
(13 Kb)
Download
Updated: 08-31-12 06:33 AM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:08-31-12 06:33 AM
Created:unknown
Downloads:113,837
Favorites:208
MD5:
FocusFrame  Popular! (More than 5000 hits)
Version: 2.5.3
by: Tageshi [More]
FocusFrame -- Created by Tageshi


---------------------------------------------------------------
1. WHAT IS "FocusFrame"?
---------------------------------------------------------------

FocusFrame is very simple addon to show your focus.

The frame looks almost exactly same as Blizzard's TargetFrame;
It provide following features.
- Click to target your focus or your focus's target.
- Shows your focus's health and mana.
- Shows your focus's target.
- Shows cast bar of your focus.
- Supports Click-Casting such as Clique addon by utilizing ClickCastFrames.
- Movable by dragging the title tab.
- Supports MobHealth.


---------------------------------------------------------------
2. WHAT IS "focus"?
---------------------------------------------------------------


The "focus" is a new feature of WoW API 2.0.
Basically you can use "focus" as a second target.
It works in similar way as your real Target
and allows you to use DOUBLE targets at the same time. (essentially)

From API 2.0 Changes:
> * There is a new unit "focus" which behaves like target,
> the "PLAYER_FOCUS_CHANGED" event is fired when it is changed,
> and you receive unit events for this unit.

> * Spell casting and targetting (including focus) are only allowed
> using secure templates or special slash commands (not /script).



---------------------------------------------------------------
3. HOW TO USE "focus"?
---------------------------------------------------------------


You can set "focus" by using new standard Keybinding "Focus Target" or
by using new macro command "/focus" with target name or target id.
Another new standard keybindings "Target Focus" will change your target
to your focus. For example, you don't need to remember which mob is
your "sheep" to poly again.

Also you can use a keyword "focus" as a target id like "player",
"target", "party2", etc.

Example1: You can assist your focus by this macro.

/assist focus

You may want to focus your main tank/main assist if you will do DPS.
Or focus raid boss and 'assist' it if you are healing.


Example2: You can cast your Earth Shock on your focus by this macro.

/cast [target=focus] Earth Shock

You can watch spell casting bar on FocusFrame.


---------------------------------------------------------------
4. COMMANDS
---------------------------------------------------------------

FocusFrame has a few slash commands;

/focusframe scale <num> (Changes size of FocusFrame window.)
/focusframe reset (Reset window position.)
/focusframe lock (Prevent dragging the frame by accident.)
/focusframe unlock (Allows to move again.)

If your screen space is limited, try smaller window size:
/focusframe scale 0.7

When you accidently lost FocusFrame from your sight, reset it's
position and FocusFrame will appear again at the center of screen.
Version 2.5.2
Updated for patch 3.2 .

Version 2.5.1
Now saves precise frame position in saved variables to fix
erroneous behavior of positioning and scaling while scale is not 1.

Version 2.5.0
Updated for WotLK 3.1.0
Copyed several new functions from Blizzard's TargetFrame.

Version 2.4.5
(Changed old function names)

Version 2.4.4
Bug fix: Debuff icons sometimes displayed target's debuffs instead of focus's.
Bug fix: Sometimes failed to show Castbar after loading.

Version 2.4.3
The last version 2.4.2 was broken;
It was not showing focus's name, debuffs, etc on the name bar.

Version 2.4.2
Fixed nil value error.

Version 2.4.1
Updated for WotLK beta 9061.
Now disables and replaces Blizzard's FocusFrame.

Version 2.4.0
Updated for WotLK beta.

Version 2.3.6
TOC updated for WoW 2.4 .

Version 2.3.5
Fixed slash command "/focusframe hidewhendead" so that it respects Saved Variables.
Restored dependency on the standard Interface option "Show Enemy Cast Bar".
(which I removed hastily on version 2.3.4 .)

Version 2.3.4
Added slash command "/focusframe hidewhendead" to toggle the new function introduced on 2.3.3 .
Suports WoW patch 2.4 PTR.

Version 2.3.3
Added additional condition so that FocusFrame will be hidden only when focused target is dead AND is enemey.

Version 2.3.2
FocusFrame will be hide when focused target is dead.(Finally!)
Added warning message for when too big scale argument is passed for /focusframe scale command.
Added warning message for when user tried to change frame scale in combat.

Version 2.3.1
Fixed broken MobHealth support.

Version 2.3.0 (<- Skipped 2.2.0 to avoid confusion)
Updated for WoW client version 2.3 .

Version 2.2.1 (<- oops, this is typo. This version is actuallly 2.1.1)
Fixed a potential nil error.

Version 2.1.0
Updated for WoW client version 2.2.0 .
Added slash commands /focusframe lock and /focusframe unlock.

Version 2.0.2
Fixed a bug; tooltip of buff/debuff icons were not correctly updated. (Thanks to Alestane)

Version 2.0.1
Fixed a nil concatenate error at line 852. (Thanks to JMHammer)

Version 2.0
Mimics new Target frame of WoW client 2.1 ;
Displays maximum 32 buff icons.
Displays buff/debuff timer.
Mobhealth support added.

Version 1.3
Added slash command /focusframe reset -- which reset window position to center of screen.
Supported silver dragon decoration for rare-elite mobs.

Version 1.2
Added slash command /focusframe scale <num> -- which changes size of FocusFrame.

Version 1.1
Fixed broken initialization. FocusFrame window is now really displayed.

Version 1.0
First release. But initialization was broken.
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
2.5.2
13kB
Tageshi
08-04-09 09:15 AM
2.5.1
13kB
Tageshi
04-25-09 10:41 AM
2.5.0
13kB
Tageshi
04-14-09 06:29 AM
2.4.4
12kB
Tageshi
10-17-08 03:37 AM


Post A Reply Comment Options
Old 12-21-12, 09:48 PM  
moot0o
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I love this addon because you can inspect your focus and follow. Is it possible to remove the Focus title to show nothing like blizzard focus frame?
moot0o is offline Report comment to moderator  
Reply With Quote
Old 11-02-12, 08:07 PM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Re: FocusFrame modification question

You need to get Blizzard's FrameXML sources and looking into FrameXML/PlayerFrame.lua
I don't suggest trying to mimic my FocusFrame for this specific purpose.
My original FocusFrame was just a modification from Blizzard's TargetFrame.
So I think you will be able to do the same for PlayerFrame.

Originally Posted by Spyro
Tageshi I want to ask you a question about a FocusFrame modification I want to code, since you are a expert on the matter. I want to make the FocusFrame to look like the PlayerFrame (with the portrait on the left, instead of the right), basically "invert" the FocusFrame.

The purpose of that modification is to create the possibility of having a cool and symmetrical UI for people who use TargetFrame on the left and FocusFrame on the right (very common on high level PvP). This is an ASCII of the idea:

Code:
Defaut:  Target   Focus
           ===O   ===O

Mod:     Target   Focus
           ===O   O===
I already have some experience coding addons.
Can you give me some advice on how should I do it or what documentation should I study for the project?
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 11-02-12, 07:01 PM  
Spyro
A Deviate Faerie Dragon
 
Spyro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 12
Uploads: 3
Question FocusFrame modification question

Tageshi I want to ask you a question about a FocusFrame modification I want to code, since you are a expert on the matter. I want to make the FocusFrame to look like the PlayerFrame (with the portrait on the left, instead of the right), basically "invert" the FocusFrame.

The purpose of that modification is to create the possibility of having a cool and symmetrical UI for people who use TargetFrame on the left and FocusFrame on the right (very common on high level PvP). This is an ASCII of the idea:

Code:
Defaut:  Target   Focus
           ===O   ===O

Mod:     Target   Focus
           ===O   O===
I already have some experience coding addons.
Can you give me some advice on how should I do it or what documentation should I study for the project?
Last edited by Spyro : 11-02-12 at 07:07 PM.
Spyro is offline Report comment to moderator  
Reply With Quote
Old 10-22-12, 01:39 PM  
merola
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
Re: Version 2.5.3

I'm still using this great addon so thanks very much for updating it for MoP

Originally Posted by Tageshi
Version 2.5.3
Updated for Mist of Pandaria for someone still using this addon.
merola is offline Report comment to moderator  
Reply With Quote
Old 08-31-12, 06:34 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Version 2.5.3

Version 2.5.3
Updated for Mist of Pandaria for someone still using this addon.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 03-19-10, 03:22 AM  
Khaira
A Kobold Labourer

Forum posts: 0
File comments: 43
Uploads: 0
A bit late I know, but let me say thank-you for providing this addon while it was needed.
Khaira is offline Report comment to moderator  
Reply With Quote
Old 01-01-10, 02:27 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
The duty at the end

Blizzard's default focus frame in WoW patch 3.3 is now exactly as good as my FocusFrame addon and almost exactly looks same. (Don't forget to enable "Large Focus Frame" option!)
The duty of my FocusFrame are finally at the end on this patch.

And there is no reason to continue to use my FocusFrame. I recommend you to disable my addon.

Thank you very much everyone for using my FocusFrame that long.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 08-04-09, 09:32 AM  
JMHammer
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 308
Uploads: 1
Tageshi- Thanks for keeping FocusFrame working. It's a significant improvement over the game's default focus frame.
JMHammer is offline Report comment to moderator  
Reply With Quote
Old 04-25-09, 12:24 PM  
Lombra
A Flamescale Wyrmkin
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 119
File comments: 270
Uploads: 25
Great, thanks.
__________________
Grab your sword and fight the Horde!
Lombra is offline Report comment to moderator  
Reply With Quote
Old 04-25-09, 10:42 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Version 2.5.1
Now saves precise frame position in saved variables to fix
erroneous behavior of positioning and scaling while scale is not 1.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 04-24-09, 03:29 AM  
Lombra
A Flamescale Wyrmkin
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 119
File comments: 270
Uploads: 25
Alright, it seems that the repositioning I'm experiencing isn't due to rounding fractions, however. It moves like 10-20 pixels every time. (both horizontally and vertically, I think)
__________________
Grab your sword and fight the Horde!
Lombra is offline Report comment to moderator  
Reply With Quote
Old 04-23-09, 11:43 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Originally posted by Lombra
Hello,
I love your addon, but it seems that the frame is moved slightly on every login (?), when using a scale != 1.0. I assume this is because of the code in TgFocusFrame_SetScale. Is there any chance you could "fix" it?

Thanks
Good report. I confirmed the problem.

It's actually no fault of TgFocusFrame_SetScale;
Current WoW client rounds frame coodinate values and
drop the fraction of them when logging out.
That's how small move happens.

Maybe it's extremely tricky to fix this.
I will try to find a way.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 04-22-09, 12:31 PM  
Lombra
A Flamescale Wyrmkin
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 119
File comments: 270
Uploads: 25
Hello,
I love your addon, but it seems that the frame is moved slightly on every login (?), when using a scale != 1.0. I assume this is because of the code in TgFocusFrame_SetScale. Is there any chance you could "fix" it?

Thanks
__________________
Grab your sword and fight the Horde!
Lombra is offline Report comment to moderator  
Reply With Quote
Old 04-14-09, 06:38 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
FocusFrame 2.5.0 for patch 3.1

Version 2.5.0
Updated for WotLK 3.1.0
Copyed several new functions from Blizzard's TargetFrame.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 11-08-08, 05:59 PM  
koshiru
A Kobold Labourer

Forum posts: 1
File comments: 29
Uploads: 0
Re: Re: Re: Re: Version 2.4.4

Originally posted by Niobium
Well, amusingly enough--I went through this, and couldn't get it to happen. And now, it's not happening at all.

Thanks anyways. :>
I have this weird frame glitch happening. I think the only thing that could conflict with this addon is FluidFrames. Everything else I use is definitely unrelated.
Last edited by koshiru : 11-08-08 at 06:00 PM.
koshiru is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: