mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-24 19:36:17 +00:00
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:
parent
bc0b42ee53
commit
47ac8b6c03
3 changed files with 72 additions and 18 deletions
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue