81 Commits

Author SHA1 Message Date
40fc8187fd Add ability to adjust strata globally
Submitted by slowkerd from Curseforge (thanks!)
2023-08-02 08:16:12 -05:00
c5c44edf64 Fix several issues with low thresholds
This addresses a user-reported issue where Low Threshold was not usable with Color By Health/Mana % disabled, due to some internal technical reasons. This was exacerbated by the recent fix that allowed Low Threshold and Color By Health % to work together.

This also fixes the low threshold flash to apply immediately when changing the option, and fixes the Low Threshold % slider to be usable without the Low Flash option set.

Finally, it hides the Low Flash option for bars that don't support it (right now that's just PlayerMana, I think because it only sets the low threshold to the Min Mana Color even if the class uses a different power type...something for future me...).

Fixes wowace ticket #334
2022-12-13 20:48:02 -06:00
41ae17ba9a Continue replacement of WowVer checks 2022-09-18 17:50:37 -05:00
b65909c570 Wrath updates for Paladin GCD, Rogue SnD 2022-08-30 22:25:16 -05:00
60587b22f8 Fix energy ticker when zoning back into an instance after dying
Instead of unhooking the event when we're dead, just hide the ticker
when dead. This ensures, regardless of the order the events come in
when zoning back into an instance, reviving, etc., the ticker is always
shown when appropriate.

WowAce ticket #316
2021-07-06 11:34:52 -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
4de8cb0d27 Show fury raw value as top number when DogTags are disabled
Same as commit 36c8f02fc2

