Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(8 Kb)
Download
Updated: 08-07-09 04:59 PM
Pictures
File Info
Updated:08-07-09 04:59 PM
Created:10-24-08 09:42 AM
Downloads:22,756
Favorites:164
MD5:
AutoAspect  Popular! (More than 5000 hits)
Version: 1.10
by: Gorebag [More]
I put together AutoAspect after the 3.0 change to Aspect of the Viper. I can't tell you how many times we would be fighting a boss in ZA or something and I would realize part way through the fight that I still had Viper on and was doing half damage.

So that's where AutoAspect comes in. This is a very simple addon (my first addon, in fact) but it keeps my aspects straight

Firstly, the addon does nothing if you aren't a Hunter!

When your mana drops below a specified threshold (30% default) and don't have Aspect of the Viper on, the addon will begin throwing up messages in the "errors" frame that you should switch to Aspect of the Viper (it also plays the Raid Warning sound to get your attention). In addition, it will provide a big, semi transparent button in the center of the screen with Aspect of the Viper attached to it's click event.

Similarly, when you have Aspect of the Viper on and your mana goes above a specified threshold (85% default) the same thing happens, except that the button is for Aspect of the Hawk, and the message indicates that you have lots of mana and should switch.

New in V1.08
If you are level 75 or higher, the "big button" will be set to cast "Aspect of the Dragonhawk" instead of "Aspect of the Hawk"

New in V1.07
Some additional in-combat checks to suppress in-game interface restriction errors.

New in V1.06
All on/off commands now support toggling by simply specifying the command, so /aa tracking will set tracking off if it is on, and vice versa.
I also restructured the code to show the "Big Button" so that the addon will not attempt to show or hide the button while in combat.

New in V1.05
AutoAspect now supports using Scrolling Text mods (MSBT, SCT, and Parrot) for it's alerts. I also throttled the alerts to 1 per 2 seconds. Use "/aa sct on" to turn on Scrolling Alerts. You can also use "/aa text off" to disable the UI Error Frame alerts. You can set separate alert texts for scrolling messages (/aa lowscroll and /aa highscroll)

New in v1.04

You can now move the "big button" via slash commands. There are 3 new commands:

/aa resetpos (resets the button to the center of the screen (0,0))
/aa xpos # (set the X offset)
/aa ypos # (sets the Y offset)

The offsets are relative to the center of the screen (ie, the center is 0,0). Positive Y values move up, negative down. Positive X values move right, negative left.

Also in 1.04, the setting for playing sound is now persistent, and I added a check on the creature type detection for the targeting feature to make sure the command actually gets a creature type back.

New v1.03 Feature

AutoAspect now has a feature (disabled by default) that will automatically switch your Tracking type to the type of whatever non-friendly unit you target. The "/aa tracking on" command can be used to activate this feature, which is useful for hunters with the Improved Tacking talent.

Optional:

The "Big Button" is disablable, in which case you can click your normal aspect buttons in response to the warnings, or make a macro that says:

/click AutoAspectVisible

to have the same effect as clicking the big button.

A Note About Being In Combat

Because of restrictions placed on addons by Blizzard, an addon can't make an action button show up while in combat (nor can it change the effect that clicking on a button will have during combat), so the Big Button will only show outside of combat.

Additionally, the /click AutoAspectVisible won't be cast the expected spell while in combat (because AutoAspect can't change the frame to the spell it needs until combat ends).

For these reasons I still use normal buttons for switching aspects... the real benefit (for me) of AutoAspect is the warning about being in the wrong one

Slash Commands:

AutoAspect supports the /autoaspect (and /aa for short) slash command with the following options:

/autoaspect help <-- Displays help
/autoaspect status <-- Displays the current status of all variables
/autoaspect enable <-- Turns the addon on
/autoaspect disable <-- Turns the addon off
/autoaspect button on <-- Turns the "Big Button" on
/autoaspect button off <-- Turns the "Big Button" off
/autoaspect low # <-- Sets the "low mana threshold" to ## percent
/autoaspect high # <-- Sets the "high mana threshold" to ## percent
/autoaspect sound on <-- Turn on the RaidWarning sound
/autoaspect sound off <-- Turn off the Raidwarning sound
/autoaspect buttonsize # <-- Sets the "Big Button" to size 1, 2, or 3
/autoaspect lowtext <message> <-- Sets to message to show at low mana
/autoaspect hightext <message> <-- Sets the message to show at high mana
/autoaspect tracking on <-- Turns on "Auto Tracking Switching"
/autoaspect tracking off <-- Turns off "Auto Tracking Switching"
/autoaspect resetpos <-- Reset the position of the big button to 0,0
/autoaspect xpos # <-- Set the X offset of the big button
/autoaspect ypos # <-- Set the Y offset of the big button

