Fix and add back Trophy type icons for both the trophy pop-up and viewer (#2522)

* Add back fixed trophy type icons to trophy viewer

* Remove unused declaration until it is needed again

* Fix trophy pop-up icons

* Adjust size and alignment based on trophy name length

---------

Co-authored-by: rainmakerv2 <30595646+jpau02@users.noreply.github.com>
This commit is contained in:
rainmakerv2 2025-02-24 18:41:57 +08:00 committed by GitHub
parent bc0b42ee53
commit 47ac8b6c03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 72 additions and 18 deletions

View file

@ -31,4 +31,18 @@ private:
QStringList headers;
QString gameTrpPath_;
TRP trp;
std::string GetTrpType(const QChar trp_) {
switch (trp_.toLatin1()) {
case 'B':
return "bronze.png";
case 'S':
return "silver.png";
case 'G':
return "gold.png";
case 'P':
return "platinum.png";
}
return "Unknown";
}
};