WoWAce ticket #301
2021-04-13 21:31:32 -05:00
36c8f02fc2 Show focus raw value as top number when DogTags are disabled 2020-06-19 14:07:38 -05:00
3e56595709 Fixed energy ticker resetting when spending energy 2019-08-28 19:49:50 -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
0d146ab10f Balance druids with Nature's Wrath now treat 50-100 astral power as full for alpha purposes 2018-07-24 21:49:59 -05:00
beb080b104 Set DH pain/fury colors to match 8.0 default UI 2018-07-16 11:36:24 -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
d9bd5e3f36 Changed default DogTags to shorten values
This change is potentially contentious because it's a very old default, but with health and power values being so incredibly high in Legion, the shortened form of values is immensely more readable. This change will not affect those who have modified their text settings and the Short form only kicks in when values hit 10,000 or higher.
2016-11-06 14:17:37 -06:00
a3bd338ff6 Fixed energy ticker showing up in 7.1
Looks like the ancient predictedPower cvar was finally killed in 7.1, so the ticker was showing back up.
2016-10-25 20:16:57 -05:00
0c729d77e9 Amended 29dc1b89 to be controlled by its own option
Instead of changing a behavior that's years old out from under people, let's make it opt-in.
2016-09-05 21:50:43 -05:00
29dc1b8955 Allow "scale mana color" to work with class-specific mana types 2016-09-04 08:05:00 -05:00
880e2e3278 Added support for the Pain mana type 2016-08-18 23:00:06 -05:00
a5de40f087 Added colors for Maelstrom mana
Fixed TargetMana to use Insanity, Fury, and Maelstrom colors correctly
2016-08-15 23:16:57 -05:00
6133a59ef3 Added Maelstrom to the list of powers to treat 0 as full for opacity purposes 2016-08-07 16:44:13 -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
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
c49e0ad84a Set color for DH Fury resource 2016-05-26 21:47:31 -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
06f8375dcf - Fixed bug with the player's mana bar not updating its alpha properly when entering the world (i.e. teleporting/hearthing/etc.). 2014-10-11 01:28:50 -05:00
79bb3324ac - re-fixed a bug causing the player mana module to not update color when a druid left an LFD instance while in a form and was immediately placed back on a mount and not in a form 2010-11-21 22:01:07 +00:00
fa8b895214 - mana modules animate regardless of 'predictedPower' setting now
- fixed occasional flickering in the cast bar and threat bar when they are first displayed
- minor code cleanup
2010-11-06 03:03:46 +00:00
4149d4e733 - fixed the player's health and mana bars monitoring the wrong unit whenever the player leaves an instance while in a vehicle 2010-11-05 04:55:25 +00:00
fa74303411 - better fix to make sure modules always re-register for updates if they need to when they're shown 2010-10-30 15:48:54 +00:00
9599ed33cd - added a check for the player's mana type when PLAYER_ENTERING_WORLD fires so that we adjust properly when entering/leaving instances 2010-10-30 02:56:13 +00:00
e003fab854 - removed most of the rest of the garbage that was being generated during combat or when changing targets
- reduced cpu usage by 33%-50% across the board (and more in some cases) by changing how updates are registered and how often they run. now the 'update period' slider actually matters. it defaults to 0.033 meaning that frames update about 30 times a second instead of every frame
- fixed the "always" display mode for cooldown bars to respect alpha settings (ooc/with target/in combat/etc.)
2010-10-25 02:05:58 +00:00
af5574e4a6 - added local copy of _G.IceHUD to modules that reference it frequently for a minor lookup speed boost 2010-10-20 05:22:27 +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
e95db24dd0 - replaced AceEvent-2.0 with AceEvent-3.0/AceTimer-3.0 2010-09-10 06:30:56 +00:00
8d4686f10c - updated all UnitPower* code to use the SPELL_POWER_* constants instead of hardcoding numbers...mostly just a readability change 2010-09-10 01:50:43 +00:00
aed00f0434 - added proper color for player focus (cataclysm hunters) on the PlayerMana module
- minor documentation fix for the incoming heal notification on the player health bar to indicate that it requires either libhealcomm-4 or cataclysm to function
2010-09-06 20:11:48 +00:00
59344a134a - converted most of the mod to ace3. the only ace2 remaining is AceEvent-2 (probably easy to get away from) and AceOO-2 (not so easy)
- the ace3 conversion also broke the dependence on Waterfall and gave a much better configuration screen through AceConfigDialog; plus Waterfall is very broken in Cataclysm and it's unclear whether anyone will bother to fix it or not
- fixed a bug with the custom CD bar when changing profiles where it would generate endless errors until a reloadui
- removed DewDrop library as it was no longer in use
- temporarily removed FuBar plugin as it doesn't work as a mixin with AceAddon-3. i will eventually be bringing this back in some form (before the next full release version)
- removed an unused 'about' button on the config page and some empty headers...not sure why they were ever there
2010-09-05 20:11:33 +00:00
97d4a6898e - fixes for cataclysm: added UNIT_POWER/UNIT_MAXPOWER event registrations in place of all the old power types, fixed mirror bar, targetinfo, and targetoftarget SetScripts to pass 'this' and 'arg#' around where necessary
- still broken for cata: GlobalCoolDown module, LibDogTag (needs to be fixed by one of its maintainers or I need to port to LuaTexts...fixing dogtag would be vastly easier), and Waterfall (not sure what to do about this one just yet)
2010-09-04 22:49:39 +00:00
f1ce0700e3 - switched UnitMana* calls to UnitPower* calls as that seems to be the replacement Blizzard is using in cataclysm 2010-07-02 16:23:35 +00:00
165726c135 Fix for druids logging in with a messed up ticker bar when predictedPower is turned off. 2010-03-24 23:56:17 +00:00
4cb3f59ff2 Fix for removal of SetTexCoordModifiesRect in 3.3.3. 2010-03-24 23:54:14 +00:00
cfebb9f5af - maybe fix some vehicle issues in ulduar 2009-08-12 07:26:34 +00:00
d104fcfb21 - updated every other reference to a bar's texture to use the accessor method instead. this allows overridden textures to work globally 2009-07-27 05:48:12 +00:00
759c49e908 - removed entering/exiting vehicle events since we really only care about entered/exited
- made sure to check that the unit who entered/exited a vehicle was actually the player before swapping out units. this was causing the player's health/mana/casting bars to go crazy in battlegrounds and anywhere that people were getting in and out of vehicles around the player
2009-07-18 05:38:05 +00:00
50dcfb6a8c bug http://www.wowace.com/projects/ice-hud/tickets/18-use-new-vehicle-api-to-switch-player-bar-to-vehicle/
- added support to player health, mana, and cast bars to change which unit they are monitoring to be the vehicle when the player enters one
2009-07-08 02:48:30 +00:00
f11192bfd1 - fix for a bug causing the runic power bar to sometimes not update if the player spent all of his remaining runic power at once (like hitting death coil with 40 runic power left) 2009-04-18 07:18:28 +00:00
429fa4858e - added a configurable RunicPower color to the player, target, and tot mana bars
- made runic power behave like energy and rage for the "low threshold" flashing behavior
2009-02-26 03:57:33 +00:00
2f1181b5ea - fixed a bug with PlayerMana disabling OnUpdate code for warriors and DK's when their bar was full instead of when it is empty
- fixed a bug with DK runes appearing to be available as soon as a fight was done instead of when they actually became available again
2008-11-03 02:52:57 +00:00
efcbb55286 - hopefully fixed a bug with max'ing out the player's mana bar with a mana potion, life tap, mana gem, etc.; now letting the animation finish out normally before turning off the OnUpdate 2008-11-02 21:13:45 +00:00