-- /aa sct on - Enable Scrolling Text message output
-- /aa sct off - Disable Scrolling Text message output
-- /aa text on - Enabled UI Error Frame messages
-- /aa text off - Disable UI Error Frame messages
-- /aa lowscroll <message> - Set the Low Mana message used by Scrolling Text Addons
-- /aa highscroll <message> - Set the High Mana message used by Scrolling Text Addons


The "buttonsize" command takes a number from 1 to 3 as a parameter. Size 1 is a 64x64 pixel button, size 2 is a 128x128 pixel button (the size the button is in 1.01) and size 3 is a giant 256x256 pixel button.

As I said above, this is the first addon I've ever tried to write, so if you find bugs or unexpected behavior, please let me know and I'll try to address them.
V1.10
TOC Update for patch 3.2
Minor cleanups

V1.09
Unreleased version

V1.08
Casts Aspect of the Dragonhawk if you are over level 75, and Aspect of the Hawk at 74 and below.

V1.07
Some additional in-combat checks to suppress in-game interface restriction errors.

V1.06
Updated to only attempt to show/hide the button when not in combat to eliminate potential error messages
All commands that support on/off now supprt toggling if just the command is specified

V1.05
Added support for scrolling text addons (MSBT, SCT, Parrot)
Lots of code cleanup (Removing functions and inlining them, etc)
Throttle alert messages to 1 per 2 seconds max.

V1.04
Added checking to make sure a creature returns a creature type and not a "nil"
Added missing "aaPlaySound" to AutoAspect.toc saved variables.
Added the ability to move the Big Button via slash commands.

V1.03
Add check to shut off spam if player is mounted.
Replaced all instances of ChatFrame1 with DEFAULT_CHAT_FRAME
Updated the "results" messages to always be prefixed with "AutoAspect:"
Added auto tracking switching (Switch tracking to the type of your current target)

V1.02

Adds a number of new slash commands (see below) allowing you to toggle sound on and off, as well as set the size of the "big button" and the message displayed by the addon. Also corrects the "Ghost Spam" problem by using UnitIsDeadOrGhost instead of UnitIsDead to detect your current state of existence.

New in Version 1.03:
/autoaspect tracking on <-- Turns on "Auto Tracking Switching"
/autoaspect tracking off <-- Turns off "Auto Tracking Switching"

New in Version 1.02:
/autoaspect sound on <-- Turn on the RaidWarning sound
/autoaspect sound off <-- Turn off the Raidwarning sound
/autoaspect buttonsize # <-- Sets the "Big Button" to size 1, 2, or 3
/autoaspect lowtext <message> <-- Sets to message to show at low mana
/autoaspect hightext <message> <-- Sets the message to show at high mana

The "buttonsize" command takes a number from 1 to 3 as a parameter. Size 1 is a 64x64 pixel button, size 2 is a 128x128 pixel button (the size the button is in 1.01) and size 3 is a giant 256x256 pixel button.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
1.08
8kB
Gorebag
11-17-08 10:29 PM


Post A Reply Comment Options
Unread 01-04-09, 07:56 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
Originally posted by cyion
Hey I have a couple concerns:

The Big Button seems to be having some problems, it doesn't necessarily appear when i hit the 20% mana mark, even though i get the sound and message. The button also has a tendency to linger until we leave combat, even when you click it.

Also, is there any possibility of support for blizzard SCT as an output?

Thank you
The issues with the button are a result of the restrictions on what an addon can do during combat. Buttons can't be displayed or removed, etc.

Generally, I don't use the big button, but stick with normal buttons and rely on the alerts themselves.
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 01-04-09, 02:45 PM  
cyion
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hey I have a couple concerns:

The Big Button seems to be having some problems, it doesn't necessarily appear when i hit the 20% mana mark, even though i get the sound and message. The button also has a tendency to linger until we leave combat, even when you click it.

Also, is there any possibility of support for blizzard SCT as an output?

Thank you
cyion is offline Report comment to moderator  
Reply With Quote
Unread 12-23-08, 11:58 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
It isn't a package one, I just kind of pieced it together...

I used DynamicDiablo3orbs (Think that is the name, search here for Dyn and you should find it) for the lower portion, then used KGPanels and some of the artwork from the orbs addon to create the top bar graphics, with a shrunk down Fubar embedded in it.

The minimap is Squeenix, the bars inside the orbs window are Bartender4.

