Repository navigation
feat(Bags): option to show each item set as its own section - #3587
Merged
EllesmereGaming merged 1 commit intoNov 24, 2026
Merged
EllesmereGaming merged 1 commit into
EllesmereGaming merged 1 commit into
Conversation
## What does this PR do? Adds a Set Sections cog to Split Set Gear by Set (Bags > CATEGORIES) with two toggles, both default off: - **Separate Sets in Bags**: each set gets its own section in the bags, the way the bank already shows them. Off keeps today's layout, where the sets share the Item Set Gear section. - **Separate Sets in Bank & Warbank** (Separate Sets in Bank on Forever): on by default in effect, matching today's bank. Turning it off nests the sets under Item Set Gear, like the bags do now, with one sidebar entry per set. Changes: - New `CategoryManager:FoldSetChildren(bank)` answers whether set categories fold into Item Set Gear for that window. The bags fold sites in `EllesmereUIBags_Grid.lua` (All Items, group view), the sidebar in `EUI_Bags_Sidebar.lua` and the Auto-Size count in `EUI_Bags_Refresh.lua` ask it instead of reading the split setting directly. - Separated sets render as their own sections at the anchor's level, also inside a group that holds Item Set Gear. - Bank: a new "set" detail mode in `EllesmereUIBags_Bank.lua` routes set items to Item Set Gear, stamped with their set, and lists one sidebar entry per set. - The bank setting is stored inverted (`bankNestSetGear`) so its saved default stays off while the bank keeps its current flat layout. No migration: both defaults reproduce today's layouts. - Offline bag and bank views are unchanged. Cost: one profile lookup at each existing fold site; nothing runs while Split Set Gear by Set is off. ## How was it tested? Client: Retail and Forever - Split Set Gear by Set on, both toggles off: bags and bank look exactly as before. - Separate Sets in Bags on: every set shows as its own section in All Items and in a group holding Item Set Gear; the sidebar lists the sets at category level and the Auto-Size count follows. - Separate Sets in Bank off: the bank nests sets under Item Set Gear with a sidebar entry per set; selecting a set filters to it. - Split Set Gear by Set off: the cog is disabled and both windows show the unsplit layout. Guardrails and the locale-key check pass. ## Checklist - [x] New settings default **OFF** (no behavior change without opt-in) - [x] Zero cost while disabled: no events registered, no polling, no hooks doing work, no tickers; nothing built beyond an inert event frame or combat queue - [x] Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - only a profile check at existing refresh sites - [x] No writes onto Blizzard-owned frames (weak-table pattern used); `HookScript`/`hooksecurefunc` only, never `SetScript` on Blizzard frames - N/A: EUI frames only - [x] Tested in-game on live; no version gates or pre-Midnight APIs added
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a Set Sections cog to Split Set Gear by Set (Bags > CATEGORIES) with two toggles, both default off:
Changes:
CategoryManager:FoldSetChildren(bank)answers whether set categories fold into Item Set Gear for that window. The bags fold sites inEllesmereUIBags_Grid.lua(All Items, group view), the sidebar inEUI_Bags_Sidebar.luaand the Auto-Size count inEUI_Bags_Refresh.luaask it instead of reading the split setting directly.EllesmereUIBags_Bank.luaroutes set items to Item Set Gear, stamped with their set, and lists one sidebar entry per set.bankNestSetGear) so its saved default stays off while the bank keeps its current flat layout. No migration: both defaults reproduce today's layouts.Cost: one profile lookup at each existing fold site; nothing runs while Split Set Gear by Set is off.
How was it tested?
Client: Retail and Forever
Guardrails and the locale-key check pass.
Checklist
HookScript/hooksecurefunconly, neverSetScripton Blizzard frames - N/A: EUI frames only