Thread Tools Display Modes
12-10-10, 07:46 AM   #1
Nitewolf121
Premium Member
Join Date: Mar 2008
Posts: 1
Highlight Border on Aggro

Using oUF_Aftermathh as a base layout and customizing some things to do what I want. First time using oUF though so I'm guessing and testing on a lot of things.

When a player casts and I can interrupt it there is a highlight around the border of the cast bar for target and focus that makes it very noticeable and easy for me to get any interrupt off in time.

I would like to do something similar to my player frame for when I get aggro, have like a red highlight or something pop up letting me know that I'm being attacked.

I have no problem editing existing items, but I don't know how to create something new yet, any suggestions on where to start or is this even possible. I know there are addons that let me know about aggro but I want to keep my screen clean, so a simple border highlight would be much nicer.
  Reply With Quote
12-10-10, 08:10 AM   #2
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
oUF has a built in Threat element, but this is targeted at displaying an icon instead of changing a border/background colour.

You can take a look at the wiki page here : https://github.com/haste/oUF/wiki/element---threat-icon
and the code here : https://github.com/haste/oUF/blob/ma...nts/threat.lua


Try adding a threat icon to your layout, just to get familiar with the addition of new elements into your layout.
Then try writing an override routine so that you can change background/border element colours instead of showing/hiding a threat icon.
  Reply With Quote
12-10-10, 08:12 AM   #3
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
This functionality is included in oUF_PredatorSimple, you can have a look into the files and merely copy-paste this.

The according functions are in the core.lua-file.
__________________
  Reply With Quote
12-12-10, 03:24 PM   #4
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
you chould also do

Code:
    If you want you recolor the Border (for aggrowarning or similar) you can make this with this little trick
    
        ColorBorder(myFrameName, R, G, B)
but i have no idea how to work it further..
  Reply With Quote
12-13-10, 05:34 AM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
oUF_Phanx includes a border-coloring highlight module that should be pretty much plug-and-play with any layout.
  Reply With Quote
12-13-10, 07:10 AM   #6
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I assume if he is using oUF_Aftermathh, he would have to stick with ColorBorder(myFrameName, R, G, B), though. Since all the borders in there are created with !Beautycase and that's the code included in it, which makes it possible to access the color from within functions like threat or debuff highlight.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
12-13-10, 01:38 PM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
as i said i have no knowledge how to fix this, but.. its somthing i've really wanted for very long.. ) i've tryed somtimes.. but yeah, it was fail!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Highlight Border on Aggro


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