mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
rsx/overlays: Implement trophy notification queue
- Allows to display more than one trophy at a time. Trophy notifications will simply get queued up and displayed at appropriate time.
This commit is contained in:
parent
49d5ce3ba4
commit
3ada97d2d3
3 changed files with 53 additions and 3 deletions
|
|
@ -9,7 +9,9 @@ s32 trophy_notification_helper::ShowTrophyNotification(const SceNpTrophyDetails&
|
|||
{
|
||||
if (auto manager = g_fxo->get<rsx::overlays::display_manager>())
|
||||
{
|
||||
return manager->create<rsx::overlays::trophy_notification>()->show(trophy, trophy_icon_buffer);
|
||||
// Allow adding more than one trophy notification. The notification class manages scheduling
|
||||
auto popup = std::make_shared<rsx::overlays::trophy_notification>();
|
||||
return manager->add(popup, false)->show(trophy, trophy_icon_buffer);
|
||||
}
|
||||
|
||||
if (!Emu.HasGui())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue