Download
(13Kb)
Download
Updated: 08-31-12 06:33 AM
Pictures
File Info
Updated:08-31-12 06:33 AM
Created:unknown
Downloads:126,172
Favorites:204
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)


Post A Reply Comment Options
Unread 09-12-19, 11:39 AM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 837
File comments: 374
Uploads: 13
can we get this working in WoW Classic?
__________________
"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
Report comment to moderator  
Reply With Quote
Unread 12-21-12, 10: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?
Report comment to moderator  
Reply With Quote
Unread 11-02-12, 08:07 PM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
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?
Report comment to moderator  
Reply With Quote
Unread 11-02-12, 07:01 PM  
Spyro
A Fallenroot Satyr
 
Spyro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 16
Uploads: 5
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.
Report comment to moderator  
Reply With Quote
Unread 10-22-12, 01:39 PM  
merola
A Kobold Labourer

Forum posts: 0
File comments: 12
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.
Report comment to moderator  
Reply With Quote
Unread 08-31-12, 06:34 AM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
Version 2.5.3

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

Forum posts: 0
File comments: 39
Uploads: 0
A bit late I know, but let me say thank-you for providing this addon while it was needed.
Report comment to moderator  
Reply With Quote
Unread 01-01-10, 03:27 AM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
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.
Report comment to moderator  
Reply With Quote
Unread 08-04-09, 09:32 AM  
JMHammer
A Defias Bandit
AddOn Author - Click to view AddOns

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

Forum posts: 554
File comments: 271
Uploads: 24
Great, thanks.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 04-25-09, 10:42 AM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
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.
Report comment to moderator  
Reply With Quote
Unread 04-24-09, 03:29 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
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!
Report comment to moderator  
Reply With Quote
Unread 04-23-09, 11:43 AM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
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.
Report comment to moderator  
Reply With Quote
Unread 04-22-09, 12:31 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
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!
Report comment to moderator  
Reply With Quote
Unread 04-14-09, 06:38 AM  
Tageshi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 249
Uploads: 4
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: