|Go to Page...|
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.
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:
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
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.