mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
c8d8ca2ff7
The Disabled state sits between Game Closed and completely Shutdown - stronger than the former, as it refuses to let a game be opened again until AchievementManager is restored (which only happens upon a fresh core boot) but it isn't completely shut down and will still allow the player to be logged in and access the achievement settings and their (global) achievement header.
38 lines
820 B
C++
38 lines
820 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:
|
|
QString GetPointsString(const QString& user_name,
|
|
const AchievementManager::PointSpread& point_spread) const;
|
|
|
|
QLabel* m_user_icon;
|
|
QLabel* m_game_icon;
|
|
QLabel* m_name;
|
|
QLabel* m_points;
|
|
QProgressBar* m_game_progress_hard;
|
|
QProgressBar* m_game_progress_soft;
|
|
QLabel* m_rich_presence;
|
|
QLabel* m_locked_warning;
|
|
QGroupBox* m_header_box;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|