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,835
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 08-31-07, 01:14 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Originally posted by Hagarken
Hi,

First of all, I love your mod

Just one little request. Would it be possible to add add a clearfocus button (a little red X or so) ? That would be easier then typing /clearfocus manually or making a macro (and wasting a button) for it.

Thanks
Good idea.
I'm going to study how to clear focus using secured template.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 08-31-07, 01:15 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Originally posted by 0Blackmage0
Great addon!! I was just wondering if there would be any way to add support for SimpleUnitFrames or what im really after is to have the little class icon added like it is on the regular target frame..
It seems SimpleUnitFrams have support for my FocusFrame??
I don't know as I didn't try that addon though.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 09-08-07, 12:43 PM  
Mizterpink
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
very nice! can we get a white glow?

Is it possible to add a white glow to the portrait like the white glow that normaly displays when you have a focus target selected?

I have My focus frame moved to right next to my current target portrait and think it would be easier to tell which is which at a glance. + it would add consistency.

Or maybe an idea how I can copy paste the "glow code" into the mod?
Last edited by Mizterpink : 09-08-07 at 03:20 PM.
Mizterpink is offline Report comment to moderator  
Reply With Quote
Old 09-25-07, 09:16 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Re: very nice! can we get a white glow?

Originally posted by Mizterpink
Is it possible to add a white glow to the portrait like the white glow that normaly displays when you have a focus target selected?

I have My focus frame moved to right next to my current target portrait and think it would be easier to tell which is which at a glance. + it would add consistency.

Or maybe an idea how I can copy paste the "glow code" into the mod?
"glow code" is in TargetFrame.xml of blizzard's files in FrameXML.
You can copy & paste "TargetFrameFlash" Texture tag block from TargetFrame.xml into the lines just before "FocusFrameBackground" Texture tag block of FocusFrame.xml.

You can get blizzard's TargetFrame.xml by using AddOn Kit.
See Support Tools page of www.blizzard.com or
http://www.blizzard.com/support/wow/?id=aww01669p
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 09-25-07, 09:20 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
FocusFrame 2.1.0 released. (untested!)

I have released FocusFrame 2.1.0 .
This release includes a quick fix for WoW client 2.2.0, but it's not tested. (The servers are not online yet!) Please use it with caution.

Version 2.1.0
Updated for WoW client version 2.2.0 .
Added slash commands /focusframe lock and /focusframe unlock.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 09-26-07, 03:00 AM  
Sterling72
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: FocusFrame 2.1.0 released. (untested!)

Originally posted by Tageshi
I have released FocusFrame 2.1.0 .
This release includes a quick fix for WoW client 2.2.0, but it's not tested. (The servers are not online yet!) Please use it with caution.

Version 2.1.0
Updated for WoW client version 2.2.0 .
Added slash commands /focusframe lock and /focusframe unlock.
Add-on is functional in 2.2.0, but "Target of Target" doesn't appear to display on targeted mobs other than focused mob. Shows on the FocusFrame fine, but not on the standard target frame for mobs even when no target is /focus'd.

Players still show fine.

Bug, or am I doing something wrong?
Sterling72 is offline Report comment to moderator  
Reply With Quote
Old 10-01-07, 06:47 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Re: Re: FocusFrame 2.1.0 released. (untested!)

Copying from http://www.curse.com/downloads/details/5681/
Sterling72.
> Add-on is functional in 2.2.0, but "Target of Target" doesn't appear to display on targeted mobs other than focused mob. Shows on the FocusFrame fine, but not on the standard target frame for mobs even when no target is /focus'd.
I have experienced it sometimes. And sometimes not. It seems something tainting something related to TargetofTargetFrame (But not the Frame itself.) I don't know how to certainly reproduce this problem. I don't even know whether this is FocusFrame's problem or someother addon's problem.
Waiting for more certain informations.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 10-02-07, 09:53 AM  
Bl4ckSh33p
A Flamescale Wyrmkin
 
Bl4ckSh33p's Avatar
AddOn Author - Click to view AddOns

Forum posts: 100
File comments: 94
Uploads: 23
Re: Re: Re: FocusFrame 2.1.0 released. (untested!)

I have 2 addons, FocusFrame and BLASCProfiler and one of them disables the "Target" option in the rightclick menu in the chatframe. Does anyone know how to fix it or which addon causes this?
Bl4ckSh33p is offline Report comment to moderator  
Reply With Quote
Old 10-17-07, 09:59 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1176
File comments: 783
Uploads: 82
PTR 2.3 compatibility update

For PTR wow 2.3 only - don't change this for the current live version (2.2)

Change "statusBarText" -> "targetStatusText" on lines 305 and 876.

Edit1: on PTR build 7441 the UnitIsCivilian() API has been removed.
So the FocusFrame_CheckDishonorableKill() call and function must also be removed.
(\FrameXML\TargetFrame.lua does not contain that check either anymore)
Last edited by Dridzt : 10-19-07 at 09:26 PM.
Dridzt is offline Report comment to moderator  
Reply With Quote
Old 11-12-07, 10:08 AM  
zanoc
A Kobold Labourer

Forum posts: 1
File comments: 20
Uploads: 0
Could you post what lines in what files need to be changed to make the addon work in 2.3? (if any for the untiiscivilian thing?)
Last edited by zanoc : 11-12-07 at 10:09 AM.
zanoc is offline Report comment to moderator  
Reply With Quote
Old 11-13-07, 07:40 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Re: PTR 2.3 compatibility update

Originally posted by Dridzt
For PTR wow 2.3 only - don't change this for the current live version (2.2)

Change "statusBarText" -> "targetStatusText" on lines 305 and 876.

Edit1: on PTR build 7441 the UnitIsCivilian() API has been removed.
So the FocusFrame_CheckDishonorableKill() call and function must also be removed.
(\FrameXML\TargetFrame.lua does not contain that check either anymore)
Thank you for the information.
FocusFrame 2.3.0 is released now.

Note that this version is UNTESTED as WoW server is not online yet.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 11-14-07, 10:17 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
known bug on 2.3.0

FocusFrame's mobhealth support is currently broken.

That is because Blizzard suported health display in percent number on any standard UnitFrames.
I am trying to investige how to bypass it and fix mobhealth support.
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 11-24-07, 07:55 AM  
erica647
A Cobalt Mageweaver
 
erica647's Avatar
AddOn Author - Click to view AddOns

Forum posts: 209
File comments: 213
Uploads: 4
Problem with changing size

I tried changing the size of this unitframe and it disappeared off the screen. I tried issuing the reset command but couldn't get it to come back on my screen. I was finally able to get it back by deleting my lua file but would love this mod if I could get the size I want. Anyone else had this problem or tried to resize the frame? Any ideas?
__________________
Karadra
Level 80 Human Deathknight
Silvermoon/Nerfed Guild
erica647 is offline Report comment to moderator  
Reply With Quote
Old 11-24-07, 09:24 AM  
Tageshi
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 247
Uploads: 16
Re: Problem with changing size

Originally posted by erica647
I tried changing the size of this unitframe and it disappeared off the screen. I tried issuing the reset command but couldn't get it to come back on my screen. I was finally able to get it back by deleting my lua file but would love this mod if I could get the size I want. Anyone else had this problem or tried to resize the frame? Any ideas?
I didn't see any problem on /focusframe scale n command.
Any more info?
Tageshi is offline Report comment to moderator  
Reply With Quote
Old 11-24-07, 10:27 AM  
erica647
A Cobalt Mageweaver
 
erica647's Avatar
AddOn Author - Click to view AddOns

Forum posts: 209
File comments: 213
Uploads: 4
Re: Re: Problem with changing size

Originally posted by Tageshi
I didn't see any problem on /focusframe scale n command.
Any more info?
Hi and thanks for the fast response! To reproduce this, just try to resize the frame and see if it works for you since it doesn't work for me. What I see is I enter the command to resize and the frame disappears. I try to reset it but I can't get it back on my screen. The only way I can get the frame back on my screen is to delete the lua file to reset it. I hope this helps and would appreciate it if you can let me know if it's just me or if something's actually wrong. Oh and if it matters, I'm running 1600x1200 resolution and 85Hz refresh rate.
__________________
Karadra
Level 80 Human Deathknight
Silvermoon/Nerfed Guild
erica647 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: