Commit Graph

910 Commits

Author SHA1 Message Date
42fab8e4a4 Fix 11.1.5 issue, update retail TOC 2025-04-26 16:45:39 -05:00
e6bd39352c Fix max chi power not always updating correctly 2024-11-27 14:40:54 -06:00
b75112db79 Fix error in CD module set to WhenReady mode 2024-08-30 21:54:08 -05:00
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
b17582afab Remove all the old right-click menu hackery
Evidently this isn't needed anymore on any current client, 11.x, Classic-era, et al.
2024-07-25 22:32:29 -05:00
e94138d201 Restore context menus for Health and Info modules
Apparently we don't have to do any of this anymore (and might not have had to do it for a long time, but I missed the memo) so if we can, just use the built-in menuing stuff. Setting focus doesn't trigger taint with this.
2024-07-25 22:25:55 -05:00
40efe6a551 Fix up uses of UnitBuff and UnitDebuff for 11.0.2 2024-07-21 14:00:48 -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
b0f7c776db Fix the Vengeance module
One of the return values of UnitAura is the Vengeance amount and the GameTooltip scanning thing is no longer working.
2024-05-12 11:11:53 -05:00
c425206748 Hopefully fix Vigor bar not showing up for some types of dragons
Specifically the Algarian Stormrider which has a different flavor of Vigor widget with customized colors. Apparently that's a whole different widget id. So now instead of checking for just the one vigor widget, we look up all widgets in the vigor set and use those to see if any vigor bar is showing.
2024-05-11 16:19:00 -05:00
038ea16642 Support Cataclysm Classic 2024-04-30 23:16:42 -05:00
2ae826654a Update LibRangeCheck version
Should fix taint issues as reported in https://www.wowace.com/projects/ice-hud/issues/353
2024-04-04 08:14:32 -05:00
acee3f4725 Fix error when loading in while mounted 2024-02-10 14:12:28 -06:00
2db6ddea57 Only hide Blizzard Vigor bar, not all fill-ups
This fixes the bar from the Digging event in 10.2.5 not showing. For real this time.
2024-02-10 10:47:04 -06:00
7e4a6ecab6 Attempt to fix other uses of PowerBarContainer
Apparently other things are now using the game's UIWidgetPowerBarContainerFrame but we're forcing it to be hidden due to a variety of factors. This attempts to restrict the Hide behavior of that frame to only when we're Dragonriding.
2024-01-21 12:36:15 -06:00
af33ab9781 Fix Vigor showing up sometimes when it shouldn't
Seems like UnitPowerMax for the AlternateMount power returns the actual max from PLAYER_ENTERING_WORLD until you mount and then dismount a Dragonriding mount. This wasn't previously the case.

Now we rely on the native widget info to tell us whether it believes it should be on or not.
2024-01-19 09:02:41 -06:00
c0262de622 Only use HasBuff method as a fallback
If we can check the power type, we should rely on only that.
2024-01-19 07:26:55 -06:00
c85c304eb6 Enable GCD, target target buffs in Classic 1.15+ 2024-01-07 14:49:42 -06:00
c72b67235d Enable TargetCastBar on Classic-era 1.15+ 2023-12-10 18:58:08 -06:00
140596b930 Fix Stagger bar error for 10.2.0
Fixes wowace ticket 348
2023-11-08 09:33:17 -06:00
6cee8c738c Apply strata adjustment inside BarFactory instead of every callsite 2023-08-02 08:25:34 -05:00
40fc8187fd Add ability to adjust strata globally
Submitted by slowkerd from Curseforge (thanks!)
2023-08-02 08:16:12 -05:00
b32f090644 using table.remove to not leave a hole in the array (#36) 2023-07-23 23:57:22 -05:00
9a727e4893 Fix Vigor with new mount type(s)
I explicitly added what I believe to be the spell id for the new Grotto Netherwing Drake so it *should* work regardless, but then also discovered that the flying mount's UnitPowerMax is 0 unless you're on a Dragonriding mount, so that should be the longer-term fix for whenever old-world mounts add Dragonriding capability (10.1.5?).
2023-07-04 10:01:31 -05:00
343ac7b70b Fix aura icons not always showing on custom bars 2023-05-18 10:17:13 -05:00
573049f77e Fix Custom Bar showing empty bar in Missing mode 2023-05-18 10:15:38 -05:00
8dc173ae81 Fix custom bar showing when disabled and set to Missing
Fixes wowace ticket #343
2023-05-18 10:12:17 -05:00
5e04ace0f4 Fix CC modules on Wrath Classic 2023-05-18 09:41:44 -05:00
8cd7c4b044 Add 10.1 dragonriding mount 2023-05-06 13:15:39 -05:00
bfffdd82d7 Fix vigor on entering world
Forgot to send the event argument, so it was returning early.

Fixes #34
2023-05-03 18:23:52 -05:00
24c45f320f Update TOC, add icon, fix Vigor for 10.1 2023-05-03 18:22:36 -05:00
18fa31807c Hide Debuff frame along with Buffs if desired 2023-04-01 20:58:25 -05:00
594ea0a3e3 Fix errors when toggling off Hide Blizz 2023-04-01 20:53:53 -05:00
271bb38a69 Add more Polymorph ranks 2023-02-06 20:15:52 -06:00
0e11a40d3a Don't hide Blizzard Totems by default on 10.0 2023-02-06 00:19:08 -06:00
5020279748 Fix errors when playing Faire games 2023-02-06 00:16:15 -06:00
cfaa09a541 Expose Totems Hide Blizzard setting 2023-02-01 16:41:31 -06:00
7709cb9130 Fix AltPower bar showing when it shouldn't 2023-01-22 15:56:41 -06:00
6c44ddc93a Fix IceHUD hiding climbing, film, etc. frames
Fixes wowace ticket 336
2023-01-21 20:41:03 -06:00
8b45079d38 Don't forcefully show Blizzard frame
This enables other mods to hide Vigor even if IceHUD is told not to.
2023-01-15 22:23:47 -06:00
b1adbe8090 Add Dragonriding Vigor module
This displays the Vigor charges for the player whenever they're on a Dragonriding mount (which is detected via explicit buff ID scanning from a hardcoded list...I'd like to make that more robust so I don't have to keep up with new mounts being added, but I'm not sure how to do it another way just yet). The Alternate Power bar is hidden if the Vigor module is enabled so that we don't end up with duplicate Vigor trackers (although right now it flashes on the screen before the mount buff is detected, so I'd also like to fix that...).

