29 Commits

Author SHA1 Message Date
689df94d55 Refactor repeated code into a function
I need this for an upcoming feature, and it turns out that the "new rune just became ready" feature didn't cooperate with width-growing runes anyway, so this is also a bugfix for that (I don't know that we have any width-growing power types in the game today, but still).
2023-01-15 12:40:51 -06:00
faa3d326aa Replace WowVer checks in class power counters 2022-09-18 22:43:04 -05:00
e313e679ae Basic Classic-BC support
This has been tested on Classic PTR and Retail, but only with a Rogue
character. Don't have a ton of time to do more exhaustive tests right now.

Fixes #11
2021-05-09 12:04:23 -05:00
db7d797eb2 Fixed various class power indicators using the wrong alpha sometimes 2020-05-30 15:25:02 -05:00
ba8748ecca First batch of WoW Classic compatibility updates
This has been tested on Classic with a Rogue up to level 5 using various modules and casually checked against a few level 1 classes. I'm sure there's a lot more to do here. I also made sure to test on Live.

Where possible I tried to check for API availability rather than specific client versions or program IDs. There are many cases where that's impractical, however, so version/program ID checks were used.

This was tested with:
* Ace3 @r1225
* AceGUI-3.0-SharedMediaWidgets @r61
* LibDBIcon-1.0 @v8.2.0
* LibDogTag-3.0 @v80200.1
* LibDogTag-Unit-3.0 @v80200.1-2-g93a898d-alpha
* LibRangeCheck-2.0 @v4.2.3 (with a couple of local changes)
* LibSharedMedia-3.0 @r113-alpha
2019-08-11 23:21:06 -05:00
395de299f0 Fixed shard numeric formatting incorrectly in non-Destruction specs 2018-10-03 08:20:30 -05:00
89ef91b9b3 Initial dump of BfA compatibility
Updated for:
- SPELL_POWER_* constants becoming Enum.PowerType.*
- Rank no longer existing in return values for UnitAura, UnitBuff, UnitDebuff, UnitCastingInfo, UnitChannelInfo
- UNIT_POWER event becoming UNIT_POWER_UPDATE
- UnitPopupFrames no longer existing
- Removed events: PLAYER_PET_CHANGED, UNIT_MAXPOWER, PET_BAR_CHANGED, UNIT_DYNAMIC_FLAGS
- Texture return value from UnitAura type changing (name -> id)
- All Warlock specializations using soul shards
- Death Knight rune changes

Haven't tested all classes/specializations yet, so I'm sure I missed some stuff.
Probably need to add support for the new circular cooldown wipe flourish added in the base client.
Saw a problem with cooldown flashes being delayed on DK runes becoming available that probably need to be fixed.
2018-06-06 22:57:35 -05:00
1b64adc77c Updated shard texture for Warlocks 2017-08-30 23:10:22 -05:00
35e56ebec6 Updated shard display for Destro Warlocks
Ticket #234, thanks stencil!
2017-06-17 20:38:12 -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
97d04c174a Updates to Shards for Legion 2016-05-28 02:50:10 -05:00
b066269ba0 Added feature to turn burning embers green if the player has the codex of xerrath spell. 2014-12-10 20:33:33 -06:00
07ff89e8f8 - Fixed Hide Blizzard Frame option not properly hiding and showing all Warlock Power built-in frames for all specs. 2014-10-25 18:03:34 -05:00
7d6a880623 - Cleaner method for the warlock Shards module to retrieve the current rune mode such that switching to Demonology spec and back doesn't overwrite it. (I currently force the rune mode to 'graphical' or 'numeric' for Demonology spec since nothing else makes sense at the moment.) 2013-03-21 03:03:51 +00:00
34c19c050d - Fixed a bug where the shard module could sometimes show zero runes on the graphical display after entering or exiting a dungeon. 2012-09-07 04:56:56 +00:00
348765ac00 - Now that the numeric class power frame is being placed via SetPoint instead of SetAllPoints, we don't have to worry about the parent frame's width being correct to avoid truncating the number string; so don't force-update the width on the parent frame any more.
- No longer explicitly setting the width on the class power numeric FontString either as we'll just allow it to size to the text instead.
2012-09-01 04:35:06 +00:00
e90146da28 - Added support for Soul Shards and Burning Embers major glyphs changing the total number of available shards/embers. 2012-08-29 15:23:44 +00:00
561c042fda - Fixed error on login on 4.3 servers as a Warlock. http://www.wowace.com/addons/ice-hud/tickets/147-shards-ui-error/ 2012-08-27 00:31:21 +00:00
b726a5ae33 - Fixed a bug in the warlock power module with reloading the ui/logging in while in Demonology spec and having the power module set to Numeric display mode which caused the number to be replaced with an ellipsis. That was a long sentence. 2012-08-26 19:27:20 +00:00
b585385273 - Added support for bar-style class powers that grow left to right instead of just adding a new count or growing individual powers bottom-up. This could really use a background to give a sense of the bar's extents, but I'll leave that for a future improvement.
- Added basic support for Demonology spec (Demonic Fury) Warlock power.
- Fixed a bug or two in Warlock power presentation when un-speccing or learning a new spec after having been without a spec.
- Added support for hiding Warlock power until the requisite spell has been learned because apparently (after looking at Blizzard's code) you can have the spec without having the spell that builds up the power associated with the spec. Okay.
2012-08-26 19:17:46 +00:00
221d83566b - Added Destruction spec (Burning Embers) support to the warlock power module and renamed it from Shard Counter to Warlock Power. Demonology support coming soon. Hopefully. 2012-08-26 05:46:19 +00:00
0734ddd94c - Created Monk Harmony Power module.
- Added localization to HolyPower module description.
- Fixed a comment in the Shard module.
2012-06-30 22:30:54 +00:00
08d6c6ead4 - added level restrictions to shard and holy power class counters since players under 9/10 (different per bar, using constants provided by Blizzard) don't have those resources available yet 2010-10-24 03:19:58 +00:00
fd406cc177 - added pulsing to the shard counter and holy power modules whenever they are maxed out. if this feature goes well then it should probably be ported over to the existing counter modules as well 2010-10-15 06:16:04 +00:00
e1f2d4318b - added the ability to further customize the shard and holy power modules by displaying all the existing custom counter textures in place of shards/holy runes and colorizing them based on how many are available 2010-10-05 03:42:51 +00:00
08861ecfe7 - first shot at localization of all configuration settings in IceHUD using AceLocale. note that all of these conversions were generated programmatically so it's possible that something went awry...very casual testing seemed okay, however. 2010-09-26 05:14:42 +00:00
250adfc2db - removed the last remnants of Ace2 (AceOO-2.0 and AceLibrary) thanks to a huge amount of help from ckknight for metatables 2010-09-17 05:41:04 +00:00
fd6d570e0b - fixed up several "hide blizzard frame" options to re-display when the module is disabled and to call blizzard's OnLoad for the frame instead of manually entering every event to re-register
- fixed "show incoming heals" option to be properly toggleable on 4.0 (bad conditional on the 'disabled' option)
- hid "cooldown mode" option on the totems module since there was never more than one choice
2010-09-16 02:42:16 +00:00
fb884f41f4 - abstracted the HolyPower module's functionality to a ClassPowerCounter module since the warlock shard bar is functionally identical to holy power
- added shard bar inheriting from ClassPowerCounter. same basic functionality as the holy power module: graphical mode that shows the default shards and numeric mode that just displays a count of active shards
2010-09-10 06:49:45 +00:00