2024-03-09 19:14:08 +00:00
|
|
|
// Copyright 2024 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
|
|
#include <QGroupBox>
|
|
|
|
|
|
|
|
#include "Core/AchievementManager.h"
|
|
|
|
|
|
|
|
class QLabel;
|
|
|
|
class QProgressBar;
|
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
struct rc_api_achievement_definition_t;
|
|
|
|
|
|
|
|
class AchievementBox final : public QGroupBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AchievementBox(QWidget* parent, rc_client_achievement_t* achievement);
|
|
|
|
void UpdateData();
|
2024-06-20 02:12:30 +00:00
|
|
|
void UpdateProgress();
|
2024-03-09 19:14:08 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel* m_badge;
|
|
|
|
QLabel* m_status;
|
|
|
|
QProgressBar* m_progress_bar;
|
2024-06-12 10:25:26 +00:00
|
|
|
QLabel* m_progress_label;
|
2024-03-09 19:14:08 +00:00
|
|
|
|
|
|
|
rc_client_achievement_t* m_achievement;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|