Trophy pop-up and viewer enhancements (#2493)

* Include trophy rarity icons in pop up, remove newlines from viewer

Fix layout

Update platinum.png

Fix linux and apple

* Smaller type icons, center text vertically

* use original icons

* MacOS fixes

* Address Review comments

Update build.yml

Update build.yml

Update build.yml

Update build.yml

Update build.yml

Update build.yml

Update build.yml

test

* Move trophy type to leftmost and trophy art to rightmost

* Embed resources

* Revert packaging of resources with builds

---------

Co-authored-by: rainmakerv2 <30595646+jpau02@users.noreply.github.com>
This commit is contained in:
rainmakerv2
2025-02-23 16:00:24 +08:00
committed by GitHub
parent 4f1baece33
commit 22ca57b1f2
12 changed files with 795 additions and 27 deletions

View File

@@ -32,17 +32,17 @@ private:
QString gameTrpPath_;
TRP trp;
QString GetTrpType(const QChar trp_) {
std::string GetTrpType(const QChar trp_) {
switch (trp_.toLatin1()) {
case 'B':
return "Bronze";
return "bronze.png";
case 'S':
return "Silver";
return "silver.png";
case 'G':
return "Gold";
return "gold.png";
case 'P':
return "Platinum";
return "platinum.png";
}
return "Unknown";
}
};
};