mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
b824d55093
A new tab is added to the Achievements dialog to chart out the leaderboards in a table. Each row of the table contains the leaderboard information and up to four relevant entries, varying based on how many entries are in the leaderboard, whether or not the player has a submitted score, and where in the leaderboard the player's score is.
25 lines
455 B
C++
25 lines
455 B
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include <QWidget>
|
|
|
|
class QGroupBox;
|
|
class QGridLayout;
|
|
|
|
class AchievementLeaderboardWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AchievementLeaderboardWidget(QWidget* parent);
|
|
void UpdateData();
|
|
|
|
private:
|
|
QGroupBox* m_common_box;
|
|
QGridLayout* m_common_layout;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|