From 44af48a11f15e4b670cd2b3e21857d892615b409 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Sun, 30 Jun 2024 01:13:45 -0400 Subject: [PATCH] Add Messages for Challenges Starting or ending a challenge now displays a popup naming and describing the challenge along with the active icon. --- Source/Core/Core/AchievementManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/AchievementManager.cpp b/Source/Core/Core/AchievementManager.cpp index c85f6f0f59..9f5709b1c6 100644 --- a/Source/Core/Core/AchievementManager.cpp +++ b/Source/Core/Core/AchievementManager.cpp @@ -821,6 +821,9 @@ void AchievementManager::HandleAchievementChallengeIndicatorShowEvent( const auto [iter, inserted] = instance.m_active_challenges.insert(client_event->achievement->id); if (inserted) instance.m_challenges_updated = true; + OSD::AddMessage(fmt::format("Challenge Started: {}", client_event->achievement->title), + OSD::Duration::VERY_LONG, OSD::Color::GREEN, + &instance.GetAchievementBadge(client_event->achievement->id, false)); } void AchievementManager::HandleAchievementChallengeIndicatorHideEvent( @@ -830,6 +833,9 @@ void AchievementManager::HandleAchievementChallengeIndicatorHideEvent( const auto removed = instance.m_active_challenges.erase(client_event->achievement->id); if (removed > 0) instance.m_challenges_updated = true; + OSD::AddMessage(fmt::format("Challenge Ended: {}", client_event->achievement->title), + OSD::Duration::VERY_LONG, OSD::Color::GREEN, + &instance.GetAchievementBadge(client_event->achievement->id, false)); } void AchievementManager::HandleAchievementProgressIndicatorShowEvent(