-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RetroAchievements/Qt: Add configurable achievement notification duration #9722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for submitting a contribution to PCSX2
As this is your first pull request, please be aware of the contributing guidelines.
Additionally, as per recent changes in GitHub Actions, your pull request will need to be approved by a maintainer before GitHub Actions can run against it. You can find more information about this change here.
Please be patient until this happens. In the meantime if you'd like to confirm the builds are passing, you have the option of opening a PR on your own fork, just make sure your fork's master branch is up to date!
you forgot to mention fixes #9692 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise seems fine, thanks :)
I knew I'd forget it, thanks! |
28c181b
to
db75bf6
Compare
Looking into MacOS and Linux build issues and will test in my fork. I'm not too familiar with either OS so it may take some tinkering. XD Edit: Found the issue. Luckily it was an easy fix. MacOS and Linux build checks seem to be passing now. |
d09c184
to
0d16f7f
Compare
Description of Changes
This change adds a configurable duration for the Retro Achievements notifications. This PR also includes a minor update to the the BindSliderToIntSetting method to allow clamping of values when binding a slider to a setting in case of manual updates.
Fixes issue #9692
Rationale behind Changes
Long durations on notifications can be intrusive to gameplay. This allows players to modify notification durations to their preference.
Suggested Testing Steps
This PR affects all achievement notifications so the configured duration can be observed during the initial game info notification, when mastering a game, when unlocking an achievement, and when activating/submitting a leaderboard.
Game used for testing was Kuon (SLUS-21007). If using the attached save state, you can just open the door in front of the character to unlock an achievement.
SLUS-21007 (9AC63A2E).01.zip
Considerations
If needed, or wanted, individual duration sliders for each type of notification (achievement unlock, mastery, leaderboard, etc) can be added.