Download
(4Kb)
Download
Updated: 12-03-08 03:31 AM
Pictures
File Info
Updated:12-03-08 03:31 AM
Created:unknown
Downloads:3,379
Favorites:18
MD5:

ScudThreat

Version: 1.4.7
by: Scudmarx [More]

A very minimal threat display.

Will not display if you have no threat on your target or if you are tanking with a clear threat lead.

If you are tanking but there is a danger of losing aggro, it will warn you. If you aren't tanking it will display your threat as a percentage of the amount needed to pull aggro, and will warn you if you are getting close to this.

Will display where you stand in relation to the main tanks' threat.

ScudLight can be used as a LoadManager for this AddOn.



--- This bit's quite technical ---


You can use this to display anybody in relation to you, not just the MTs.

To do this, use the slash command /scudthreatfunc <function>

This will cause you to display anybody in your group for whom <function> returns true. You can call the unit's name as a variable 'a'. Here are some examples:

Code:
/scudthreatfunc return true;
Will let everybody appear on your list.

Code:
/scudthreatfunc return UnitClass(a) == "Rogue";
Will display all rogues.

You can reset this to the default (Main Tanks) by leaving <function> blank. Also, note that only the highest 5 people will ever be displayed (not including yourself).

Please be careful with this functionality. It runs this function fairly often; on your head be it if you get error-spammed .

When you use this, it will highlight players who match a second test. By default, it highlights players who are not MTs. So if you were to use the 'return true;' test above, you would be able to see who on your display is meant to be there and who isn't. You can use
Code:
/scudthreathlfunc <function>
to change the highlight test, and again leave it blank to reset to default (not a Main Tank). It works just the same as the previous one.

1.4.7 - Fixed a bug that would spam "'Unknown' is not in your party." errors. Added highlighting functionality.

1.4.6 - Fixed a bug where players were displayed out of threat order. Prettied up the options menu a bit.

1.4.5 - Fixed another bug (the same one really) with the sort function.

1.4.4 - Fixed a bug with the sort function.

1.4.3 - Altered display logic again. Fixes minor bug resulting from unexpected Blizz functionality.

1.4.2 - Included calls to null functions 'ScudThreat_IterateCallPre(i)' and 'ScudThreat_IterateCallPost(i)' either side of updating ScudThreat.ThreatTable[i].

1.4.1 - Fixed the check for whether to display anything.

1.4.0 - Reworked a bunch of code. Allowed the Main Tanks function to be customised.

1.3.8 - 'Default' button correctly resets the frame's location. Silly me.

1.3.7 - Primary Threat pointer is now a sexy icon.

1.3.6 - Text size now configurable. ('version b' of this repretties something I uglified)

1.3.5 - Main Tanks display is improved another little.

1.3.4 - Main Tanks display is improved a little.

1.3.2 - Displaying Main Tanks is now optional, defaulting on.

1.3.0 - Now detects Main Tanks and displays your standing in relation to them.

1.2.1 - Now says xx% instead of just xx. True story.

1.2.0 - Frame movable via blizzard options menu.

1.1.0 - More helpful whilst tanking, better warning thresholds when not, and takes even less memory.
Optional Files (0)


Post A Reply Comment Options
Unread 10-11-08, 08:58 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
Ah, but the Blizzard Interface frame presents a problem in itself - it can't be moved (why Blizzard why). So I'm stuck with a "Drag me to move" box that I can't get to because this giant frame is in the way, and closing the menu re-locks the frame.

Even a basic toggle lock slash command would do, or whatever works best.


Some less important features that will probably come up, some being objectionable as to it being minimalistic - changing the size/scale of the font, changing the colors (at least I think it changes colors, haven't been able to test with anything but treants so far), typeface, and "Danger!" messages, all without screwing with the base file. These aren't so big to me personally, but people love customization, and I don't think it would add too much to the memory usage (correct me if I'm wrong)

Still, awesome mod. I'll be happy to do away with the chunks of bars from the past, and have all the threat info I really need in just a couple of smooth digits.

Edit: Messed around with yellow/red coloring and Danger! warning. Nice and clean. Could use a short (1s) Aggro! message when you gain Aggro if it's feasible for the code.
I originally had the movement toggling as a slash command, but I prefer doing it with the menus, I may put them back in if I get more feedback wanting it. As for the frame not being movable because it's behind the options frame, this shouldn't be the case, I did make it pop to the front when it shows itself. I'll investigate further, it's probably not tough to fix if I can repeat it. Expect a new build in a short while I guess, with one or the other.

As for the aggro message, I don't think it's worth it. The number turns yellow then orange and gets bigger and bigger when you approach aggro, which is really what the warning is. I would rather leave it like this and let people figure out that big, yellow text and a big number is a bad thing, rather than explicitly saying 'stop making threat, idiot!'.

Something I'm aware of, which is really the reason for keeping this addon to its bare-bones, is that the default Blizzard UI is already perfectly good for doing what I'm doing here - the only thing mine does is essentially put the threat number some place more visible. A knock-on from this is that things like your 'aggro warning' are already done better by Blizz than I could ever do them. So I guess what I'm saying is, turn on the Blizz version if you want all the useful messages popping up telling you what to do, I personally run this mod alongside the Blizz one.

Thanks again for the feedback, it's hugely helpful .
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 05:33 PM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
Ah, but the Blizzard Interface frame presents a problem in itself - it can't be moved (why Blizzard why). So I'm stuck with a "Drag me to move" box that I can't get to because this giant frame is in the way, and closing the menu re-locks the frame.

Even a basic toggle lock slash command would do, or whatever works best.


Some less important features that will probably come up, some being objectionable as to it being minimalistic - changing the size/scale of the font, changing the colors (at least I think it changes colors, haven't been able to test with anything but treants so far), typeface, and "Danger!" messages, all without screwing with the base file. These aren't so big to me personally, but people love customization, and I don't think it would add too much to the memory usage (correct me if I'm wrong)

Still, awesome mod. I'll be happy to do away with the chunks of bars from the past, and have all the threat info I really need in just a couple of smooth digits.

Edit: Messed around with yellow/red coloring and Danger! warning. Nice and clean. Could use a short (1s) Aggro! message when you gain Aggro if it's feasible for the code.
Last edited by level12wizard : 10-11-08 at 07:35 PM.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 01:55 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
I like the simplisitic thought and visual display of this, but it's a pain to move around. There doesn't appear to be any option to move it other than messing with the files, and there's no way to display it unless you're in combat with another person/pet.

Just a little customization and it's perfect.

I also think the decimal places aren't worth displaying, they're distracting if anything.
You will find that in the new build I have made these changes:
- The position is now configurable going through the options menus. It will obviously show you where it is whilst you move it.
- I have ditched the decimal places.

There remains no easy way to display it unless in combat with a friend, other than its appearance whilst you move it around, but I think that was what you wanted.

Thanks very much for the feedback!
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 07:31 AM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
I like the simplisitic thought and visual display of this, but it's a pain to move around. There doesn't appear to be any option to move it other than messing with the files, and there's no way to display it unless you're in combat with another person/pet.

Just a little customization and it's perfect.

I also think the decimal places aren't worth displaying, they're distracting if anything.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: