Skip to content

Addon: [1.9.8] - Add UI frame open state bits and make AnyBagOpen event-driven#769

Merged
Xian55 merged 1 commit intodevfrom
feature/768
Feb 10, 2026
Merged

Addon: [1.9.8] - Add UI frame open state bits and make AnyBagOpen event-driven#769
Xian55 merged 1 commit intodevfrom
feature/768

Conversation

@Xian55
Copy link
Owner

@Xian55 Xian55 commented Feb 10, 2026

Summary

  • Add AnyBagOpen (bit 12), CharacterFrameOpen (bit 13), SpellBookFrameOpen (bit 14), FriendsFrameOpen (bit 15) to Bits3/v3 addon data
  • Make AnyBagOpen event-driven via BAG_OPEN/BAG_CLOSED events instead of polling
  • Use HookScript("OnShow"/"OnHide") for CharacterFrame, SpellBookFrame, FriendsFrame visibility tracking
  • Expose all four as RequirementFactory keys for use in profile requirements (e.g. manual pause when a UI window is open)
  • Bump addon version to 1.9.8

Closes #768

Test plan

  • Verify AnyBagOpen requirement triggers when opening/closing any bag
  • Verify CharacterFrameOpen triggers when pressing C to open/close character info
  • Verify SpellBookFrameOpen triggers when pressing P to open/close spellbook
  • Verify FriendsFrameOpen triggers when pressing O to open/close social window
  • Confirm bits reset correctly when frames are closed
  • Test that existing bits (0-11) are unaffected

🤖 Generated with Claude Code

…nt-driven

Add CharacterFrameOpen, SpellBookFrameOpen, FriendsFrameOpen bits (13-15
in Bits3/v3) and AnyBagOpen (bit 12) to detect when UI windows are open.
These allow profile requirements like manual pause when bags or character
frame are visible.

AnyBagOpen uses BAG_OPEN/BAG_CLOSED events instead of polling. Character,
SpellBook, and Friends frames use OnShow/OnHide hooks via HookScript.

Expose all four as RequirementFactory keys: AnyBagOpen, CharacterFrameOpen,
SpellBookFrameOpen, FriendsFrameOpen.

Closes #768

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Xian55 Xian55 added feature request This is a request for a new feature, or an expansion of an existing feature. documentation Improvements or additions to documentation labels Feb 10, 2026
@Xian55 Xian55 merged commit 2aa542c into dev Feb 10, 2026
1 check passed
@Xian55 Xian55 deleted the feature/768 branch February 10, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature request This is a request for a new feature, or an expansion of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requirement BackpackOpen for manual pause

1 participant