Commit Graph

65 Commits

Author SHA1 Message Date
42e76dde72 Fix cooldown display for overridden spells
When a spell is overridden by another, our cooldown bar stops being able to track it. Normally this is fine if the spell completely changes as you probably don't expect a cd bar for Backstab to track Gloomblade.

But when the overridden spell shares the same name as the base spell, such as Fire Breath for Evokers with the Font of Magic talent, you very much would expect the bar to track both.

With this fix, tracking the base spell will show the cd for the overridden version as well.
2024-08-26 17:18:39 -05:00
30ec3750c1 Fix error when using an invalid spell with a custom bar on 11.x 2024-08-14 11:34:54 -05:00
66f4492fa7 Fix spell cooldown bars in 11.x
GetSpellCooldown used to return 1 for "has duration", but the new native version returns true. Fun.

Additionally, it looks like the events triggering UpdateCustomBarEvent() are passing a nil argument that the mod thought was supposed to be the affected unit. So I also fixed that, though I don't know if that's an 11.x thing or not.

https://www.wowace.com/projects/ice-hud/issues/363
2024-07-27 15:42:31 -05:00
9b063bed63 More TWW/11.0.2 compatibility
I don't have beta access so I can't test this yet, but this should catch everything in the Deprecated_11_0_0 file in wow's official ui source as well as some stuff not mentioned but reported by users.
2024-07-21 13:51:17 -05:00
6c2e759f45 Basic TWW compatibility 2024-06-22 18:07:42 -05:00
09e1832fbe Fix more invalid texture layers 2022-09-18 15:36:45 -05:00
410cc2b634 Fixed CD bars not displaying when both IgnoreRange and OnlyShowWithTarget were set 2018-09-12 22:06:33 -05:00
6986131d73 Only show placeholder icon when in config mode
If a CD bar was tracking a spell that was currently unknown to the player (such as the not-currently-active variations of Wildfire Bomb for Survival Hunters after first login/UI reload) then the placeholder frost icon would show up instead. The icon was only meant to be used to aid in configuration mode, so now the icon is set to the placeholder icon when config mode is enabled only. Technically we should clear the icon if it's set to the default whenever config mode is exited, but I figure config mode is pretty rare and should be okay for now.
2018-09-12 21:59:29 -05:00
0cdfde1758 Fixed Holy Word: Serenity not being trackable in CD modules
Pre-7.0 the Holy Word spells did not work with GetSpellCooldown. They do now.
2016-12-24 01:04:09 -06:00
5c53ab94ce - Fixed a bug where custom cooldown bars that existed prior to v1.9 were throwing errors and preventing users from accessing options. 2014-10-14 23:34:56 -05:00
d4b5367552 - Fixed an error when an item slot was specified that the user had no item equipped in. 2014-10-12 21:50:53 -05:00
5cdf3b7b7d - Added support for tracking inventory item cooldowns on a custom cooldown bar. (ticket #123) 2014-10-12 21:14:18 -05:00
d5ae3cd7e2 - Added a "When targeting" mode to custom cooldown bars that will always display the bar when a target is selected and never when no target is selected. (ticket #128) 2014-10-12 15:47:58 -05:00
692121eca2 - Fixed CustomCDBar not displaying correctly in 6.0 when in "When ready" mode. 2014-10-12 15:46:10 -05:00
3732869153 - r953 broke the "Only show with a target selected" option for self-castable spells set to "when ready" on a cooldown module. Obviously I have too many options in this mod. 2013-11-17 05:12:55 +00:00
c7a8783615 - Fixed an issue causing cooldown bars set to "when ready" to not display if the player had no target but the spell was castable on the player and ready to be cast. 2013-11-16 21:35:55 +00:00
9396aa245e - Added a toggle to only show cooldown modules when you have a target selected for abilities that don't require a target to cast, by request. 2013-10-26 15:45:08 +00:00
d7e4bfbee2 - added code to buff/debuff watchers and cooldown watchers to prevent them from sometimes getting stuck (not updating/animating) 2011-12-06 03:51:22 +00:00
ad641714fa - and now for the correctly-merged version of the cd bar 2011-12-02 02:35:29 +00:00
b46ea82511 - cooldown bar fixes submitted by JontomXire (thanks!) 2011-12-01 23:00:56 +00:00
f7a82b695d - don't trigger the ability cooldown bar if the spell in question only has a 1.5 second or less cooldown. this indicates that it's on cooldown as part of the GCD and we have a separate module for GCD tracking 2011-12-01 02:20:39 +00:00
86d38f50ee - fixed custom cooldown bars not working quite right with the 'When ready' display mode. the update subscription query was returning a false positive because a block of code in one of the CD bar's parent classes had already subscribed for updates, but the CD bar wanted to use its own update function. 2011-04-26 04:30:16 +00:00
0112d98761 - added feature to custom cooldown bars to allow them to show/hide with the rest of the mod instead of having special rules (if desired)
- added ability to ignore a spell's range/target castability if desired on a cd bar. this allows the bars to display when a buff is ready even if it can't be cast on your current target, for example
2011-01-12 02:53:47 +00:00
74869ce924 - fixed custom bars not monitoring weapon enchants/poisons correctly
- fixed custom bars and cooldown bars drawing at full alpha at all times
2010-12-24 08:13:43 +00:00
d14a2e5cb7 - added spell ids for holy word: sanctuary and serenity since GetSpellCooldown() is bugged with them by name 2010-12-15 06:35:34 +00:00
5985e86f0e - made sure that the new custom text colors get set before using them 2010-12-14 07:16:05 +00:00
e3e3d01583 - added custom upper/lower text coloring to custom buff/debuff bars and custom cooldown bars since they don't have any dogtag support
- fixed lower text to be visible on custom buff/debuff bars and custom cooldown bars
- fixed upper/lower text blocks in the text settings page to not be multi-line if the module doesn't support dogtags so that everything is laid out more cleanly
2010-12-14 06:55:15 +00:00
bca32d02b1 - changed custom cooldown bars back to never forcefully hide themselves when set to 'always' display mode. they will now respect the global transparency settings instead. seems like i can't make everyone happy with this setting but this behavior is the most consistent with the rest of the mod 2010-12-05 04:19:45 +00:00
f40a0a9f97 - fixed custom buff bars and cooldown bars multiplying alpha values when they shouldn't have been. at low alpha this meant that they were much more transparent than they should have been 2010-11-22 02:19:23 +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
1a3b4cbda9 - super temp hax to make the custom cd bar work with "Holy Word: Aspire". none of the spell api functions work when that spell is passed by name but they do work with the spell id, so i built a table of names => ids that gets checked before calling any api's 2010-10-21 01:09:14 +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
0fc23444e2 - added description text to each custom module explaining what type of module it is. it was pretty difficult to figure out what kind of custom module you were looking at in the config after you created it 2010-10-20 05:08:49 +00:00
fa5246a27e - very minor perf gain by not doing the per-frame update on invisible modules
- nuked the primary offender of garbage generation. there is more to get rid of but finding it is a tedious process
2010-10-17 22:50:59 +00:00
86ee5ca6c1 - fixed icons rotating with bars incorrectly when setting bar to be rotated 90 degrees 2010-10-15 00:30:27 +00:00
4e1c8ecf12 - added ability for spell ids to be specified instead of names for custom bars and cooldown bars. when an id is typed it will attempt to resolve to the buff name 2010-10-11 05:42:37 +00:00
e3833eb1e2 - hid the "Low Threshold Color" option on custom bars and cooldown bars since the option doesn't apply to them
- updated the description of a few "low threshold" settings so they make more sense to users (don't reference variable names)
2010-10-10 00:16:19 +00:00
51ee5972d4 - fixed a bug where cooldown timers wouldn't always reset when an ability was brought off cooldown early 2010-09-28 04:06:28 +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
4bf79adda5 - added the ability to duplicate an existing custom bar 2010-09-26 00:31:12 +00:00
1af2c4d831 - added some more protection against people tweaking settings or changing profiles while in combat and added a warning message explaining that stuff could be broked if they manage to do it anyway
- fixed cooldown bars that are set to "when ready" to be properly hidden when the module is disabled or profiles are changed
2010-09-22 05:47:01 +00:00
bd96c59012 - added calls to disable updates on custom modules as they are disabled so that they don't stick around on screen when they shouldn't 2010-09-22 00:19:13 +00:00
cd50276d35 - minor fixes to enabling a module and how updates are handled that should allow custom modules to react appropriately when they are enabled while a player has the buff they're monitoring 2010-09-22 00:15:35 +00:00
a242f50cb4 - moved all "icons" settings from being under a header to being in their own group. this should unify the "icon settings" features of all modules 2010-09-19 06:39:59 +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
1961b66f57 - big giant options screen usability cleanup:
- colorized the FAQ and Module Settings description text to be more readable
- removed custom coloring from certain options that didn't match the rest
- hid a few debug-only settings
- consolidated all the 'create custom module' buttons into a drop-down + create button
- clarified description of some options so that their intent/purpose is more clear
- moved around/cleaned up headers for consistency
- doubled the width of long options so that they don't get cut off and ...'d
2010-09-12 22:36:02 +00:00
9d40348b80 - removed a few old CancelScheduledEvent calls on bars that weren't actually scheduling any repeating timers any more and added a few CancelTimers to modules that weren't previously canceling their scheduled timers
- converted CancelScheduledEvent to CancelTimer for modules that are still scheduling repeating timers...not sure why CancelScheduledEvent didn't throw any errors (since i don't see how it exists) but whatever
- removed a bunch of "function() self:Thing() end" closures in ScheduleRepeatingTimer calls that didn't need to be there
2010-09-11 01:42:29 +00:00
e95db24dd0 - replaced AceEvent-2.0 with AceEvent-3.0/AceTimer-3.0 2010-09-10 06:30:56 +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
374ff3d324 - fixed a few edge cases where custom cooldown bars would not display when the spell was ready and the bar was set to "when ready" mode. this could happen if the player ran out of mana then gained enough back to cast the spell or for ranged spells where the target moved in and out of range 2010-07-26 23:50:46 +00:00