910 Commits

Author SHA1 Message Date
f8c7875501 Fixed HarmonyPower Hide Blizzard option generating errors 2016-07-22 11:45:35 -05:00
715f9584fb Fixed "Hide Blizzard" option in Holy Power module in 7.0 2016-07-20 12:42:03 -05:00
6824721947 Fixed TargetMana to match PlayerMana colors/alpha
Forgot to update this module to match the new 7.0/Legion stuff like PlayerMana was already doing. I really should be sharing all this code, but alas.
2016-07-19 23:49:54 -05:00
0ac00068b3 Added new mana types to consider 0 as "full"
For the purposes of alpha settings, 0 is "full" for several mana types, such as the new/changed 7.0 ones (astral power, insanity, fury).
2016-07-19 23:45:51 -05:00
5ca6f20944 Fixed minor inefficient texture access
Also fixed an issue where we were looking for a variable that was not declared in the scope we were looking for it in.
2016-07-19 10:11:58 -05:00
c0771ea8f4 Enabled useful debug print
Converted to use IceHUD:Debug() so that we can turn it on and off.
2016-06-07 00:35:20 -05:00
5771f990c7 Suppressed noisy debug message
This message prints constantly against training dummies, so let's just turn it off.
2016-06-07 00:35:01 -05:00
702ebbd86a Fixed Death Runes never showing up on Live
UnitPowerMax for SPELL_POWER_RUNES is 0 on live, so numRunes was 0 which was causing UpdateRuneType to throw out the update.
2016-06-07 00:34:31 -05:00
f214c945af Added second argument to UnitPower
I keep seeing things online saying the one-argument version of UnitPower has been deprecated, so I figured I'd go ahead and update my few uses of it in case it actually gets removed at some point. I haven't had any trouble with it, though.
2016-06-01 00:11:33 -05:00
debaf7f1ff Fixed Destruction Warlocks freezing on login in pre-7.0 (ticket #207)
Destruction Warlocks have a PowerMax of 1000 and apparently trying to create that many graphical frames blows something up really quick. In 7.0, everyone's runes are discrete objects, so I was trying to ensure that the graphical representations of a given power were ready at all times, but didn't consider the pre-7.0 case where this calculation would lead to an absurd number of "runes".
This change also fixes an errant CreateFrame() in UpdateRunePower() that was supposed to be self:CreateFrame(). CreateFrame() was just creating a nameless, parentless frame for no reason at all. Good job, me. This isn't C++.
2016-05-29 14:21:50 -05:00
d05c1dac18 Updated my previous change to re-enable the "tapped" feature with the new Legion API 2016-05-29 14:18:51 -05:00
aec7852011 Hacked cast lag back in for 7.0 beta
UNIT_SPELLCAST_SENT is now firing at the same time as UNIT_SPELLCAST_START which is when the client receives confirmation that a spell s/he wanted to cast has begun casting (as opposed to pre-7.0 when _SENT would fire when the client pressed the button before receiving confirmation). As per http://www.wowinterface.com/forums/showpost.php?p=314818&postcount=31, I'm now hooking CURRENT_SPELL_CAST_CHANGED to give us a slight chance of acquiring lag info. Unfortunately that event fires for just about every casting-related thing that happens (with no context/useful args at all), so we get a proper lag indicator for the initial cast, but nothing once we start chaining casts together. I guess this is something to keep an eye on as 7.0 nears release.
2016-05-29 00:45:01 -05:00
8fef3a2b8c Updated ComboPointsBar for Legion
Also fixed a very minor leak in it where a table was being generated every call to Update when the player had > 0 combo points.
2016-05-29 00:17:08 -05:00
2646481d11 Updated to hide SnD unless we have the SnD ability (which implies Outlaw spec in 7.0)
Theoretically we could reuse this module for Roll the Bones as well, but the nature of its effects makes the duration bar portion difficult and not terribly informative to the user since each of the 6 possible buffs can be activated with different durations depending on when RtB was used.
2016-05-29 00:08:03 -05:00
c75ffcc6fc Fixed error generated when gaining a max combo point
When loading into the game as an Outlaw, the mod was creating 5 slots for combo points. Switching to Assassination increases the max to 6, but the module was failing to compensate for this and causing an error instead.
2016-05-28 23:58:23 -05:00
2235364df9 Added checks for rune count changing mid-session
Right now most ClassPowerCounter child classes are doing this work themselves, but they don't need to be. Some cleanup could be done there if anyone ever felt like doing it. (I did a tiny bit with Shards and Chi, but there's more to be done)
2016-05-28 22:57:25 -05:00
a8b6f53a68 Fixed arcane charges not showing on first login 2016-05-28 22:40:06 -05:00
ba2f873b60 Updated Stagger for Legion
Also made use of the new DogTags for Stagger instead of trying to format the values ourself
2016-05-28 11:26:46 -05:00
7221e78290 Fixed error in Chi module
When signing in as a spec with Chi, an error was being thrown due to the graphical frames for chi not existing yet.
2016-05-28 11:06:51 -05:00
97d04c174a Updates to Shards for Legion 2016-05-28 02:50:10 -05:00
6f0ddb7f6d Only show AltMana for mistweaver monks in pre-7.0
I realized that my updates changed how the module worked for pre-7.0 users who were using MonkMana
2016-05-28 02:49:42 -05:00
0188a3fc0b Updating with UNIT_POWER_FREQUENT makes the bar look better 2016-05-28 02:23:26 -05:00
a3a6cbb7f4 UNIT_DISPLAYPOWER is a more foolproof way of checking if we need AltMana displayed or not 2016-05-28 02:20:43 -05:00
9ed739fb1b Fixed number of Chi not necessarily being correct on login 2016-05-28 02:18:06 -05:00
ab1ad06185 Only show Chi in Legion for Windwalker monks 2016-05-28 02:17:33 -05:00
7b3d910956 Rolled ClassMana bars into PlayerAltMana
There are too many classes that need to care about mana as a background resource in addition to whatever their primary resource is to keep creating class-specific bars, so let's just make one bar that does it all. I've done a one-time inherit of DruidMana's settings since it's the only bar that's been in a Release version that serves this purpose and should migrate its settings forward.
2016-05-28 02:16:26 -05:00
5d718a4d07 Eclipse is gone in Legion 2016-05-27 00:32:25 -05:00
b328ad0739 Changed how cooldowns are started (ticket #205) 2016-05-26 23:49:22 -05:00
b9cfe48d03 Fixed Runes not showing up on login 2016-05-26 23:41:15 -05:00
f9b4d7acbb Added Mage Arcane Charges for Legion 2016-05-26 23:11:41 -05:00
e15dc1d226 Added support for atlases
Class power counters can now use atlases for their textures instead of just texture filenames and coordinates
2016-05-26 23:11:29 -05:00
c49e0ad84a Set color for DH Fury resource 2016-05-26 21:47:31 -05:00
e219dac245 Tiny cleanup 2016-05-26 21:46:59 -05:00
1b3b9a1bb9 Added support for Insanity
Legion's Shadow Priests have a new default power type called Insanity, so now we need an additional bar to show the player's mana (which all priests still have) while in shadow spec as a priest.
2016-05-26 01:09:13 -05:00
6610de6814 Don't load Shadow Orbs in Legion
Apparently this module locks up the game client...somehow. Plus Shadow Orbs appear to be no more in Legion.
2016-05-26 00:00:12 -05:00
45a8f66249 Update Runes for Legion
Updated with the new DK rune changes so there are no longer different types of runes, just the one type. Also hooked up support for any potential changes to the max number of runes (as is present in Blizzard's RuneFrame source), but have no idea how to correctly trigger the 7th rune (or if that's even in the current build). Tested with hackery via /script commands and verified it works, so *shrug*.
2016-05-25 23:43:43 -05:00
e1e216d9dd Updated Holy Power for Legion
Hide the holy power module when not in Retribution spec in 7.0
2016-05-25 23:00:57 -05:00
3c3088aa16 Fixed error for non-rogues 2016-05-24 13:32:46 -05:00
e54c645b99 WIP Legion combo points updates
Adds support for the new 6/8 (without/with Anticipation) combo points instead of hardcoding to 5. This same treatment will need to be done to the other combo point-centric modules (SnD, ComboPointsBar).
Moved the old Anticipation extra-combo-point support to pre-Legion only. Anticipation doesn't work the same way now.
2016-05-24 02:05:12 -05:00
5fbf85811e Replaced UNIT_COMBO_POINTS with UNIT_POWER for Legion 2016-05-24 00:52:56 -05:00
9b5df60efa Removed UnitIsTapped usage for Legion 2016-05-24 00:50:14 -05:00
efc25bdb9c Hide lag bar for invalid conditions
For some interactables, such as specific quest-related objects in WoD, we never receive a SpellCastSent event, only a SpellCastStart. If, prior to that event, we ever failed a spell cast, we would have an outdated "spell sent time" saved off for a previous cast. This value would then get used due to us receiving a Start with no Sent and would cause the lag bar to fill the entire cast bar incorrectly. For these cases, we now no longer show the lag bar at all because we don't receive enough information from the game to compute one.
2016-05-18 00:04:29 -05:00
3aef209816 Use the GCD spell for calculating GCD time (ticket #204) 2016-02-03 20:25:22 -06:00
c4adadb301 Added option to ignore custom lag tolerance for lag indicators
This allows the user to override the fact that they've set a custom lag tolerance in the game's options and instead have the mod display the computed latency. (ticket #201)
2015-12-22 01:14:42 -06:00
7421f916ad Fixed "Show during cast" for classes with < 1.5s GCD
Ticket #200 - thanks nandchan!
2015-12-22 01:01:20 -06:00
45686f5a36 Fixed GCD occasionally showing when it shouldn't
Ticket #199 - thanks nandchan!
2015-12-22 00:39:39 -06:00
30f3210d30 Added optional lag indicator to the GCD module
Ticket #196 - thanks nandchan!
2015-12-20 16:25:59 -06:00
fe656f463d Lowered frame strata for the GCD bar
There's no real reason to force this bar up into the TOOLTIP strata and have it draw on top of things. It can live in 'low' like every other part of the addon.
2015-12-20 16:12:52 -06:00
b9d1447698 Placed lag bar into an appropriate frame layer 2015-12-20 16:11:52 -06:00
2c93dbc365 Fixed lag indicator on cast bars set to 'reverse'
Apparently setting the castbar to 'reverse' mode has never set the lag indicator in the correct place. Now we instruct SetBarCoord to behave differently for lag indicators.
2015-12-20 16:11:23 -06:00