Skip to content
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

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

TwosomesUP
Copy link
Contributor

@TwosomesUP TwosomesUP commented Aug 5, 2023

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

  1. Enable Achievements, Test Mode, and Notifications
  2. Sign into RetroAchievements
  3. Load a game with achievements

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.

Copy link
Contributor

@github-actions github-actions bot left a 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!

@Mrlinkwii
Copy link
Contributor

you forgot to mention fixes #9692

Copy link
Member

@stenzek stenzek left a 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 :)

pcsx2/Achievements.cpp Outdated Show resolved Hide resolved
pcsx2-qt/Settings/AchievementSettingsWidget.cpp Outdated Show resolved Hide resolved
pcsx2-qt/SettingWidgetBinder.h Outdated Show resolved Hide resolved
@TwosomesUP
Copy link
Contributor Author

you forgot to mention fixes #9692

I knew I'd forget it, thanks!

@TwosomesUP
Copy link
Contributor Author

TwosomesUP commented Aug 5, 2023

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.

@stenzek stenzek merged commit f2c032b into PCSX2:master Aug 8, 2023
12 checks passed
@TwosomesUP TwosomesUP deleted the ra-achievement-notifications branch August 8, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants