rpcsx/rpcs3/Emu/RSX/Overlays/overlay_trophy_notification.h

35 lines
657 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 = 0;
std::unique_ptr<image_info> icon_info;
animation_translate sliding_animation;
animation_color_interpolate fade_animation;
public:
trophy_notification();
void update() override;
compiled_resource get_compiled() override;
s32 show(const SceNpTrophyDetails& trophy, const std::vector<uchar>& trophy_icon_buffer);
};
}
}