[TEMPLATE] Icon with extra text area
WEAKAURA Updated Feb 21st 2017 User asakawa Views 687 Comments 2 Stars 5
(2 texts, 1icon...?)

Note: See the whole collection: https://wago.io/Vkp4i1tXf

This is a bare template for an Icon type aura with no trigger or conditions (you add those), but with an extra, fully customisable, text area added.

Display settings for this text area are found in the Actions > On Init > Custom area.

Within those settings there's two options for the actual text displayed. You can use the "Simple Text Output"; this works very similarly to the regular text box for icons in the Display tab, and accepts some of the usual placeholders (%s, %p, etc.). Alternatively, with the Simple Text Output left empty, you can use a "Custom Function" (positioned just below in the settings) for more complex or dynamic outputs.

NOTE: The extra text is actually sent via the Custom Text box in the Display settings. As long as the "%c" remains in that box you can add to it as you like without any issues. For example if you want the default icon text to show stacks then you would use "%c%s" or it could say "%cPepe" and the normal text would output "Pepe" while still sending the Alt Text. Just leave the "%c" in there somewhere.

If you want to use a Custom Function for the regular icon text this is fine too. just leave the first line of the custom function as it is and feel free to return whatever you like after that.

_________________________
Update (13/12/16): Now supports rotation of the text.
Update (05/12/16): Now has simple text input (not just a custom function) and also supports placeholders (e.g. "%p", etc.)
General UtilityNon-CombatRaid LeadingDamage DealingHealingTankingPvE UtilityPvP Utility
Tehr's RaidCDs, ExternalCDs, UtilityCDs, AoECCs, RezCDs, & Interrupts
WEAKAURA Updated Feb 21st 2017 User Tehr Views 102,936 Comments 75 Stars 121
Hey guys, if you know about a Talent or Artifact Trait that changes the CD of an ability (no Honor Talents, please) and I have not already added tracking for it, please either comment here or send me a message on Discord (Tehr#5246, Discord is much faster) and I'll update this ASAP!


Delete or rename the old version when updating to a new version! Not doing so will cause scaling to mess up.


DESCRIPTION:

DO NOT DELETE THE BACKGROUND
, see adjustments below on how to hide it.

This WeakAura displays players' names and their associated abilities. Currently tracks every External CD, Utility CD, Raid CD, AoE Stun, Battle Rez, and Interrupt that I find important enough to track (or know how to track... looking at you, pet classes).

If a player is dead, the CD on their ability (or "READY", if it's available) will turn to gray so you know what you can and cannot call for.

If a player has a talent or artifact trait selected that reduces the CD on a certain ability, there will be a "+" displayed after the ability name to indicate this (e.g. "Grasp+" instead of "Grasp" if a Blood DK has Tightening Grasp as a talent).

To reset the aura, click the small "R" button in the top right corner (when maximized) and select which section you wish to reset.

To minimize the entire aura, click the small "-" button in the top right corner. Once the aura is hidden, click the "show" button in the bottom left corner to display it again.

ADJUSTMENTS:

To disable any of the sections (External CDs, Raid CDs, Utility CDs, AoE CC, Battle Rezzes, or Interrupts), go to "RaidCDs_NamesText" and change "true" to "false" for the sections you wish to disable (e.g. to disable Interrupts, change "local show_allInterrupts = true;" to "false;").

To add artifact support, e.g. if you know a Protection Paladin that has the "Sacrifice of the Just" Artifact Trait, a Retribution Paladin with the "Protector of the Ashen" Artifact Trait, a Holy Paladin with the "Blessings of the Silver Hand" Artifact Trait, or a Discipline Priests with the "Pain is in Your Mind" Artifact Trait, put his or her name in brackets and quotes inside the curly brackets at the top of the "RaidCDs_GroupPoll" display text and then indicate how many points they have allocated by adding "= 1", "= 2", or "= 3" (e.g. local paladinWithTraitName = { ["Tehr"] = 1 }) and the code will take care of the rest. Note that because Paladins can only get one point in "Sacrifice of the Just", adding any other number besides "= 1" will cause Blessing of Sacrifice to be treated as if the Paladin did not have the trait. Unfortunately, the same applies to the other Artifact Traits with 4 or more points (even though you can get more than 3 points with Relics, I have to add quite a bit of code and the relics are often not desirable anyway).

To change how high the background scales (if you change the font size), go to the very bottom of "RaidCDs_NamesText" and changing the numbers to suit your font. The first number ("lineCount * 11") will generally match up to the font size you choose (so increase it to 14 if you set the font to size 14), and the second number (" - 10) is to make adjustments depending on characteristics of the font you choose.

To hide the background, or to adjust its darkness, go to "RaidCDs_Background", and change the alpha of the background color. Currently set to 50% alpha, 0% is invisible and 100% is pure black. Deleting the background entirely will disable the ability to minimize the aura.

To display Interrupts/AoE CCs/Battle Rezzes in raid (defaults to Hidden when in a Raid, Displayed everywhere else), go to "RaidCDs_NamesText" and change "shows_allInterrupts_inRaids" to "true".

To display Blessing of Protection (BoP) in the External section (displays in the Utility section by default), go to the "RaidCDs_GroupPoll" aura and change "BoPisUtility" to "false". Note that if you get a lot of lag when editing the WA, it is recommended you copy everything (ctrl-A ctrl-C) and edit it in a text editor like Notepad++,

To adjust how far in names are indented, go to "RaidCDs_NamesText" and change how many spaces are in the local variable "raidCDsIndentAmount". You can choose between 0 (no indent, just leave the quotes "") and approximately 7 (any more and the names start overlapping with the CD name). Default is two spaces.

To make the aura grow downwards instead of upwards, change the Anchor Point of NamesText, Background, CDText, and TimeText to "Top Left" instead of "Bottom Left". It's likely that the aura will no longer be aligned properly, so keep in mind that you need to adjust it slightly after changing the anchor. It is also recommended that after you adjust the aura to your liking, you move the "RaidCDs_ButtonHandler" to anchor point of the aura.

To remove the buttons, go into RaidCDs_ButtonHandler --> Actions tab --> On Init, uncheck the "custom" button, and then reload your UI.

NOTE:
Note that this WeakAura was originally written by Yuqii and can be found here. I've been heavily modifying this over the last two years, and have permission from Yuqii to continue to publicly work on this aura.

KNOWN BUGS:
Does not track Warlock Fel Hunter's Spell Lock ability or the three Beastmaster Battle Rezzes (Crane, Moth, Quillen).

LIST OF TRACKED ABILITIES:
COMBAT RESURRECTIONS

Raise Ally
Soulstone
Rebirth
Reincarnation


INTERRUPTS

Kick
Pummel
Skull Bash
Mind Freeze
Consume Magic
Rebuke
Wind Shear
Spear Hand Strike
Muzzle
Counter Shot
Counterspell
Silence
Solar Beam
Arcane Torrent


RAID CDs

Divine Hymn
Tranquility
Ancestral Guidance
Commanding Shout
Healing Tide Totem
Spirit Link Totem
Power Word: Barrier
Revival
Aura Mastery
Aegis of Light
Darkness
Ancestral Protection Totem
Vampiric Embrace


EXTERNAL CDs

Nether Bond
Blessing of Sacrifice
Blessing of Spellwarding
Life Cocoon
Pain Suppression
Ironbark
Safeguard
Guardian Spirit


UTILITY CDs

Blessing of Protection
Stampeding Roar
Symbol of Hope
Wind Rush Totem
Leap of Faith
Innervate


AOE CCs

Lightning Surge Totem
Shadowfury
Summon Infernal
Binding Shot
Leg Sweep
Ursol's Vortex
Supernova (not a stun but yolo)
Mind Bomb
Shockwave
Chaos Nova
Gorefiend's Grasp
Sigil of Chains
War Stomp


CHANGELOG:
2/21/2017
Added a Raid Battle Rez counter when in a raid encounter (thanks Krazyito for the code and help!)

2/16/2017
Fixed a small bug where Spellward wouldn't un-track if you specced out of it, and fixed some problems with the buttons

1/20/2017
Added Arcane Torrent (Blood Elf) and War Stomp (Tauren)

1/19/2017
Fixed a bug where mages swapping from Arcane to another spec would still display Supernova, and added a note about "Blessings of the Silver Hand" in the code

1/17/2017
Now tracks "Blessings of the Silver Hand" for Holy Paladins, and now lets you choose whether BoP is displayed in External CDs or in Utility CDs (designed for tanks that display External CDs and hide everything else but still want to see BoP)

1/11/2017
Changed the cooldowns of Aegis of Light, Gorefiend's Grasp, and Sigil of Chains. Removed Nether Bond

1/8/2017
Added a minimize and maximize button, and a reset button (left click to choose which section to reset, right click to reset all sections), and you now have the option to track Ankh but hide the rest of the Battle Rezzes while in a raid

1/7/2017
Added "Protector of the Ashen" Artifact Trait for Ret Pallies (thanks Lucivero), fixed "Pain is in your Mind" Artifact Trait tracking for Disc Priests (it wasn't properly reducing the CD), and added a way to display Battle Rezzes in raids (I high recommend you leave this disabled since Battle Rez CDs are done on a group-basis, and a player's individual CD doesn't matter)

1/4/2017
Fixed "Sacrifice of the Just" Artifact Trait for Prot Pallies, and made it so the aura displays sample text when you have the options open and are in a group alone (so you can make adjustments without sitting in a party)

12/31/2016
Ankh should now be working (I was tracking the wrong SpellID before), and you should no longer receive errors if you delete the Background

12/15/2016
I broke some stuff in the 12/12 update (whoops!), that stuff is now fixed; by proxy, Crowd Control is in its own section now (if you want it back in UtilityCDs, tell me). Also, Gorefiend's Grasp and Sigil of Chains are now in the Crowd Control section. Lastly, I fixed the error that popped up when a player was unsuccessfully inspected (should no longer get any errors from this, it will ignore inspect errors and continue).

12/12/2016
I've added in AoE stun abilities to the UtilityCDs section; this section has similar settings to the Interrupts section, and will by default display only when 1) the player is not in a raid, or 2) show_aoeCCs_inRaid is set to true.

12/8/2016
I've added the ability to manually reset the WA (read the description), in addition to adding Combat Resurrections, as well as some back-end improvements.

10/15/2016
Due to popular request, Blessing of Protection is now a Utility CD instead of an External CD.

10/12/2016
By default now only displays Interrupts when NOT in a Raid. You can still override that setting and disable Interrupts permanently, and additionally you can choose to display Interrupts in raid if you'd like (change "shows_allInterrupts_inDungeonOnly" to "false" if you want Interrupts to be displayed in Raids).

10/2/2016
I am temporarily removing support for Protection Paladin's artifact trait that displays Sac with reduced cooldown until I find a solution to a bug that causes the cooldown to never display.

9/17/2016
Bug-fixing! Turns out Stampeding Roar was not being correctly tracked if the player did not have the Guttural Roars talent (love me some SpellID changes [/meme]), which by extension meant that Stampeding Roar was never tracked for Feral Druids.

9/11/2016
Some minor bug-fixing (recently started getting a lot of errors and I'm not sure why, but the WA still functions just the same as normal), as of now you can actually disable External CDs without fucking up the formatting.

8/29/2016
Now works for non-English clients (I THINK!). If you have any issues with a language not working let me know. Note that this does not mean that the display will be translated (it will still display CD names in English), it won't just error out in a non-English client (or simply not display any CDs).

8/27/2016
Now tracks Guardian Angel talent, Sacrifice of the Just artifact trait, and Pain is in Your Mind artifact trait. However, the two artifact traits must be tracked manually until I figure out how to find the information I need from the inspect API.
General UtilityRaid LeadingHealingTankingPvE UtilityDungeonsPvP Utility