The circular buttons along the sides are collapsible menus (down to the single outsidemost button) via the "Lunar Sphere" addon (don't think it is uploaded here, but Google for "lunarsphere addon" and you should find Moongazer's addon page.

I also use Phanx chat, and Elkano's Buff Bars (on the right side)
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 12-23-08, 09:30 AM  
Savic80
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hey man nice addon, but I was wondering what UI addon your using? I have seen a few but that one looks pretty clean. So if you would be so kind as to share it with me I would apreciate it very much!
Last edited by Savic80 : 12-23-08 at 09:30 AM.
Savic80 is offline Report comment to moderator  
Reply With Quote
Unread 12-23-08, 05:11 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
Originally posted by JaceDaAce
Very simple request I hope. I would like it to pick up the fact you have the ability Aspect of the Dragonhawk and bring the button for that up instead of aspect of the hawk. Pretty please as I love this addon but would like this 1 small change thanks in advance
It already does so... (The button texture doesn't look any different, but the actual spell cast is Dragonhawk if you are level 74 or higher).
Last edited by Gorebag : 12-23-08 at 05:12 AM.
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 12-22-08, 09:54 PM  
JaceDaAce
A Black Drake
 
JaceDaAce's Avatar

Forum posts: 82
File comments: 56
Uploads: 0
Very simple request I hope. I would like it to pick up the fact you have the ability Aspect of the Dragonhawk and bring the button for that up instead of aspect of the hawk. Pretty please as I love this addon but would like this 1 small change thanks in advance
JaceDaAce is offline Report comment to moderator  
Reply With Quote
Unread 12-14-08, 05:37 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
I can work up something for Cheetah... The only reason I haven't done so already is that there are so many mods out there that do it already.

I'll see what I can work up that makes sense.
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 12-14-08, 10:07 AM  
trei
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
cheetah support

regarding the previously mentioned possible cheetah/pack support, here's another suggestion:

Let it give an alert whenever one has the speed aspects on but is not moving, or has not moved in any direction for the past.. say 3 - 5 secs .

Is such a function possible?

I reckoned most combat encounters are usually preceded by a fair amount of standing around waiting, especially just after a wipe and everyone has just ran back and are med'ing.

Also, I think it would be a good idea to be able to toggle the alerts for cheetah and pack separately.
Last edited by trei : 12-14-08 at 10:09 AM.
trei is offline Report comment to moderator  
Reply With Quote
Unread 12-14-08, 07:19 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
It does check to see if you are mounted, but I'll add flight checks and see if there is any way I can detect being in a vehicle.
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 12-13-08, 11:45 PM  
nightphall
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I think what would be nice is if it checked to see if you were mounted, on a FP or in a vehicle and stopped spamming your screen at those points. Nothing more annoying than being on a 12 minute flight or on a drake in occulus where you can't readily switch and listen to it ding at you the entire time.
nightphall is offline Report comment to moderator  
Reply With Quote
Unread 11-24-08, 03:52 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
Re: how about cheetah?

Originally posted by trei
It would be really great if you could add in support for cheetah/pack

Maybe say when I, or anyone in my party, has a hostile player or npc targetted or is being targetted.
I'll look at adding something (toggleable of course)... I know there are alot of addons that do this currently, but since it IS called "AutoAspect"

I was also thinking about adding a warning message when you don't have an aspect active. This happens to me sometimes when I use Cheetah/Pack and then mount after leaving an "indoor area"... I sometimes don't notice until I get the AA Low Mana warning that I don't have Dragonhawk on
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 11-19-08, 09:24 AM  
trei
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
how about cheetah?

It would be really great if you could add in support for cheetah/pack

Maybe say when I, or anyone in my party, has a hostile player or npc targetted or is being targetted.
trei is offline Report comment to moderator  
Reply With Quote
Unread 11-18-08, 01:07 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
Re: Aspect of the Dragonhawk

Originally posted by Chasim
I don't use the Big Button feature (just the warning), but from the notes it says 75+ for Dragonhawk but it's attained at level 74.
I actually don't use the big button either, since it can't show up during combat. I'll update the level usage for Dragonhawk in the next version, but if anyone wants to change it in the mean time, simply change line 608 from:

if UnitLevel("player") > 74 then

to

if UnitLevel("player") > 73 then

and that will use Dragonhawk starting at 74.
Gorebag is offline Report comment to moderator  
Reply With Quote
Unread 11-18-08, 12:24 PM  
Chasim
A Defias Bandit

Forum posts: 2
File comments: 86
Uploads: 0
Aspect of the Dragonhawk

I don't use the Big Button feature (just the warning), but from the notes it says 75+ for Dragonhawk but it's attained at level 74.
Chasim is offline Report comment to moderator  
Reply With Quote
Unread 11-17-08, 10:31 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 129
Uploads: 3
Re: Please replace Hawk with Dragonhawk

Version 1.08 is uploaded and contains support for Aspect of the Dragonhawk. I am currently only about halfway through 72, so I can't actually test it, but please let me know if it behaves in a manner other than expected.

(Note the Icon on the Big Button will still be the Aspect of the Hawk icon, but it should cast Dragonhawk. I don't know what icon is used for Dragonhawk yet )
Gorebag is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: