138 Commits

Author SHA1 Message Date
Brues bd4a40b0f2 Add newitem module: highlight freshly-acquired bag items
New module built on ClassicAPI's C_NewItems + BAG_NEW_ITEMS_UPDATED.
Glows bag slots (bags 0-4) holding items acquired since login, keyed on
item GUID so the flag survives rearranging. Hovering an item
acknowledges it (RemoveNewItem); closing the bags clears the rest via
ClearAll. Glow is UI-ActionButton-Border, sized off the slot width so it
tracks the icon_size config.

To stay decoupled from the bag frames, the bag module now broadcasts a
reusable "bag:closed" event through pfUI.events from its OnHide (carrying
the container so subscribers can tell backpack from bank), guarded so the
initial setup Hide() doesn't fire a phantom close.

Config: appearance.bags.newitem + newitem_color, with GUI toggles.
2026-07-17 14:47:22 -05:00
Brues 8397c09a8d Bags: Simplify Extract Spell Logic 2026-06-08 11:33:05 -05:00
Brues 8ddcf73da6 extract bagsort logic 2026-06-08 11:16:48 -05:00
Brues 671939fe9e add auto sort on open feature - disabled by default 2026-05-30 00:31:47 -05:00
Brues 201a77ccbd IsContainerItemOpenable will now tell us if we can actually open the item 2026-05-29 00:31:53 -05:00
Brues b8da28ebac use IsContainerItemOpenable and bump minimum ClassicAPI version to 1.2.1 2026-05-28 14:59:31 -05:00
Brues 8e92cf47b3 whitespace 2026-05-28 00:25:05 -05:00
Brues d47287da3a use GetContainerItemCharges from classicapi 2026-05-27 23:50:10 -05:00
Brues 9a618e4709 bags: add /pfBagSort + /pfBankSort buttons
Inline the bag sorter from Bagnon/lib/BagSort.lua — two-pointer stack
consolidation, then a category-then-name sort with poor (gray) items
placed back-to-front so they sit at the end of the last bag. Sort
buttons land in the existing button row on both the bag (right) and
bank (left) frames.

Fixes a destructuring mismatch in the port: pfUI's compat/vanilla.lua
shims GetItemInfo to the modern 10-field return signature (inserts nil
for itemLevel between quality and minlevel), so itype/subtype sit at
positions 6/7 — not 5/6 like the Bagnon original assumes against raw
vanilla. Without the extra placeholder every item fell through to the
"non-gear by quality" bucket.
2026-05-27 23:22:32 -05:00
Brues 04f10b0998 Bag Sort 2026-05-27 23:11:23 -05:00
Brues aaba09a17c GetContainerItemID directly 2026-05-25 20:22:07 -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 67146ef3a4 begin utilizing ClassicAPI 2026-05-16 13:02:38 -05:00
Meow d208885c16 Show proper charges for items in bags with nampower 2026-03-23 12:41:24 +01:00
Meow 4176358bfa changed mouse on leave to mouse on right click for search window to cancel it- 2026-03-11 15:06:51 +01:00
Meow e0a9756b96 clearfocus fix 2026-03-07 19:49:04 +01:00
Meow 5aa4dcf151 clearfocus is what we need... 2026-03-07 19:43:59 +01:00
Meow 73858d79a7 bag OnLeave fix 2026-03-07 19:39:59 +01: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 7d383298bf bags: rework quest item border display logic 2025-06-04 10:35:22 +02:00
shagu 6dd1a389f5 unusable: use hook based button updates 2025-04-11 17:01:23 +02:00
shagu 97cc897ca2 bags: rewrite logic to detect openable container items 2025-04-11 16:24:10 +02:00
shagu 20ebdaf3b5 bags: only create backdrop once on button creation 2025-04-11 16:23:22 +02:00
shagu 1c5efd109a bags: only updae item lock on actual changes 2025-04-11 16:22:32 +02:00
shagu c02790e6bf bags: add new option to use full-text search 2025-02-15 17:23:54 +01:00
shagu e441795f55 bags: add gold display to bag window 2024-11-23 20:43:34 +01:00
shagu a9d2494fee bags: remove regex workaround for bag searches 2024-09-23 12:51:09 +02:00
bhhandley b707c4b11f bags: add option to anchor bags above chat 2024-09-23 09:36:58 +02:00
shagu fd4df67eb4 bags: make sure bag slot frame is initialized 2024-09-18 09:52:35 +02:00
horu 3f0fbe7048 bags: align open/close behaviour to original ui 2024-02-26 17:42:42 +01:00
shagu a0789f26df unusable: trigger directly from bags module 2024-02-26 16:50:57 +01:00
shagu f6da0b200b bags: set text and textures only once 2024-02-26 16:50:57 +01:00
shagu 367a137618 bags: reduce amount of backdrop repaints 2024-02-26 16:50:57 +01:00
shagu 35406e9a49 bags: use queue to limit burst events 2024-02-26 16:50:57 +01:00
shagu 06a6e1c49b bags: replace "!" by "?" due to player feedback
Seems like "!" is already used in wotlk for quest starters,
which could be confusing to players who played wotlk recently.
2022-12-22 13:08:35 +01:00
shagu a886c740ec bags: highlight quest items in bag
* detect quest items via itemlink
* add yellow border around quest items
* add quest icon on quest items
2022-12-22 12:42:04 +01:00
shagu 754b4d53fa skins/bags: move item score to topright position
Move score to topright position to avoid conflicts with item count.
2022-11-14 13:31:40 +01:00
shagu 0214eebf36 core: switch from mousedown to drag functions
Due to crashes/freezes while moving some frames, one possible
reason could be that pfUI was using OnMouseDown and OnMouseUp
to run its frame-moving code. I have noticed better performance
when using the intended functions, OnDragStart and OnDragStop
to move frames.

This commit changes every occurrence of such functions and splits
drag and click into seperate functions where required.
2022-05-07 21:35:52 +02:00
Cameron Weaver (Clutch) 7bc293246d bags: hide shaguscore on stacked items 2021-09-08 21:02:51 +02:00
Cameron Weaver (Clutch) cff11e2c26 bags: display shaguscore values on bag items 2021-09-01 10:09:55 +02:00
shagu 5c3c252365 bags: reduce size if panels are hidden 2021-08-25 17:18:20 +02:00
shagu 4c739fe2cc bags: set alpha on all slots during search 2020-12-31 12:52:23 +01:00
shagu bbf4e860b7 bags: update pushed textures of item slots 2020-12-07 17:36:29 +01:00
shagu 2152272ab3 bags: align buttonslot highlight textures to bags 2020-11-19 16:13:10 +01:00
shagu 1e320f4b66 bags: remove old wow button highlights 2020-11-19 16:12:27 +01:00
shagu 32dd17fa68 bags: specify cooldown animation visibility 2020-10-04 18:55:21 +02:00
shagu fb6130a460 bags: sanitize search texst box patterns 2020-05-31 15:40:01 +02:00
shagu 087535f66b bags: check for textures before using them 2020-01-17 22:18:44 +01:00
shagu 3334c7469f modules: make all modules aware of the new borders 2019-12-18 18:54:09 +01:00