Skip to content

Hide statsheet overlay when no statsheet visible, and overlay panel when no overlay is visible - #5264

Merged
cwisniew merged 2 commits into
RPTools:developfrom
kwvanderlinde:refactor/5238-hide-statsheet-overlay-and-overlay-panel
Feb 15, 2025
Merged

Hide statsheet overlay when no statsheet visible, and overlay panel when no overlay is visible#5264
cwisniew merged 2 commits into
RPTools:developfrom
kwvanderlinde:refactor/5238-hide-statsheet-overlay-and-overlay-panel

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Feb 15, 2025

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

Resolves #5238

Description of the Change

This changes stat sheets specifically so the internal overlay is hidden when no stat sheets are displayed. Existing behaviour is that the overlay remains visible but has no content.

Overlays in general are changed to hide themselves if all overlays are hidden. It will show itself again when any overlay becomes visible. This is handled through a new OverlayVisibilityChanged event. Newly shown overlays also cause the panel to be shown, e.g., in response to an overlay() roll.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Hide stat sheet overlays when no stat sheet is being displayed.

This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this Feb 15, 2025
@github-actions github-actions Bot added feature Adding functionality that adds value performance A performance or quality of life improvement refactor Refactoring the code for optimal awesomeness. labels Feb 15, 2025
@cwisniew
cwisniew added this pull request to the merge queue Feb 15, 2025
Merged via the queue into RPTools:develop with commit 4f2f47c Feb 15, 2025
@kwvanderlinde
kwvanderlinde deleted the refactor/5238-hide-statsheet-overlay-and-overlay-panel branch February 15, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding functionality that adds value performance A performance or quality of life improvement refactor Refactoring the code for optimal awesomeness.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

[Feature]: Hide statsheet overlay when not showing a stat sheet.

2 participants