121 Commits
Author SHA1 Message Date
Brues be9c0effb6 Show the chat tab bars from mouse enter and leave instead of polling
The tabmouse option checked both chat panels with IsMouseOver every
frame. The hover frame behind autohide is now its own helper,
EnableHover, and each chat panel gets one. RefreshChat turns it on after
every pass, since that is where the chat frames and tabs move onto the
panels and need to pass their mouse motion on.

The datatext panels are not children of the chats; they sit over the
chats' bottoms in a higher stratum. A panel docked there passes its
motion on as part of its chat, so the tabs stay up over the datatexts.
A panel moved elsewhere does not.

pfUI.chat:UpdateTabs is now the one rule for a tab bar: hidden while a
damage meter is docked over the chat, and with tabmouse only while the
cursor is near. The meter toggle calls it instead of showing the bar
itself, which the old poll would have hidden again on the next frame.
A drag now unlocks the bars before its refresh, so they match the cursor
when it ends.

The hover frame now sits at the lowest level of its frame's subtree,
not the frame's own level. The datatext buttons sit at level 0, under
their panel, so a panel's autohide hover frame was above them.
2026-11-14 22:51:44 -06:00
FayzandBrues 54d795c428 Add CombatLedger dock support to the bottom right panel (#80)
* Add CombatLedger dock integration

Dock CombatLedger into the bottom right panel like ShaguDPS, GreedMeter
and DPSMate. The main window takes the damage slot and the first extra
window takes the threat slot. Adds a CombatLedger (Dock) checkbox under
Thirdparty > Integrations.

* CombatLedger dock: refit header buttons after docking

CombatLedger sizes its Mode/Segment buttons from the window width and only
refits them on a resize drag or appearance change. Fire its appearance hook
after each dock layout so the header fits the half-width window.

* CombatLedger dock review: stable second window, respect panel state

- Dock the lowest-numbered extra window into the threat slot and keep it
  until it closes, instead of taking the first entry of a pairs() walk
  that could change on every call.
- Keep docked windows hidden while the panel is collapsed, even when
  CombatLedger shows them itself (auto-show on combat, group changes,
  /cl show). Showing the panel respects each window's auto-hide and
  grouped-only rules.
- Only touch the second window when the threat slot is ours, for
  CombatLedger and GreedMeter.
- Lock docked windows: no drag or resize grip, so the panel geometry
  is never saved as their floating layout.
- Refit the header once per frame, and only when a docked width changed,
  instead of restyling and redrawing every window several times.
- Disable CombatLedger's own pfUI dock, which shares the config key and
  turned this dock on by itself.
- Share the anchoring and threat-slot code (meters:Place,
  meters:SetSecondary) with GreedMeter; use HookAddon and
  hooksecurefunc instead of the compat hook and hand-written wrappers.

---------

Co-authored-by: Brues <5278969+brues-code@users.noreply.github.com>
2026-11-12 11:19:07 -06:00
Brues 70bfc1c443 One-shot event handlers: use EventUtil.RegisterOnceFrameEventAndCallback instead of self-unregistering frames 2026-11-03 01:07:02 -06:00
Brues 2a6bddd756 DPSMate dock: find DPSMate by its globals and its first window by settings
The hook gated on an addon folder named exactly DPSMate and a first
window named DPSMate, so repacks under other folder names and renamed
windows never docked (#77). It now waits on login, checks DPSMate's
globals, resolves the first window from DPSMateSettings on every call,
and re-docks after DPSMate rebuilds its frames.
2026-11-02 23:14:27 -06:00
Brues b64ae7dd53 Replace HookAddonOrVariable with an EventUtil-based HookAddon
The polling lurker frame is gone. HookAddon gates on
C_AddOns.DoesAddOnExist, waits for PLAYER_LOGIN with
EventUtil.ContinueOnPlayerLogin, then runs on
EventUtil.ContinueOnAddOnLoaded. Addons loaded at startup still hook
only after every pfUI module and skin exists and after the addon's
own VARIABLES_LOADED setup. Load-on-demand addons still hook on their
ADDON_LOADED.

The "or variable" form is gone. Callers that passed a global now pass
the addon that defines it: TheoryCraft, SuperMacro, DPSMate and
Turtle_GroupUI. DPSMate names its windows from its settings, so its
hook now checks for DPSMate_DPSMate itself, as the variable lookup
used to. eqcompare's Guda check uses HookAddon too.
2026-10-31 00:28:30 -05:00
Brues 4616c2bc5f Toggle visibility with SetShown instead of Show/Hide branches
Each if/else that only showed one object in one branch and hid it in the other is now ClassicAPI's SetShown, which shows on any truthy value. 21 sites across 10 modules.
2026-10-30 19:49:43 -05:00
Brues ef1fa47539 Dock GreedMeter into the chat panel
Register GreedMeter's primary window on the meter dock's damage slot,
mirroring the ShaguDPS integration. GreedMeter builds its windows lazily
and supports several, so frames are resolved at call time.

A second GreedMeter window docks into the panel's other half: pfUI's
dock decides fill-vs-split by whether the threat slot is filled, so hook
GreedMeter's window add/remove to reconcile that slot and re-run the
resize. Only the first two windows fit the panel; any beyond that float.
2026-08-10 23:52:52 -05:00
Brues fe0ec82ede Route config color strings through GetStringColor cache
Replace raw strsplit(",", ...) color parsing across action bars, chat,
nameplates, third-party skins, player, and roll with the cached
GetStringColor / GetStringColorObject helpers, dropping the per-build
string-table allocations they created.
2026-08-04 22:27:43 -05:00
Brues 3ef78044fb bags: third-party sort addons rebind existing buttons
pfUI's built-in sorter (modules/bags.lua) always creates the sort
buttons on the right/left bag frames now, so the third-party
RegisterBagSort path's "if not pfUI.bag.right.sort" guard would skip
button-creation entirely — yet still set pfUI.thirdparty.bagsort to
the registering addon's name. Net effect: user installed SortBags or
MrPlow, our internal sort runs anyway. Silent override of user intent.

Strip the dead button-creation paths; rebind the existing buttons'
OnClick + OnEnter to the registered third-party functions instead.
Third-party addons now actually fire when the user clicks. -53 lines.
2026-05-27 23:30:01 -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
Meow 34f5c3eb02 Version 6.1.0 - Raid/Party Frame Fixes
Bugfixes:
- Fixed 40-yard range check not working for raid/party frames
- Fixed aggro indicator not displaying properly on raid/party frames
- Improved aggro cache to only cache positive results for instant detection
- Fixed HP/Mana not updating with "Use Raid Frames for group" enabled
- Added SuperWoW nil-check for SpellInfo
- Added missing events: PARTY_MEMBER_ENABLE, PARTY_MEMBER_DISABLE, PLAYER_UPDATE_RESTING

UI Improvements:
- Share/Hoverbind buttons now show warning when module is disabled
2026-01-08 12:25:18 +01:00
Meow 5d0e195d1e performance update
performance update
2026-01-03 12:58:31 +01:00
shagu a8e6179d23 thirdparty: adjust ShaguDPS bars to window size 2025-04-28 19:17:50 +02:00
shagu a1cc067812 thirdparty: add support for multi-window ShaguDPS 2025-04-25 21:59:39 +02:00
shagu 86e840b16e thirdparty: always update visibility on login 2025-03-19 23:22:21 +01:00
shagu 989e81b5ef thirdparty: use correct window border for shagudps 2023-11-03 15:25:50 +01:00
shagu 155da6504f thirdparty: use active shagudps config table 2023-08-05 12:02:08 +02:00
shagu 7f9348868b thirdparty: wait for dpsmate variables
Now waiting safely for the required `DPSMate_DPSMate` frame.
DPSMate sometimes requires a little time from being loaded till having the frame ready.
2023-06-24 15:25:06 +02:00
shagu ba5832c3da thirdparty: handle ShaguDPS recent backdrop changes 2023-01-05 14:24:24 +01:00
shagu 722477acfd thirdparty: update skin to latest ShaguDPS 2022-08-21 23:52:14 +02:00
shagu efcf43030d thirdparty: update skin for latest ShaguDPS 2022-08-21 19:29:04 +02:00
shagu 15448e35d9 thirdparty: add skin and dock support for ShaguDPS 2022-05-27 19:24:11 +02:00
shagu 8b1865fcd2 thirdparty: make sure the chat header stays hidden 2022-05-27 16:59:06 +02:00
shagu f7f1f6510f thirdparty: unify bag sort integration code 2020-10-05 17:13:23 +02:00
shagu e50be68a98 thirdparty: move dpsmate to multiclient support 2020-03-11 18:07:58 +01:00
shagu 4d7bfe3169 thirdparty: whitelist mrplow for tbc 2020-03-02 18:03:02 +01:00
shagu 967f0d4515 thirdparty: split glue code into expansions 2020-03-02 18:01:49 +01:00
shagu 70faae45bc thirdparty: rewrite addon dock logic 2020-03-02 17:56:53 +01:00
shagu 4f1a91bae0 thirdparty: adapt supermacro to new actionbars 2019-12-31 11:30:32 +01:00
shagu 3334c7469f modules: make all modules aware of the new borders 2019-12-18 18:54:09 +01:00
shagu a9fe28aaa5 thirdparty: only adjust ktm scale in dockmode 2019-06-17 23:23:06 +02:00
Artur Morozov a75fd5dca4 skins: add a bunch of tbc compatible skins
* add skin for: auction, character, game_menu
  guild_registrar, inspect, macro, mail,
  merchant, options-interface, options-sound,
  options-video, popup_dialogs, professions,
  questlog, talents, tracking, guildbank,
  socket, readycheck, arena_registrar,
  arena, time_manager, LFG
* add mail highlighting the quality of items
* add quality borders of guildbank items
2019-06-16 15:03:35 +02:00
Road-block 53811ba21c thirdparty: skin swstats frames
* fix tab skinning
* allow user to navigate pages in docked mode
* expose pause checkbox in title bar when docked
2019-06-13 18:45:46 +02:00
shagu 52a4718b2f thirdparty: add wim window shadows 2019-06-11 22:17:26 +02:00
Artur Morozov 4fa0054c09 thirdparty: update skin for WIM
* replace shaman class color only on load the addon
* include @Road-block updates
* use pfUI link handler (it is more correct)
* replace all class colors
2019-06-11 22:16:59 +02:00
shagu e9237b59b2 core: use concrete string based client checks 2019-06-10 17:06:31 +02:00
shagu c939f8b322 core: use media mechanism for configurable paths 2019-06-10 13:35:48 +02:00
shagu 7632f92dd1 core: use new media mechanism for all textures 2019-06-10 13:35:48 +02:00
shagu 545be99fd7 api: only add shadow to specific frames 2019-06-02 20:43:56 +02:00
dein0s 3e86976ee9 thirdparty: optimize ktm in dock mode
* scale column width
* position bottom row
* tune backdrop bottom
2019-05-19 10:01:47 +02:00
shagu c9ce19a64b thirdparty: add notgrid to healcomm addons 2019-04-14 14:52:56 +02:00
Road-block a67d818685 bags: add bag panel miniactions
* add picklock button
* add disenchant button
* add open container button
* add tooltip hints to new and existing mini actions
2019-03-31 14:59:21 +02:00
shagu 9007f3369b thirdparty: disable predictions when LUF is active 2019-03-31 14:59:21 +02:00
Road-block 4385bbb501 thirdparty: align druidmanabar to powerbar setting 2019-03-31 14:59:21 +02:00
Robert Moritz df57df82d9 thirdparty: add NoteIt skin 2019-03-31 14:59:20 +02:00
shagu 26a9fff578 actionbar: entire rewrite of the actionbars
Final squashed commit of the actionbars. Ready for master.
Config migration is now armed, you can't go back without backups.
2019-03-31 14:59:20 +02:00
shagu ae1805bfa0 thirdparty: use default font size for WIM 2019-01-09 12:01:16 +01:00
shagu c761d689a1 thirdparty: fix initialization of latest dpsmate
Thanks @Road-block
2018-12-01 10:52:23 +01:00
shagu b1f805e01a thirdparty: fix code style 2018-11-02 09:59:02 +01:00
Road-block 232a6cb99b thirdparty: prevent some errors with newer versions of KTM 2018-11-02 09:57:42 +01:00