dolphin/Source/Core/DolphinQt/Achievements/AchievementHeaderWidget.h
LillyJadeKatrin b05028da1f Added Change Media client functionality to AchievementMananger
The client can handle media changes natively so disabling can take place internally. This code uses the same external calls to load data, but will call either BeginLoad or BeginChangeMedia based on whether any media is already loaded.
Due to the client's handling of media changes (it simply disables hardcore if an unknown media is detected) the existing functionality for "disabling" the achievements is no longer necessary and can be deleted.
2024-05-01 07:04:32 -04:00

33 lines
610 B
C++

// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#ifdef USE_RETRO_ACHIEVEMENTS
#include <QWidget>
#include "Core/AchievementManager.h"
class QGroupBox;
class QLabel;
class QProgressBar;
class AchievementHeaderWidget final : public QWidget
{
Q_OBJECT
public:
explicit AchievementHeaderWidget(QWidget* parent);
void UpdateData();
private:
QLabel* m_user_icon;
QLabel* m_game_icon;
QLabel* m_name;
QLabel* m_points;
QProgressBar* m_game_progress;
QLabel* m_rich_presence;
QGroupBox* m_header_box;
};
#endif // USE_RETRO_ACHIEVEMENTS