Commit Graph

24 Commits

Author SHA1 Message Date
Brues 98c7751416 Utilize CAPI Tracking functions
commit 8ea5c81789
Author: Brues <5278969+brues-code@users.noreply.github.com>
Date:   Mon Aug 24 23:40:01 2026 -0500

    bump CAPI min to 1.12.4

commit 39a46563a1
Author: Brues <5278969+brues-code@users.noreply.github.com>
Date:   Mon Aug 24 23:35:49 2026 -0500

    tracking: use native ClassicAPI tracking API

    Replace the hardcoded knownTrackingSpells class table and the
    icon-substring spellbook scan with ClassicAPI's native tracking
    functions:

    - RefreshSpells now enumerates GetNumTrackingTypes() / GetTrackingInfo(),
      which the DLL derives from the spellbook by tracking-aura effect. This
      drops the per-class spell/icon table and picks up server-custom
      trackers (e.g. Turtle's Find Trees) automatically.
    - Selecting a tracker in the menu uses SetTracking(index) instead of
      CastSpell(slot, BOOKTYPE_SPELL).
    - Keep the Druid Cat Form gate on Track Humanoids (5225) and the
      existing invalidSpells filter. Falls back to no entries if the tracking
      API is absent.

    Active icon (GetTrackingTexture), cancel (CancelTrackingBuff), and the
    hover tooltip (GameTooltip:SetTrackingSpell) were already native and are
    unchanged.

Fixes #42
2026-08-30 17:19:17 -05:00
Brues 6d1bfe805e Use UnitClassBase for class detection 2026-07-30 01:26:29 -05:00
Brues 710be52f35 phase 3 removing tbc
Drop the now-vestigial expansion plumbing.

- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
  entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
  Register call sites
- Delete the pfUI.expansion variable
2026-05-25 18:50:53 -05:00
Brues 00a3e2f691 tracking: PlayerIsDruidInCatForm via GetShapeshiftFormID
The byte-2-of-UNIT_BYTES_1 extraction this function did manually
(math.floor(b/65536) - math.floor(b/16777216)*256 on the GetUnitField
return) is precisely what GetShapeshiftFormID reads under the hood —
descriptor +0x212. Collapses to a one-liner that doesn't need to
mirror the engine's byte layout in Lua.
2026-05-21 17:30:39 -05:00
Meow fbb1b9df46 Refactor: Tracking spell detection
Improved tracking spell detection to use SpellID + icon path matching (case-insensitive) for more accurate and locale-independent results
2026-04-02 19:32:00 +02:00
Sleepybear 25f514dad0 Add Find Trees to tracking menu 2026-03-20 22:15:42 -07:00
shagu b0141ddf27 tracking: add blacklist to ignore invalid spells 2025-04-25 16:03:52 +02:00
shagu a5103912b4 tracking: move menu refresh into separate function 2025-04-25 15:56:33 +02:00
shagu a3f811a055 minimap: don't overwrite minimap strata 2024-11-02 15:09:42 +01:00
shagu 7669e64173 core: remove leftover semicolons 2020-08-15 19:29:24 +02:00
shagu 3334c7469f modules: make all modules aware of the new borders 2019-12-18 18:54:09 +01:00
shagu 88159ed7c6 tracking: check for spell texture before using it 2019-06-16 15:26:14 +02:00
shagu e9237b59b2 core: use concrete string based client checks 2019-06-10 17:06:31 +02:00
shagu 545be99fd7 api: only add shadow to specific frames 2019-06-02 20:43:56 +02:00
shagu 5dfe5a4899 compat: initial layout of client abstraction api 2018-11-01 14:55:29 +01:00
shagu 861c505038 tracking: reset spellcache when spellindex changes 2018-07-16 14:44:06 +02:00
shagu d365e1c1cb tracking: reduce memory footprint 2018-07-16 14:40:53 +02:00
shagu 48c4c7e62e tracking: fix nil error on table iteration 2018-07-15 22:12:30 +02:00
shagu 387854e801 tracking: reduce memory load on aura change 2018-07-15 21:32:19 +02:00
shagu 7140842a4f tracking: fix demon tracking icon 2017-12-21 15:46:36 +01:00
shagu a208da350a tracking: use locale independent unitstring 2017-12-19 09:11:12 +01:00
shagu 423ad332ae tracking: only remove icon when nothing is tracked 2017-12-18 17:05:17 +01:00
shagu cbc9d23874 tracking: remove debug output 2017-12-17 21:17:38 +01:00
greenya 50dd24ec4b tracking: add indicator and dropdown menu 2017-12-17 19:30:27 +01:00