Skip to content

feat(Bags): option to show each item set as its own section - #3587

Merged
EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:bags-sets-as-separate-sections
Nov 24, 2026
Merged

EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:bags-sets-as-separate-sections

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

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

  • New settings default OFF (no behavior change without opt-in)
  • 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
  • Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - only a profile check at existing refresh sites
  • No writes onto Blizzard-owned frames (weak-table pattern used); HookScript/hooksecurefunc only, never SetScript on Blizzard frames - N/A: EUI frames only
  • Tested in-game on live; no version gates or pre-Midnight APIs added

## 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
@EllesmereGaming
EllesmereGaming merged commit 79dcb74 into EllesmereGaming:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants