rpcsx/rpcs3/Emu/RSX/Overlays/overlay_trophy_notification.h
Megamouse f28c7d029c overlays: use timestamp for fade animations
Fixes jojo when using sceNp dialogs
2024-01-31 16:33:29 +01:00

34 lines
676 B
C++

#pragma once
#include "overlays.h"
#include "Emu/Cell/Modules/sceNpTrophy.h"
namespace rsx
{
namespace overlays
{
struct trophy_notification : public user_interface
{
private:
overlay_element frame;
image_view image;
label text_view;
u64 display_sched_id = 0;
u64 creation_time_us = 0;
std::unique_ptr<image_info> icon_info;
animation_translate sliding_animation;
animation_color_interpolate fade_animation;
public:
trophy_notification();
void update(u64 timestamp_us) override;
compiled_resource get_compiled() override;
s32 show(const SceNpTrophyDetails& trophy, const std::vector<uchar>& trophy_icon_buffer);
};
}
}