mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
fb7ff7ec03
* Map UDS events to trophies via dumped metadata and redesign trophy UI Correlate each UDS event to its stat ID (uds00.ucp) and trophy target (trophy00.ucp) instead of a hard-coded event, store trophy JSON with unlock date/time outside _SaveData, and add a PS5-style toast, viewer and overview. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Fix trophy rule evaluation and share progress accounting * Match trophy and reload toolbar styling --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: nmzik <Nmzik@mail.ru>
29 lines
774 B
C++
29 lines
774 B
C++
#ifndef TROPHY_VIEWER_DIALOG_H
|
|
#define TROPHY_VIEWER_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include <vector>
|
|
|
|
class QTabWidget;
|
|
class QWidget;
|
|
|
|
class Configuration;
|
|
class TrophyViewerDialog: public QDialog {
|
|
public:
|
|
explicit TrophyViewerDialog(QWidget* parent = nullptr);
|
|
|
|
static bool HasTrophyData(const Configuration* info);
|
|
static void ShowForGame(const Configuration* info, const QString& runtime_directory,
|
|
QWidget* parent);
|
|
static void ShowOverview(const std::vector<const Configuration*>& games,
|
|
const QString& runtime_directory, QWidget* parent);
|
|
|
|
private:
|
|
bool LoadGame(const Configuration& info, const QString& runtime_directory, QString& error);
|
|
|
|
QTabWidget* m_tabs = nullptr;
|
|
};
|
|
|
|
#endif // TROPHY_VIEWER_DIALOG_H
|