Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed data/RankViewer/RankIcons/0.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/0.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/1.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/1.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/10.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/10.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/11.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/11.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/12.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/12.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/13.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/13.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/14.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/14.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/15.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/15.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/16.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/16.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/17.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/17.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/18.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/18.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/19.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/19.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/2.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/2.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/20.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/20.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/21.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/21.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/22.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/22.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/3.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/3.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/4.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/4.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/5.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/5.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/6.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/6.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/7.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/7.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/8.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/8.tga
Binary file not shown.
Binary file removed data/RankViewer/RankIcons/9.png
Binary file not shown.
Binary file added data/RankViewer/RankIcons/9.tga
Binary file not shown.
12 changes: 6 additions & 6 deletions source/RankViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ void RankViewer::onLoad()
friendsClose.Index = gameWrapper->GetFNameIndexByString("closeButton");

// Puts in the unranked icon as a placeholder for the three images in case something goes wrong later on
auto testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.png";
auto testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.tga";
currentRank = std::make_shared<ImageWrapper>(testPath, false, true);

testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.png";
testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.tga";
nextRank = std::make_shared<ImageWrapper>(testPath, false, true);

testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.png";
testPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / "0.tga";
beforeRank = std::make_shared<ImageWrapper>(testPath, false, true);

// Screen resolution
Expand Down Expand Up @@ -185,7 +185,7 @@ void RankViewer::CheckMMR(int retryCount)

// Gets and loads the rank icon for your current rank from the RankViewer folder
string fileName;
fileName = std::to_string(userTier) + ".png";
fileName = std::to_string(userTier) + ".tga";
const auto currentPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / fileName;
currentRank = std::make_shared<ImageWrapper>(currentPath, false, true);

Expand Down Expand Up @@ -260,11 +260,11 @@ void RankViewer::CheckMMR(int retryCount)
}

// Gets correct rank icons from folder for before and after ranks
fileName = std::to_string(lowerTier) + ".png";
fileName = std::to_string(lowerTier) + ".tga";
const auto beforePath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / fileName;
beforeRank = std::make_shared<ImageWrapper>(beforePath, false, true);

fileName = std::to_string(upperTier) + ".png";
fileName = std::to_string(upperTier) + ".tga";
const auto nextPath = gameWrapper->GetDataFolder() / "RankViewer" / "RankIcons" / fileName;
nextRank = std::make_shared<ImageWrapper>(nextPath, false, true);

Expand Down