Added player and game badges to Achievements dialog header

Provided badges are turned on, if there's a player logged in their RetroAchievements icon will appear next to their player info in the header of the Achievements dialog. If they're playing a game, so will the icon for the game. Also performed some refactoring and reorganizing to the header as a whole so that it looks consistent whether a game is running or not.
This commit is contained in:
LillyJadeKatrin
2023-06-15 03:57:58 -04:00
parent fd50b1fda6
commit 0715da2d68
2 changed files with 103 additions and 61 deletions

View File

@ -27,16 +27,14 @@ private:
QGroupBox* m_common_box;
QVBoxLayout* m_common_layout;
QLabel* m_user_name;
QLabel* m_user_points;
QLabel* m_game_name;
QLabel* m_game_points;
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;
QGroupBox* m_user_box;
QGroupBox* m_game_box;
QGroupBox* m_header_box;
};
#endif // USE_RETRO_ACHIEVEMENTS