I've effectively had to implement my own Vigor module from scratch by poking into the internals of the Vigor widget by its ID in order to determine the recharge amount on the final Vigor charge because there's currently no API to get this information otherwise. Hopefully this gets added; if it does, I'll happily rip out this widget inspection junk. Aside from the partial charge stuff, this is just a skinned version of an Alternate Power indicator that only shows when the user is on a dragonriding mount. ClassPowerCounter doesn't sound like a particularly appropriate base class for this, but since Vigor is implemented as Alternate Power, it worked out nicely.
2023-01-15 13:03:18 -06:00
01a017c179 Add support for background and frame
This adds more robust visuals on the power counters where we can (finally) display artwork similar to the default UI where the charges are sometimes framed by something and sometimes have a textured background behind empty charges. This doesn't yet add support for animations. Child classes can take advantage of this simply by implementing GetFrameAtlas() and/or GetBackgroundAtlas().

Note: as part of this, I moved the rune texture's layer to "BORDER" which doesn't feel quite appropriate, but does allow the layering to work as I want. I don't think this is going to be an issue since texture layers should only apply internal to a frame's strata (meaning this shouldn't suddenly cause an existing power counter to display above/below something else), but I wanted to document it in case something weird does come up later.

I also hardcoded a + 10 on the width/height for the frame since that's what works for Vigor. If those values don't work for any future users of this, it's easily adjusted.
2023-01-15 12:57:58 -06:00
b8aece0da3 Add support for a partially-ready final rune
This adds support for a class power counter that has a visible recharge on the final "rune." Most power counters are either fully ready or full un-ready (where the recharge is hidden away), but Dragonriding's Vigor resource does show the recharge of the final point, which this now supports.

Child classes can support this by setting self.partialReady to the index of the rune that's partially ready, and self.partialReadyPercent to the percentage that that final rune is ready (0.0-1.0). If the partially-charged point uses a different texture, the child can also implement GetPartialRuneAtlas() and it will be used only for the partially-ready rune.

If we ever need to be able to show multiple partially-ready runes, this will need a small refactor.
2023-01-15 12:52:22 -06:00
6b9b4a358c Move altpower to a local variable
This isn't used anywhere else, so there's no reason for it to pollute the global namespace. And being local now, it also doesn't need the IceHUD prefix on its name.
2023-01-15 12:46:20 -06:00
72adca99f9 Fix whitespace 2023-01-15 12:45:19 -06:00
f8e7cf06d6 Combine rune texture/color set into one method
This enables a simpler method of making sure the appropriate texture is set and using the appropriate color (for after a rune was modified to darkened/hidden).
2023-01-15 12:43:56 -06:00
059808c980 Add ability to opt out of displaypower event 2023-01-15 12:41:16 -06:00